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

GET https://<payments_url>/api/pay1st/transactions/refund?refundReference={refundReference}
GET https://<payments_url>/api/pay1st/transactions/refund?partnerRefundReference={partnerRefundReference}

URL Query Parameters

Send one of these query parameters:

ParamFormatMandatoryDescription
refundReferenceStringOne of the twoThe refundReference returned by the Refund Request API
partnerRefundReferenceStringOne of the twoThe partnerRefundReference you sent in the refund request

Success Response

Valid HTTP Status Codes:

HTTP Status CodeNameDescription
200SuccessThe refund was found
400Bad RequestNeither query parameter was sent, or the refund belongs to another partner (error 4209)
404Not FoundNo refund was found for the reference (error 4200)

HTTP Response Body:

{
  "refundReference": "C-7MV6T02M8O88UCRCBYW-R",
  "transactionReference": "C-CA5CGGMV7QQG1HUY05Z-P",
  "partnerReference": "48502830697945",
  "partnerRefundReference": "refund-7f3c2a91",
  "amount": 50.00,
  "currencyCode": "NGN",
  "status": "SUCCESSFUL",
  "handlingType": "PSP_API",
  "fullRefund": false,
  "reason": "Customer requested refund",
  "createdDate": "2026-Mar-10 12:00:00",
  "lastModifiedDate": "2026-Mar-10 12:05:00"
}

HTTP Response Fields

NameTypeDescription
refundReferenceStringThe unique identifier of the refund
transactionReferenceStringThe original Pay1st transaction reference
partnerReferenceStringThe partnerReference of the original payment
partnerRefundReferenceStringYour refund identifier from the refund request. Left out if you did not send one
amountNumberThe amount that will be refunded
currencyCodeStringThe currency code of the refund
statusStringThe current status of the refund: PENDING, PROCESSING, SUCCESSFUL, FAILED or REJECTED
handlingTypeStringHow the refund is handled: PSP_API (refunded automatically through the payment provider) or PSP_MANUAL (processed manually by Carry1st)
fullRefundBooleantrue if this refund is for the full amount paid
reasonStringThe reason passed in the refund request
createdDateStringThe date and time the refund was created, in UTC, in the format yyyy-MMM-dd HH:mm:ss (e.g. 2026-Mar-10 12:00:00)
lastModifiedDateStringThe date and time the refund was last updated, in UTC, in the format yyyy-MMM-dd HH:mm:ss

Error Response

Error CodeHTTP StatusDescription
4200404No refund was found for the reference
4209400The refund does not belong to your account

See Handling Error Codes for the general error codes and how to handle error responses.