Complaint

GENERAL FLOW :

  • These APIs allow merchants to manage transaction-related complaints efficiently.

  • Merchants can submit complaints using the Submit Complaint API by providing relevant details and optional evidence, such as complaint descriptions and images.

  • Once a complaint is submitted, a unique complaint reference ID is generated.

  • This reference ID can be used to track the status and updates of the complaint through the status-check API.

  • The APIs provide a secure and streamlined process for reporting and resolving transaction issues.

  • Merchants receive real-time responses and status updates regarding the complaint.

SECURITY CONSIDERATIONS :

All APIs in this document follow these common security protocols:

  1. HTTPS Requests: All requests are secured and must be sent over HTTPS.

  2. POST Method Only: Only POST requests are permitted for API interactions.

  3. API Header Requirements: Each request must include the following:

    • Token: The provided authentication token.

    • Content-Type: Set to application/json.

  4. Signature Verification:

    • A signature hash must accompany the request parameters for verification.

    • Details of the signature verification process can be found at the end of this document.


  1. Submit Complaint

  • The Complaint Submission API enables merchants to submit transaction-related complaints.

  • Merchants must provide essential details such as pid, order_id, ref_code, and signature for verification.

  • Optionally, merchants can include a detailed complaint_description and attach supporting evidence through base64-encoded screenshot_images.

  • Upon successful submission, the API processes the complaint and logs it into the system.

  • A unique complaint reference ID is generated, allowing the merchant to track the status of the complaint.

Submit Complaint

POST https://<domain>/api/complaint/submit_complaint.php

The Complaint Submission API enables merchants to submit transaction-related complaints.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description
Mandatory

pid

string

Merchant’s unique PID

Yes

order_id

string

The customer order ID of the transaction related to the complaint.

Yes

ref_code

string

The unique reference code of the transaction

Yes

signature

string

Generated signature for verification (signature generation process provided at the end of the documentation)

Yes

complaint_description

string

A detailed description of the complaint

No

screenshot_images

array

Array of base64-encoded images related to the complaint (JPEG/PNG)

No

Note : screenshot_images must be an array and base64-encoded.

Sample Request

Response

  1. View Complaint Info

  • The Complaint Status API enables merchants to retrieve the status of a previously submitted complaint.

  • Merchants must use the complaint reference ID provided upon successful complaint submission.

  • The API provides the following details:

    • Status of the complaint.

    • Comments made on the complaint.

    • Any screenshot images submitted with the complaint.

    • Associated transaction details related to the complaint.

View Complaint Info

POST /https://<domain>/api/complaint/complaint_info.php

The Complaint Status API enables merchants to retrieve the status of a previously submitted complaint.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description
Mandatory

pid

string

Merchant's unique PID.

Yes

complaint_reference_id

string

The complaint reference ID provided after successful complaint submission.

Yes

signature

string

Signature for verification (signature generation process provided at the end of the documentation).

Yes

Sample Request

Sample Response

SIGNATURE GENERATION :

  1. For Complaint Submit API

  • Concatenate request parameters pid, ref_code and order_id along with the secret_key of merchant.

  • Hash the concatenated string using sha256 to create the signature.

PHP Example

Python Example

  1. For Complaint info API

  • Concatenate request parameters pid and complaint_reference_id along with the secret_key of merchant.

  • Hash the concatenated string using sha256 to create the signature

PHP Example

Python Example

Last updated