Skip to main content
POST
cURL
Send the new accounting code under accounting_code. Give it a name, an account_code_type such as sales_revenue and a gl_account_number. The stored code reports its type in default_match_key as well.
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
accounting_code
object
required

Response

201 - application/json

The new accounting code, under accounting_code.

accounting_code
object