Query Refund by Reference

Use this API to query refunds by their refund 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 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/{refundReference}

URL Path Parameters

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

ParamFormatMandatoryDescription
refundReferenceStringYThe refund 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:

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

HTTP Response Fields

NameTypeDescription
refundReferenceStringThe unique identifier of the Refund Request
transactionReferenceStringThe original transaction's identifier that was passed in the 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 date 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.