/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:

  1. Success Response : {"message":{"ack":{"status":"ACK","complainant_id":"uuid"}}

    1. complainant_id received with ACK is a unique ID to identify a Seller or a Buyer

  2. Errors:

    1. data is not present: {"message":{"ack":{"status":"NACK"},"error":{"error":"Record data 'data' is missing"}}

    2. type is not present: {"message":{"ack":{"status":"NACK"},"error":{"error":"Record data 'type' is missing"}}

    3. other errors: {"message":{"ack":{"status":"NACK"},"error":{"error":"internal server error"}}

Last updated