Cancel Order
About 156 wordsLess than 1 minute
POST Cancel Order
POST /v1.0/cancel
Request Parameters
{
"referenceId": "86621248",
"cancelAmount": 0
}| Name | Type | Required | Description |
|---|---|---|---|
| referenceId | string | Yes | Customer order reference ID |
| cancelAmount | decimal | No | Cancellation penalty amount |
Request Example
curl --location --request POST '{{domain}}/v1.0/cancel' \
--header 'Authorization: PHT apikey={{api_key}},signature={{signature}},timestamp={{timestamp}}' \
--header 'api_key: {{api_key}}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Connection: keep-alive' \
--data-raw '{
"referenceId":"86621248",
"cancelAmount":0
}Response Example
{
"responseStatus": "SUCCESS",
"version": "v1.0",
"referenceId": "230602279",
"cancellationFees": 0,
"remark": null
}| Field | Type | Required | Description |
|---|---|---|---|
| responseStatus | string | Yes | Status |
| version | string | Yes | API version |
| referenceId | string | Yes | Order ID |
| cancellationFees | decimal | No | Cancellation fee |
| remark | string | No | Additional remarks |
Status Codes
| Code | Description |
|---|---|
| SUCCESS | Success |
| CANCEL_FAIL | Cancellation failed |
| UNAUTHORIZED | Authentication failed |
| SUPPLIER_SERVER_ERROR | System or supplier error |