Query Chargeback Transactions

Use this API to get chargeback statuses for transactions through the Pay1st Gateway

Used in Gateway Integration

📘

NOTE This API feature is still in an beta state

Overview

A Chargeback Request can be created with the Pay1st gateway after a payment has been processed. This API is a POST request that takes Pay1st transaction reference as input, and returns a list of chargeback transactions as a JSON response.

Pre Requisites

API Description

HTTP Headers

Header NameDescription
AccessTokenThis is the Access Token field returned from the Authentication - Generate Access Token response. This should be in the format Bearer <AccessToken>
Content-Typeapplication/vnd.carry1st.payments.chargeback+json

URL Format

https://<payments_url>/api/pay1st/transactions/chargebacks?<queryparameters>

Chargeback Status Query Parameters

These are the list of POST parameters that needs to be passed from the Pay1st Partner to the Pay1st Gateway.

ParamFormatMandatoryDescription
transactionReferenceStringNThe Pay1st Identifier that was obtained in the response of Create Payment Request
chargebackReferenceDecimalNThe chargeback reference.
statusStringNThe chargeback status. Possible values are OPEN, UNDER_REVIEW, WON, LOST, CANCELLED
dateFromStringNThe start date to filter for chargeback statuses
dateToStringNThe end date to filter for chargeback statuses
pageStringNUsed for pagination to indicate the page number
sizeStringNUsed for pagination to indicate the size of the page

### Example JSON Request

The following JSON Request is an example of the correct construction of a Create Payment Request:

Success Response

Valid HTTP Success Status Codes:

HTTP Status CodeNameDescription
201SuccessThis indicates that the request has been successful.
400Bad RequestAn invalid AccessTokenmight be used

HTTP Response Body:

{
  "chargebacks": [
    {
      "chargebackReference": "CB-11111",
      "transactionReference": "C-12345-T",
      "chargebackAmount": 100.00,
      "currencyCode": "ZAR",
      "reasonCode": "FRAUDULENT",
      "reasonDescription": "Fraudulent transaction",
      "status": "OPEN",
      "responseDeadline": "2026-03-11T04:00:00Z",
      "createdDate": "2026-03-10T12:00:00Z",
      "lastModifiedDate": "2026-03-10T12:00:00Z"
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalResults": 1,
  "hasNext": false
}

HTTP Response Fields

NameTypeDescription
chargebacksList[Chargeback]The unique identifier of the Refund Request
currentPageNumberThe current page of this list
totalPagesNumberThe total number of pages for the result
totalResultsNumberThe total number of results
hasNextBooleanIndicates whether the current page is the last page

Chargeback Response

NameTypeDescription
chargebackReferenceStringA unique identifier that identifies the chargeback transaction
transactionReferenceStringThe original Pay1st transaction reference for the request
chargebackAmountNumberThe amount of the chargeback
currencyCodeStringThe currency code used for the chargeback
reasonCodeStringIndicates 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
reasonDescriptionStringDescribes the chargeback in more detail
statusStringThe status of the chargeback. Valid statuses are OPEN, UNDER_REVIEW, WON, LOST, CANCELLED
responseDeadlineStringThe date at which to respond for the chargeback
createdDateStringThe date when the chargeback has been created
lastModifiedDateStringThe date when the chargeback has been last modified

Error Response

See Handling Error Codes for more details on handling error responses.