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

  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