For the complete documentation index, see llms.txt. This page is also available as Markdown.
Get order
[GET] /api/v2/order
Reads one order, by its ID or by the orderParams reference you set when you created it.
Request query params type:
typeQueryParams={orderId?:string,// the order's _idorderParams?:string,// your own reference, from create order}
Send exactly one of the two. Neither is 400 Either orderId or orderParams is required; both is 400 Only one of orderId or orderParams should be provided. There is no precedence rule.
Request URL example:
GET /api/v2/order?orderId=69281d944a1db009177f0198
An order that belongs to another merchant answers 404 with the code ORDER_NOT_AVAILABLE, the same as an order that does not exist.
Optional fields are omitted, not null, until they have a value. A fresh order has no transaction on either leg and an empty statusChangeLogs.
deposit.transaction is only present on a crypto deposit — that is, on an off-ramp.
payout.transaction.meta carries transactionHash for a crypto payout and paymentChannelAdditionalInfo for a fiat one.
refund appears only once a refund exists. See Order statuses.
statusChangeLogs records transitions, not creation. It is empty on a fresh order and every entry carries both oldStatus and newStatus — with one exception: a deposit_canceled entry is written without an oldStatus. Treat the field as optional and do not assume the first entry is the one missing it.
expiresAt is when an unpaid order goes to deposit_expired.
Response example (sandbox, a completed KES mobile money on-ramp):