View Chargeback Details

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 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

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/{chargebackreference}

Chargeback Status URL Parameters

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

ParamFormatMandatoryDescription
chargebackReferenceDecimalNThe chargeback reference

Success Response

Valid HTTP Success Status Codes:

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

HTTP Response Body:

{
  "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",
  "statusHistory": [
    {
      "status": "OPEN",
      "message": "Chargeback initiated by issuing bank",
      "createdDate": "2026-03-10T12:00:00Z"
    }
  ]
}

HTTP Response Fields

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
statusHistoryList[StatusHistory]A list of Status History objects that describes the timeline of the chargeback

StatusHistory Fields

NameTypeDescription
statusStringThe status of the chargeback transitioned into. Valid statuses are OPEN, UNDER_REVIEW, WON, LOST, CANCELLED
messageStringThe detailed message of the chargeback
createdDateStringThe date when the chargeback has been created

Error Response

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