07 - Request cancellation of an order or a return request (Buyer initiated) - /cancel
Developing
POST
/cancel
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
"context": {
"domain": "ONDC:RET11",
"country": "IND",
"city": "std:0124",
"core_version": "1.2.5",
"action": "cancel",
"transaction_id": "{{transaction_id}}",
"message_id": "{{message_id}}",
"timestamp": "{{timestamp}}",
"bap_uri": "{{bap_uri}}",
"bap_id": "{{bap_id}}",
"ttl": "PT30S"
},
"message": {
"order_id": "SS1745833620254",
"cancellation_reason_id": "001",
"descriptor": {
"name": "fulfillment",
"short_desc": "f452402c-902b-4909-8ad9-fbf92436a5d4"
}
}
}'
Response Response Example
{}
Request
Body Params application/json