v1
latestOpenAPI 3.1.02026-08-04103211436.0 KBCreate accounting account
Creates an accounting account identified by accountingCode. If an account with the same accountingCode already exists, this call updates it instead of failing; if the submitted data is identical to the existing account, the call is a no-op. accountingName defaults to accountingCode when omitted. type is inferred from accountingCode when not sent, and an accountingCode starting with 572 is always classified as banks on creation regardless of the type sent — see the type field description. Once an account exists, type cannot be changed through this endpoint: any type sent for an existing account (including the 572 override) is silently ignored and only applies when the account is first created — use the update endpoints to change it. Recreating a previously deleted (deactivated) account does not reactivate it unless active: true is explicitly sent. Entries in attributes with an empty or missing customId or value are silently discarded.
Path parameters
Request body
Example request
{
"accountingName": "Clients - Domestic",
"attributes": [
{
"customId": "cost-center",
"value": "Marketing",
"valueCustomId": "cc-marketing"
}
],
"accountingCode": "430001"
}Response
Successful Response
Example response
{
"accountingCode": "430001"
}