Accounts
Create an account
Changed onThis API let’s you to create an account for a customer using customer_id.
post/accounts
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"id": "ACC00001",
"name": "Primary Account",
"primaryEmail": "admin@example.com",
"netTermDays": 45,
"customerId": "C1234ewf"
}Response
Response for Create and Get account requests
Example response
{
"invoiceCurrency": "USD",
"primaryEmail": "admin@example.com",
"status": "ACTIVE"
}Changes
- info
added the optional property
to the response with the status
- info
- breaking
the response property
became optional for the status - breaking
the
response property's maxLength was increased from255to320for the response status - warning
added the new
DRAFTenum value to theresponse property for the response status - info
added the new optional request property
//// - info
added the new optional request property
//// - info
the
////request property's maxLength was increased from255to320 - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking