Invoice cancel
Endpoint
| Endpoint | Method |
Authentication |
| /invoice/cancel | POST | yes |
Authentication
| Type |
Token source |
Server |
| Bearer | {{USAPI}}/auth | USAPI |
Body request
{
"id": "OM0003d0CS00009"
}
| Properties |
Properties of | Data type | Required | Description |
| id | string | yes | invoice ID generated by USAPI |
Result example
200 OK
{
"message": "REFUND IN PROCESS"
}
Error example
400 Bad request
{
"message": "REFUND ALREADY IN PROCESS"
}
{
"message": "TRANSACTION IS ALREADY CANCELED"
}
{
"message": "EXPIRED INVOICE"
}
500 Internal server error
{
"message": "INTERNAL SERVER ERROR"
}