Endpoints: /v1/invoices/{invoice_id}
HTTP Method: PATCH
Headers:
Production: https://api.midtrans.com/v1/invoices/{invoice_id}/void
Sandbox: https://api.sandbox.midtrans.com/v1/invoices/{invoice_id}/void
Key | Description |
---|---|
Authorization | Basic Base64Encode(merchantServerKey:) |
Eligibility
Only invoice with PENDING and OVERDUE that can be voided
Response
{
"success": true
}
{
"error_messages": [
"Not Found"
]
}
{
"error_messages": [
"Invoice cannot be canceled"
]
}
{
"error_messages": [
"Internal server error"
]
}