updates order status to cancel and updates the settlement file based on the settlement status.
Request Type: POST
POST
Request Body: {"type":"ORDER_CANCEL","data":<on_cancel payload as mandated by ONDC>}
{"type":"ORDER_CANCEL","data":<on_cancel payload as mandated by ONDC>}
type: Determines the type of record that is being sent to Aarambh
data: on_cancel payload schema as mandated by ONDC to be placed here.
Request Headers: {'authorization':'Authorization Signature generated','subscriberid':'ONDC transactional subscriber Id'}
{'authorization':'Authorization Signature generated','subscriberid':'ONDC transactional subscriber Id'}
Response:
Success Response : {"message":{"ack":{"status":"ACK"}}
{"message":{"ack":{"status":"ACK"}}
Errors:
data is not present: {"message":{"ack":{"status":"NACK"},"error":{"error":"Record data 'data' is missing"}}
data
{"message":{"ack":{"status":"NACK"},"error":{"error":"Record data 'data' is missing"}}
type is not present: {"message":{"ack":{"status":"NACK"},"error":{"error":"Record data 'type' is missing"}}
type
{"message":{"ack":{"status":"NACK"},"error":{"error":"Record data 'type' is missing"}}
other errors: {"message":{"ack":{"status":"NACK"},"error":{"error":"internal server error"}}
{"message":{"ack":{"status":"NACK"},"error":{"error":"internal server error"}}
Last updated 9 months ago