Dispute Attachment Api
Dispute Attachment
Description :
This API endpoint is used to upload the dispute attachment.
Endpoint URL :Request Parameters
| Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
|---|---|---|---|---|---|---|
| complaint_id | integer | Yes | id of complaint | |||
| attachment | file | Yes | attachment here, type: image-jpeg,png,jpg,gif |
Request Example
complaint_id:1&attachment:file
Responses (JSON)
- Status Code 1: records fetched
- Description: Attachment uploaded successfully
- 'status_code' (integer): 1
- 'message' (string): "attachment uploaded"
{"status_code": 2, "message": "attachment is required"}, 422
- 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": "Attachment not uploaded"}, 500
- Status Code 0: Error message
- Description: A specific error message.
- 'status_code' (integer): 0
- 'message' (string): "there is no data found"
Note
- The API endpoint should be accessed via a POST request.
- Ensure that the request is properly validated and sanitized to prevent security vulnerabilities.
- 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.