Skip to main content

The transaction object

A transaction is the single source of truth for every financial event in Orafi. Each payment, payout, and refund creates a transaction record.
string
Unique identifier for the transaction.
string
Transaction type. One of PAYMENT, PAYOUT, or REFUND.
string
default:"PENDING"
Current status. One of PENDING, COMPLETED, or FAILED.
number
Transaction amount in NGN.
number
Equivalent amount in USDC.
string
Whether this transaction was created in test or live mode.
string
default:"USDC"
The token used. Currently always USDC.
datetime
Timestamp when the transaction was created.
datetime
Timestamp when the transaction was confirmed. Null if still pending.
string
Business profile that owns this transaction.
string
Customer associated with the transaction, if applicable.
Depending on the transaction type, one of the following sub-objects will be populated:
  • type: "PAYMENT" → includes a nested payment object. See Payments.
  • type: "PAYOUT" → includes a nested payout object. See Payouts.
  • type: "REFUND" → includes a nested refund object. See Refunds.

List all transactions

GET /transactions
Returns a paginated list of all transactions for the authenticated business. Supports filtering by type, status, token, mode, date, and more.

Query parameters

string
Filter by type: PAYMENT, PAYOUT, or REFUND.
string
Filter by status: PENDING, COMPLETED, or FAILED.
string
Filter by token. Currently only USDC.
string
Filter by mode: test or live.
string
JSON-encoded date filter. Supports preset intervals or custom ranges.Preset: {"type":"preset","interval":"last7days"}Allowed intervals: today, yesterday, last7days, last30days, thisMonth, lastMonth, thisYearRange: {"type":"range","startDate":"2025-01-01","endDate":"2025-01-31"}
Filter by a specific paylink.
string
Filter by payment method: PAYMENT_LINK or HOSTED_CHECKOUT.
string
Filter by customer.
number
default:"20"
Maximum number of transactions per page.
string
Cursor for pagination. Pass the nextCursor from a previous response.

Retrieve a transaction

GET /transactions/{transactionId}
Fetches full details for a single transaction, including related payment, payout, or refund data.

Path parameters

string
required
Unique identifier of the transaction to retrieve.