Use this API to list chargeback transactions through the Pay1st Gateway
Used in Gateway Integration
NOTE This API feature is still in an beta state
Overview
A 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> |
| Content-Type | application/vnd.carry1st.payments.chargeback+json |
URL Format
https://<payments_url>/api/pay1st/transactions/chargebacks/{chargebackreference}Chargeback Status URL Path Parameters
These are the list of path parameters that needs to be passed from the Pay1st Partner to the Pay1st Gateway.
| Param | Format | Mandatory | Description |
|---|---|---|---|
| chargebackReference | String | Y | The chargeback reference |
Chargeback Status URL Query Parameters
These are the list of query parameters that needs to be passed from the Pay1st Partner to the Pay1st Gateway.
| Param | Format | Mandatory | Description |
|---|---|---|---|
| page | Number | N | The page number |
| size | Number | N | The page size that represents the number of results to return |
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:
{
"chargebacks": [
{
"chargebackReference": "C-VGC1UG4FO4TOK8DA8FC-C",
"transactionReference": "C-2N6F4KUIWZ5X1VTV978-P",
"partnerReference": "C-2N6F4KUIWZ5X1VTV978-P",
"chargebackAmount": 2000,
"currencyCode": "NGN",
"reasonCode": "PRODUCT_NOT_RECEIVED",
"status": "OPEN",
"responseDeadline": "2026-Jun-21 17:38:00",
"createdDate": "2026-Jun-02 16:41:52",
"lastModifiedDate": "2026-Jun-02 16:41:52"
},
"currentPage": 0,
"totalPages": 1,
"totalResults": 10,
"hasNext": false
}HTTP Response Fields
Response objects are paginated according to the pagination parameters provided
| Name | Type | Description |
|---|---|---|
| chargebacks | List[Chargebacks] | A list of Chargebacks Objects |
| currentPage | Number | The current page that is being viewed |
| totalPages | Number | The total number of pages based on the pageSize |
| totalResults | Number | The total number of chargebacks available |
| hasNext | Boolean | False if this is the last page in the list of pages |
Chargebacks
| Name | Type | Description |
|---|---|---|
| chargebackReference | String | A unique identifier that identifies the chargeback transaction |
| transactionReference | String | The original Pay1st transaction reference |
| partnerReference | String | The original Pay1st transaction's partnerReference |
| chargebackAmount | Number | The amount of the chargeback |
| currencyCode | String | The currency code used for the chargeback |
| reasonCode | String | Indicates the reason code for the chargeback. Possible values are FRAUDULENT, DUPLICATE, PRODUCT_NOT_RECEIVED, PRODUCT_UNACCEPTABLE, CREDIT_NOT_PROCESSED, SUBSCRIPTION_CANCELLED, AUTHORIZATION_ERROR, GENERAL, OTHER |
| status | String | The status of the chargeback. Valid statuses are OPEN, UNDER_REVIEW, WON, LOST, CANCELLED |
| responseDeadline | String | The date at which to respond for the chargeback |
| createdDate | String | The date when the chargeback has been created |
| lastModifiedDate | String | The date when the chargeback has been last modified |
Error Response
See Handling Error Codes for more details on handling error responses.
