Cancel Order
Flow
Description: If you no longer want to continue paying for an order, use this API to set the order status on Baokim to cancelled.
API Information
Method: POST
URL: /b2b/core/api/ext/mm/order/cancel
Request
Main Parameters Table
| Field Name | Data Type | Required | Description |
|---|---|---|---|
| request_id | String | ✅ | Request ID |
| request_time | Datetime | ✅ | Request time. Format: YYYY-MM-DD H:m:s |
| master_merchant_code | String(50) | ✅ | Master merchant code provided by Baokim |
| sub_merchant_code | String(50) | ✅ | Sub merchant code provided by Baokim |
| mrc_order_id | String | ✅ | Merchant's order ID |
Request Example
{
"request_id": "RQID0001",
"request_time": "2023-08-18T10:00:00.000Z",
"master_merchant_code": "BAOKIMMASTERMERCHANT",
"sub_merchant_code": "BAOKIMSUBMERCHANT",
"mrc_order_id": null
}
Response
note
HTTP 200 - Success
Main Parameters Table
| Field Name | Data Type | Required | Description |
|---|---|---|---|
| code | Integer | ✅ | Result code |
| message | String | ✅ | Message |
| data | null | ✅ | Returned data |
Response Example
{
"code": 0,
"message": "Successfully",
"data": null
}
Error Codes
| Error Code | Description |
|---|---|
| 104 | Authentication error |
| 105 | Invalid digital signature |
| 108 | Order cannot be cancelled |
| 109 | Order not found |
| 710 | Sub Merchant not found |
| 711 | Master Merchant not found |
| 712 | Sub Merchant inactive |
| 713 | Master Merchant inactive |
| 714 | Sub Merchant does not belong to Master Merchant |