Cancel Order
The API is used to cancel the orders created by the “Create Order API“. Merchant partners must call this API to cancel the orders created by the Create Order API in the previous step.
Path Parameters
- merchant_id string required
Header Parameters
- X-Access-Key string
Default value:
1mg_client_access_key
- application/json
Request Body
- object
Responses
- 400
Bad Request
Response Headers
Date string
Content-Type string
Content-Length integer
Connection string
X-Request-ID string
VISITOR-ID string
X-VISITOR-ID string
Server string
Access-Control-Allow-Methods string
Access-Control-Allow-Headers string
Access-Control-Allow-Origin string
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
Schema
- object
{}
Cancel Order
{
"is_success": false,
"status_code": 400,
"error": {
"message": "Invalid request",
"errors": [
{
"message": "Invalid request"
}
]
}
}
Invalid Status for Cancelation
{
"is_success": false,
"status_code": 400,
"error": {
"message": "Invalid order status for this operation",
"errors": null
}
}
Loading...