Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Verify Payment Status

Verify IVB payment and payout status and distinguish final transaction results from successful API requests.

Base path: /v1/business/transactions Authentication: API Key (Authorization: <secret-key>)


Overview

These endpoints apply to all transaction types on Ivorypay, including:

  • Crypto payment collection: customer sends crypto to a wallet address (on-chain)

  • Fiat payment collection: customer pays via bank transfer (off-chain)

  • Crypto payout: funds disbursed to a crypto wallet address

  • Fiat payout: funds disbursed to a bank account

Regardless of the transaction type, the same reference identifier and verification flow applies.


Endpoints

Method
Path
Auth
Description

GET

/v1/business/transactions/:reference/verify

API Key

Verify the current status of a transaction

GET

/v1/business/transactions/refresh/:reference

API Key

Refresh an eligible crypto payment session


GET /v1/business/transactions/:reference/verify

Returns the live status and settlement details of a transaction identified by its reference.

This endpoint works for all transaction types: crypto collection, fiat collection, crypto payout, and fiat payout. Use the returned transaction fields together with the payment operation you saved when initiating. Fields can be null or absent for transaction types that do not use them.

Use this endpoint to:

  • Poll for payment confirmation while waiting for a webhook

  • Display a payment result screen after your customer completes a payment

  • Confirm a transaction was settled before fulfilling an order

  • Verify the status of an outgoing payout (crypto or fiat)

Request

Headers

Path Parameters

Parameter
Type
Required
Description

reference

string

Yes

The unique transaction reference returned on creation

Example Request


Response


Response Fields

The authenticated receipt includes crypto quantities. It does not expose amountInBaseFiat or baseFiat; retain the original fiat quote on your order. Match the saved crypto expectation and token as well as the reference before fulfilment. Legacy records may also carry a crypto field.

Field
Type
Description

id

string (uuid)

Internal transaction ID

reference

string

Your supplied reference, used for reconciliation

status

string

Current transaction status. See status values

type

string

Payment channel type: CRYPTO or FIAT

channel

string

Settlement channel: ON_CHAIN or OFF_CHAIN

token

string

Token used for this transaction: e.g. USDT, USDC

settledAmountInCrypto

number

Net crypto amount credited to your wallet after fees

expectedAmountInCrypto

number

Exact amount the customer was asked to send

receivedAmountInCrypto

number

Actual amount received on-chain or via bank

address

string | null

Blockchain address assigned (CRYPTO transactions only)

chain

string | null

Blockchain network: e.g. BSC_MAINNET, POLYGON (CRYPTO only)

expiresAt

string | null

ISO timestamp when the payment window closes (CRYPTO only)

completedAt

string | null

ISO timestamp when the transaction reached a terminal status

createdAt

string

ISO timestamp when the transaction was created


Transaction Status Values

Status
Terminal
Description

PENDING

No

Awaiting payment from the customer

SUCCESS

Yes

Payment confirmed and settled to your wallet

FAILED

Yes

Transaction failed during processing

EXPIRED

Yes

Payment window closed with no payment received

MISMATCH

Yes

Customer sent a different amount than expected

Stop rapid UI polling once an outcome is available. Keep webhook and reconciliation handling active: late payments, refunds or reconciliation can produce later updates. Do not assume a failed or expired payment means no money was received.


CRYPTO vs FIAT: Response Differences

Field
CRYPTO
FIAT

type

"CRYPTO"

"FIAT"

channel

"ON_CHAIN"

"OFF_CHAIN"

address

Blockchain wallet address

null

chain

Blockchain network (e.g. BSC_MAINNET)

null

expiresAt

ISO timestamp of the payment window expiry

null

receivedAmountInCrypto

Actual on-chain amount received

Amount received via bank transfer (in crypto equivalent)


Error Responses

Status
Message
Cause

401

Unauthorized

Missing or invalid API key

404

Transaction not found

No transaction matches the provided reference


Direct bank payment status

For direct ZAR collections, GET /api/v1/transactions/:reference/status returns saved payment state using your secret key. It reads only payments belonging to your business and the key's TEST/LIVE environment; it does not initiate or resubmit payments. Read data.status and the available failureCode / failureReason. See ZAR bank payments for initiation, authorization and recovery.

Polling vs Webhooks

Webhooks are the recommended approach for detecting payment status changes: they are near real-time and reduce unnecessary load. Use verification polling only as a fallback.

Approach
When to use

Webhooks

Primary method. Ivorypay pushes status updates to your registered webhook URL

Polling

Fallback. Poll every 5–10 seconds until you reach a terminal status

See Webhooks for event types, signature verification, and setup.


Integration Flow


Code Examples

Node.js

Node.js: Polling with backoff

cURL

Python


GET /v1/business/transactions/refresh/:reference

Refreshes an eligible crypto collection session using its saved crypto amount and fees; it does not fetch a new exchange-rate quote. This legacy Merchant endpoint performs a mutation despite using GET; do not prefetch it, call it from a page-render loop, or cache its response. It differs from the Ramp product's refresh routes.

The response includes customer/reference fields, data.transferDetails and a data.refreshToken. Use the returned walletAddress, amountPayable, expiresAt and sessionId for the active session. Do not assume the address, amount or expiry from a previous response still applies. transferDetails.fiatAmount is currently null; the optional legacy fiatCurrency query does not reprice the session.

The backend retains the session and refresh receipt to recover repeated calls. If the response is uncertain, check the transaction before collecting again. A new transaction reference can cause a separate payment, so do not use one as a timeout-recovery shortcut. Refresh is unavailable once payment has progressed beyond an eligible unfunded session.

Last updated