Add an account to the chart
post/accounting/accounts
Before you call
- Credential
Authorization: Bearer $KEY- Scope
accounting:admin- Sdk
accounting.account.create- Cli
accounting account create
Request bodyapplication/json, required
- codestringrequiredPattern: ^[0-9A-Za-z.-]{1,12}$.
- namestringrequiredAt most 120 characters.
- typestringrequiredOne of: asset, liability, equity, revenue, expense.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring