/update_record(COMPLAINT)
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
{ "_id":"String" (ticket_id as marked in Aarambh), "action":{ "action_by":"String" (complainant_id as received from Aarambh), "description":"String", "code":"String", "images":[], "rating":"" (to be passed if the ticket status is CLOSED) } }
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