Update an invoice
Changed onUpdate an invoice[Only CUSTOM invoices in DRAFT state support updating of all fields]. Updating status can be done for all invoice.
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Example request
{
"startDate": "2020-06-04T12:00:00.000Z",
"endDate": "2020-07-04T12:00:00.000Z",
"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 - info
added the new
REFUND_INITIATEDenum value to the request property
- 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