Skip to main content
Use the PeerPesa order details endpoint to fetch a single order by its order_id. The response includes the full order record plus the transactions array, so you can track each leg of a swap, send, buy, withdraw, or deposit down to its blockchain tx_hash.

GET /orders/{order_id}

Returns one order with its transactions.
string
required
The order’s order_id, for example 22573706304032. Get it from List Orders or from the response when you create an order.

The order object

This cUSD to USDT swap on Celo shows a complete order:
Response
Amounts and fees on orders are returned as numbers. Transactions with user_id 0000-0000-0000-0000 are PeerPesa system legs, such as the payout that delivers the swapped asset to the recipient.

Order fields

string
Internal order record ID (UUID).
string
Public order number. Use it with GET /orders/{order_id} and in support requests.
string
ID of the account that placed the order.
string
Kind of order, for example swap.
string
Order status, for example successful.
string
Asset the order was placed in, for example cUSD.
string
ID of the order asset.
string
Source network or asset code, for example cusd.
string
Destination network or asset code, for example usdt.
string
ID of the order’s network.
string
Network ID the funds left from.
string
Network ID the funds arrived on.
string
Asset sent, for example cUSD. from_asset_id holds its ID.
string
Asset received, for example USDT. to_asset_id holds its ID.
number
Order amount in the source asset.
number
Total debited from your balance, including fees.
number
Amount sent. from_asset_amount holds the same value in source asset units.
number
Amount converted into the destination asset. to_asset_amount holds the same value in destination asset units.
number
Amount the recipient received after fees.
number
Blockchain network fee.
number
PeerPesa conversion fee.
number
Sum of network_fee and exchange_fee.
number
Rate applied between from_asset and to_asset.
number | null
Slippage tolerance used for swaps, or null.
string
Wallet address the funds came from.
string
Wallet address the funds were delivered to.
string
Memo sent with the order, for networks such as Stellar. Empty when not used.
string | null
Fiat currency for buy and withdraw orders, for example KES. null for crypto-only orders.
string | null
Country for fiat orders, or null.
string
Fiat payment mode for buy and withdraw orders, for example mobile money or bank. Empty for crypto-only orders.
string | null
Saved payment method used for fiat orders.
string | null
Mobile money or bank account number for fiat orders.
object | null
Extra fiat payment details, when present.
string | null
Payment channel used for fiat orders. provider_network_id and provider_channel_id identify the payout provider’s network and channel.
string | null
Reason or note attached to the order.
string | null
Who cancelled the order, when cancelled. cancel_reason and cancel_date give the reason and time.
string
ID of the recurring payment that created this order. Empty for one-off orders.
string
ISO 8601 timestamp when the order was created. updated_at and deleted_at track later changes.
object[]
On-chain or ledger transactions that carried out the order.
Some transaction fields, such as base_currency, quote_currency, sell_amount, buy_amount, ico_unit_price, approved_by, transaction_admin_info, third_party_status, payment_object, and request_obj, are reserved for internal use or other order types and are usually empty.

Errors

See Error Codes for the full list.