Raise Dispute
Raise Dispute
Description :
This API endpoint is used to raise a dispute against any successfull transaction.
Endpoint URL :Request Parameters
Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
---|---|---|---|---|---|---|
token | string | Yes | API access token for user authentication. [To known more about token Click Here] |
|||
txn_id | string | Yes | txn_id of transaction, should be 19 chars |
Request Example
token=02c4aa7315a0778abb7095c944a1f09b&txn_id=T20230901074017FLCN
Responses (JSON)
{
"status_code": 1,
"message": "Dispute Raised",
"complaint_id": 21564541
}
- Status Code 1: Dispute Raised
- Description: dispute successfully raised.
- 'message' (string): "Dispute Raised"
- 'complaint_id' (integer): "21564541"
{"status_code": 2, "message": "token is required"}
- Status Code 2: Validation Error
- Description: Validation error in the input parameters.
- 'status_code' (integer): 2
- 'message' (string): "A specific validation error message."
{"status_code": 0, "message": Complaint already under review"}
- Status Code 0: Error message
- Description: A specific error message.
- 'status_code' (integer): 0
- 'message' (string): "Complaint already under review"
Note
- The API endpoint should be accessed via a GET request.
- Implement proper error handling on the client side to display user-friendly error messages based on the 'status_code' and 'message' fields in the response.