/create_record(COMPLAINT)
creates ticket in Aarambh which would be raised by either Buyer or Seller
Request Type: POST
Request Body: {"type":"COMPLAINT","data":<<complaint_data>>}}
type: Determines the type of record that is being sent to Aarambh
data: complaint_data schema is defined as follows
{ "order_id":"String" (Buyer app order ID as received over network), "description":{ "short_desc":"String", "long_desc":"String", "code":"String" (category code as mentioned by ONDC), "additional_desc":{ "url": "String", "content_type": "String" }, "images":[] }, "domain":"String" (Domain Code as standardized by ONDC) }
Request Headers: {'Authorization':'Signature generated','subscriberid':'ONDC transactional subscriber Id'}
Response:
Success Response :
{"message":{"ack":{"status":"ACK","complainant_id":"uuid"}}complainant_id received with ACK is a unique ID to identify a Seller or a Buyer
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