Creates a financial account with a unique name and an available account type. The new account starts with a zero balance in USD.
POST
/api/accountsParameters
namestring · required- Unique without regard to case. Must contain 1–80 characters.
accountTypeenum · required- One of Asset, Liability, Equity, Revenue or Expense. Reporting currency is USD.
Returns
The created account object. The Location response header identifies /api/accounts/106. Invalid fields and duplicate names do not create a record.
Response codes
- 201
- Created account · Location: /api/accounts/106
- 400
- Invalid account fields
- 409
- Duplicate account name
Illustrative API contract. Set $API_ORIGIN to your own backend; this example does not host these endpoints.