Use this API to get chargeback details for chargeback transactions through the Pay1st Gateway
Used in Gateway Integration
NOTE This API feature is still in a beta state
Overview
Chargeback's Details can be viewed with the Pay1st gateway after a payment has been processed. This API is a GET request returns the details of the chargeback.
Pre Requisites
- An access token needs to be generated in order to use this API (see Authentication - Generate Access Token)
API Description
HTTP Headers
| Header Name | Description |
|---|---|
| AccessToken | This is the Access Token field returned from the Authentication - Generate Access Token response. This should be in the format Bearer <AccessToken> |
URL Format
https://<payments_url>/pay1st/transactions/chargebacks/<chargeback_reference>/evidences/<upload_reference>/downloadChargeback Status URL Parameters
These are the list of POST parameters that needs to be passed from the Pay1st Partner to the Pay1st Gateway.
| Param | Format | Mandatory | Description |
|---|---|---|---|
| chargebackReference | Decimal | Y | The chargeback reference |
| uploadReference | Decimal | Y | The upload reference |
Success Response
Valid HTTP Success Status Codes:
| HTTP Status Code | Name | Description |
|---|---|---|
| 200 | Success | This indicates that the request has been successful. |
| 400 | Bad Request | An invalid AccessTokenmight be used |
HTTP Response Body
The response body will be the original uploaded document with the Content-Typeheader set to one of application/pdf, image/jpeg, image/png and the response body containing the bytes of the Content-Type
Error Response
See Handling Error Codes for more details on handling error responses.
