Invoice cancel
Endpoint
| Endpoint | Method |
Authentication |
| /invoice/cancel | POST | yes |
Authentication
| Type |
Token source |
Server |
| Bearer | {{USAPI}}/auth | USAPI |
Body request
{
"properties"id": "value"OM0003d0CS00009"
}
| Properties |
Properties of | Data type | Required | Description |
id |
string |
invoice ID generated by USAPI |
Request example
Body request example
{
"properties": "value"
}Axios code example
insert code hereResult example
Body200 request exampleOK
insert{
code"message": here"REFUND IN PROCESS"
}
Error example
Body400 Bad request example
insert{
code"message": here"REFUND ALREADY IN PROCESS"
}
{
"message": "TRANSACTION IS ALREADY CANCELED"
}
500 Internal server error
{
"message": "INTERNAL SERVER ERROR"
}