Skip to main content
POST
cURL
Send the account under account. name and type are required; type is CUSTOMER, SUPPLIER or CUSTOMER_AND_SUPPLIER and reads back in lower case. Fields are flat: currency is a code and time_zone a name. Contacts, addresses and payment methods can be added in the same call.
The SDK samples get their client from credentials your app registers once when it starts, as shown in Authentication. To try the call here, click Try it, set host to your Exsited API host name and paste an access token from Get an access token. To send a raw JSON body instead of filling in fields, copy the cURL sample and edit its -d payload.

Authorizations

Authorization
string
header
required

An access token from POST /api/v4/oauth2/token. The SDKs get and renew it for you.

Body

application/json
account
object
required

Response

The new account, under account.

The account, under account.

account
object

One account.