Create a customer
Changed onThis API let’s you to create customers and corresponding 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": "01BX5ZZKBKACTAV9WEVGEMMVRZ",
"name": "ACME Enterprise",
"primaryEmail": "admin@example.com",
"account": {
"id": "ACC00001",
"name": "Primary Account",
"primaryEmail": "admin@example.com",
"netTermDays": 45
}
}Response
Response for Create customer request
Example response
{
"account": {
"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 - breaking
the
response property's maxLength was increased from255to320for the response status - warning
added the new
DRAFTenum value to the/response 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
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 - info
added the required property
to the response with the status
- breaking