/create_record(ORDER)
Request Type: POST
Request Body: {"type":"ORDER","data":<on_confirm payload as mandated by ONDC>}
type: Determines the type of record that is being sent to Aarambh
data: on_confirm payload schema as mandated by ONDC to be placed here.
Request Headers: {'Authorization':'Signature generated','subscriberid':'ONDC transactional subscriber Id'}
Response:
Success Response :
{"message":{"ack":{"status":"ACK"}}Errors:
datais not present:{"message":{"ack":{"status":"NACK"},"error":{"error":"Record data 'data' is missing"}}typeis not present:{"message":{"ack":{"status":"NACK"},"error":{"error":"Record data 'type' is missing"}}other errors:
{"message":{"ack":{"status":"NACK"},"error":{"error":"internal server error"}}
Last updated