Payments
create payments
Changed oncreate payments
post/payments
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"description": "Payment for Invoice inv.234.23afv",
"notes": "Payment for purchase of credits",
"accountId": "ACC001",
"lineItemRecords": [
{
"togaiId": "inv.234.12efwe"
}
],
"currency": "USD"
}Response
Response for POST payments requests
Example response
{
"id": "pay.w123rwe.1231",
"accountId": "ACC001",
"lineItemRecords": [
{
"togaiId": "inv.234.12efwe"
}
]
}Changes
- info
the response property
became required for the status
- info
- breaking
removed the enum value
CHECKof the request property/ - warning
added the new
CHEQUEenum value to the/response property for the response status - info
added the new
CHEQUEenum value to the request property/ - info
removed the
CHECKenum value from the/response property for the response status
- breaking