The Swap verification endpoint allows you to verify a specific swap transaction using its transaction merchant reference and user reference.

Request

Method: GET

Endpoint:

{{base_url}}/api/v1/swap/data

Authentication & Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer <token> — your activated authentication token.
Content-TypeStringYesMust be set to application/json.
x-merchant-refStringYesYour unique merchant reference.

Query Parameters

ParameterTypeRequiredDescription
txn_merchant_refStringYesUnique merchant reference for the swap transaction.
user_refStringYesUnique reference identifying the user associated with the transaction.

Example Request

{{base_url}}/api/v1/swap/data?txn_merchant_ref=T123ASDEWSSSAQWES&user_ref=URF12333

Query Swap Transactions

The Swap Query endpoint allows you to retrieve swap transaction records using filters such as date range, user reference, pagination, and sort order.

Use this endpoint when you need to search for or retrieve multiple swap transactions, rather than verifying one specific transaction.

Request

Method: GET

Endpoint:

{{base_url}}/api/v1/transaction/swap-query

Authentication & Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer <token> — your activated authentication token.
Content-TypeStringYesMust be set to application/json.
x-merchant-refStringYesYour unique merchant reference.

Query Parameters

ParameterTypeRequiredDescription
date_fromStringYesStart date for the transaction search.
date_toStringYesEnd date for the transaction search.
pageIntegerYesPage number for paginated results.
no_recordsIntegerYesNumber of records to return per page.
sortStringYesSort order. Use asc or desc.
user_refStringNoFilter transactions by a specific user reference.

Example Request

{{base_url}}/api/v1/transaction/swap-query?date_from=2026-01-01&date_to=2026-02-01&page=1&no_records=10&sort=asc&user_ref=URFX2333

When to Use Each Endpoint

EndpointUse Case
Swap DataVerify or retrieve details for a specific swap transaction using txn_merchant_ref and user_ref.
Swap QuerySearch and retrieve multiple swap transactions using date, pagination, sorting, and user filters.

Did this page help you?