Create a new account.

The integration sends a request to this endpoint to create a corresponding account in Pleo for any
new record created in the external ERP/accounting system. The request fails if any similar accounts with
the same externalId and companyId already exists in Pleo.

Log in to see full request history
Body Params
boolean
required

Boolean flag used to determine if the account is archived.

string | null

Account code or number used in the accounting system's chart of accounts.

string
required

Pleo's internal identifier for the company the account is associated with.

string
required
length between 0 and 255
        Unique external identifier of account, assigned in the external ERP/accounting system. 
        Can be the same as code if no other identifier is available.
    
object | null

Place for API users to store flexible data.

string
required
length between 0 and 255

Name of the account.

string | null
        The identifier in **the target system** for the tax code the account is associated with.
        - This is NOT the tax percentage (e.g. 20%)
        - This is NOT the Pleo UUID of the tax code
    
Responses

Response body
object
data
object
required

Represents an account in Pleo.

boolean
required

Boolean flag used to determine if the account is archived.

string | null

Account code or number used in the accounting system's chart of accounts.

string
required

Pleo's internal identifier of the company the account is associated with.

string
required
        Unique external identifier of account, assigned in the external ERP/accounting system. 
        Can be the same as code if no other identifier is available.
    
string
required

Pleo's internal identifier of the account.

object | null

Place for API users to store flexible data.

string
required

Name of the account.

string | null

The identifier in the target system for the tax code the account is associated with.

400

Bad request (e.g. missing required fields).

409
                Conflict (account with the same `externalId` exists in Pleo)
            
Language
Credentials
URL