Create account on an existing client
curl --request POST \
--url https://api.finsync.ar/api/accounts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"client_id": 123,
"name": "<string>",
"currency_name": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({client_id: 123, name: '<string>', currency_name: '<string>'})
};
fetch('https://api.finsync.ar/api/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({client_id: 123, name: '<string>', currency_name: '<string>'})
};
fetch('https://api.finsync.ar/api/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/accounts"
payload = {
"client_id": 123,
"name": "<string>",
"currency_name": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"client_id": 123,
"name": "<string>",
"currency_name": "<string>",
"balance": 123,
"type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Accounts
Create account on an existing client
Adds an account to an existing client in the API-key company. Internal cajas (type=0) may have several accounts in the same currency. External clients (type=1) reuse the existing account when one already exists for that currency. Does not create currencies.
POST
/
api
/
accounts
Create account on an existing client
curl --request POST \
--url https://api.finsync.ar/api/accounts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"client_id": 123,
"name": "<string>",
"currency_name": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({client_id: 123, name: '<string>', currency_name: '<string>'})
};
fetch('https://api.finsync.ar/api/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({client_id: 123, name: '<string>', currency_name: '<string>'})
};
fetch('https://api.finsync.ar/api/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/accounts"
payload = {
"client_id": 123,
"name": "<string>",
"currency_name": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"client_id": 123,
"name": "<string>",
"currency_name": "<string>",
"balance": 123,
"type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
API Key for authentication
Body
application/json