Create client
curl --request POST \
--url https://api.finsync.ar/api/clients \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.finsync.ar/api/clients', 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({name: '<string>'})
};
fetch('https://api.finsync.ar/api/clients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/clients"
payload = { "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,
"name": "<string>",
"description": "<string>",
"company_id": 123,
"type": 0,
"company_client_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"client_tags": [
{
"id": 123,
"client_id": 123,
"tag_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"tag": {
"id": 123,
"name": "<string>",
"color": "#3b82f6",
"company_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
]
}{
"error": "<string>"
}Clients
Create client
Creates a client for the company tied to the API key. type defaults to 1 (external cuenta corriente). Pass type: 0 to create an internal caja. Optional tag_ids assigns existing company tags (dashboard create). Does not create portal access.
POST
/
api
/
clients
Create client
curl --request POST \
--url https://api.finsync.ar/api/clients \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.finsync.ar/api/clients', 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({name: '<string>'})
};
fetch('https://api.finsync.ar/api/clients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/clients"
payload = { "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,
"name": "<string>",
"description": "<string>",
"company_id": 123,
"type": 0,
"company_client_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"client_tags": [
{
"id": 123,
"client_id": 123,
"tag_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"tag": {
"id": 123,
"name": "<string>",
"color": "#3b82f6",
"company_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
]
}{
"error": "<string>"
}Authorizations
API Key for authentication
Body
application/json
Client display name
Maximum string length:
100Optional notes
0 = internal caja, 1 = external cuenta corriente. Defaults to 1.
Available options:
0, 1 Optional existing company tag IDs to assign on create (same as dashboard tagIds). Unknown IDs return 404.
Response
External client created
0 = internal caja, 1 = external cuenta corriente
Available options:
0, 1 Labels assigned to the client (dashboard client_tags). Empty array when none.
Show child attributes
Show child attributes