List Refunds

Use this API to list refunds by their transaction reference through the Pay1st Gateway.

Used in Gateway Integration

📘

NOTE This API feature is still in an beta state

Overview

A Refund's details can be viewed with the Pay1st gateway after a payment has been processed. This API is a GET request that returns the details of the refund given a refund reference.

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.refund+json

URL Format

https://<payments_url>/api/pay1st/transactions/refunds?transactionReference={transactionReference}&partnerRefundReference={partnerRefundReference}

List Refund URL Parameters

These are the query parameters that can be passed from the Pay1st Partner to the Pay1st Gateway.

ParamFormatMandatoryDescription
transactionReferenceStringNThe transaction reference.
partnerRefundReferenceStringNThe partner refund reference value provided in the refund request.

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:

{
  "refunds": [
    {
      "refundReference": "P-67890-R",
      "transactionReference": "C-12345-P",
      "partnerRefundReference": "P-12345",
      "amount": 50.00,
      "currencyCode": "ZAR",
      "status": "SUCCESSFUL",
      "handlingType": "PSP_API",
      "fullRefund": false,
      "reason": "Customer requested refund",
      "createdDate": "2026-03-10T12:00:00Z",
      "lastModifiedDate": "2026-03-10T12:05:00Z"
    }
  ]
}

HTTP Response Fields

The response will contain a list of refunds Objects. These are described in the table below

NameTypeDescription
refundReferenceStringThe unique identifier of the Refund Request
transactionReferenceStringThe original transaction's identifier that was passed in the request
partnerRefundReferenceStringPartner's unique refund identifier if passed in refund request
amountNumberThe amount that will be refunded
currencyCodeStringThe currency code of the refund
statusStringIndicates the status of the refund. Possible values are PENDING, PROCESSING, SUCCESSFUL, FAILED, REJECTED
handlingTypeStringThis indicates how the refund will be handled. Possible values are PSP_API, PSP_MANUAL, NO_REFUND
fullRefundStringIndicates whether this is a full refund
reasonStringA detailed description of the refund
createdDateStringThe timestamp that the refund was created
lastModifiedDateStringThe timestamp that the refund was last updated

Error Response

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