Invoices
Create a custom invoice for an account
Changed onCreate a custom invoice for an account.
post/invoices
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"accountId": "ACC001",
"startDate": "2020-06-04T12:00:00.000Z",
"endDate": "2020-07-04T12:00:00.000Z",
"idempotencyKey": "1234567890",
"status": "DUE"
}Response
Response for Get invoice requests
Example response
{
"autoAdvance": true,
"startDate": "2020-07-04T12:00:00.000Z",
"endDate": "2020-07-04T12:00:00.000Z",
"endDateInclusive": "2020-07-03T11:59:59.999Z",
"invoiceDate": "2020-07-04T12:00:00.000Z",
"dueDate": "2020-07-04T12:00:00.000Z"
}Changes
- warning
added the new
ADHOC_ADVANCEDenum value to theresponse property for the response status - warning
added the new
STANDARD_ADVANCEDenum value to theresponse property for the response status
- warning
- warning
added the new
PROXY_AMOUNTenum value to the/response property for the response status - warning
added the new
PROXY_AMOUNTenum value to the//response property for the response status - warning
added the new
USAGE_CYCLE_AMOUNTenum value to the/response property for the response status - warning
added the new
USAGE_CYCLE_AMOUNTenum value to the//response property for the response status
- warning