Returns one order by its Banxa order ID: its status, crypto and fiat amounts, fees, payment method, and the asset, blockchain and wallet address. Use it to check an order's status, for example after a webhook arrives. See Order statuses for what each status means.
- Mock serverhttps://docs.banxa.com/_mock/products/hosted-checkout/openapi/{partner}/v2/orders/{orderId}
- https://api.banxa.comhttps://api.banxa.com/{partner}/v2/orders/{orderId}
curl -i -X GET \
'https://docs.banxa.com/_mock/products/hosted-checkout/openapi/{partner}/v2/orders/{orderId}' \
-H 'Accept: application/json' \
-H 'x-api-key: YOUR_API_KEY'Order details.
Banxa’s internal numeric reference for the order. Quote this to Banxa Support.
If the customer switched payment method during checkout (for example after a failed payment), the payment method ID they started with. null otherwise.
true if this order is a retry after the customer switched payment method.
On-chain transaction hash. For sell orders, the hash of the customer’s deposit transaction; null until the deposit is confirmed.
For buy orders, the customer’s receiving wallet. For sell orders: before checkout, the customer’s own sending wallet (the walletAddress sent on POST /v2/sell); once status is waitingPayment, Banxa’s deposit address for the order. Don’t send crypto to it until status is waitingPayment.
Memo or tag for walletAddress, on chains that use one. For sell orders, include it with the deposit.
{ "createdAt": "2022-08-22T09:10:43.724Z", "updatedAt": "2022-08-22T09:13:56.165Z", "id": "191fa5b4b1f45e1cf784422e09317d56", "externalOrderId": "a4b427ccb872a1744b317456bd0d165f", "externalCustomerId": "testing123", "country": "US", "orderStatusUrl": "https://banxa.status/a4b427ccb872a1744b317456bd0d165f", "orderType": "BUY", "crypto": { "id": "USDC", "blockchain": "TRON", "address": "0x0000000000000000000000000000000000000000", "network": "1" }, "fiat": "CAD", "fiatAmount": "1000.00", "cryptoAmount": "696.63", "paymentMethodId": "apple-pay", "paymentMethodName": "Apple Pay", "processingFee": "0.30", "networkFee": "1.67", "transactionHash": "0x5ea06c4724e8119704a1b57c918acf31742eb06cdf3f8678fdb17f41bbaf968e", "walletAddress": "0x75b8d4d81377d4b0f11798779563462264914a24", "walletAddressTag": "1651352", "status": "complete", "metadata": { "tracking_id": "HSKJDGHKSJG0393LJKJF" } }