Skip to main content
GET
Get an Order
Use this endpoint to fetch the complete state of any order — payment instructions, exchange rate, amounts, timestamps, and the current status code. Because the response schema differs between single-currency orders (fiat_to_crypto / crypto_to_fiat) and cross-currency orders (fiat_to_fiat), you must supply the orderType query parameter, together with orderId (or, for fiat_to_crypto and crypto_to_fiat orders, your clientId). Poll this endpoint to drive status-based logic in your application, such as displaying payment instructions to the user or triggering downstream processes once orderStatus reaches 60 (completed).

Endpoint

Use https://api-test.velafi.com/v2/order/detail for sandbox testing.

Query Parameters

integer
The unique numeric ID of the order to retrieve. Required for fiat_to_fiat orders. For fiat_to_crypto and crypto_to_fiat orders, send either orderId or clientId; if both are sent, orderId is used.
string
The clientId you supplied when creating the order. Supported for fiat_to_crypto and crypto_to_fiat orders only.
string
required
The type of the order. Must be one of fiat_to_crypto, crypto_to_fiat, or fiat_to_fiat.

Order Status Codes

orderStatus uses one set of codes for fiat_to_crypto / crypto_to_fiat orders and another for fiat_to_fiat orders.
Ramp orders that VelaFi creates for your account (not through the API or the dashboard) can also show 20 (review rejected) or 30 (approved).

Response Fields — Fiat-to-Crypto / Crypto-to-Fiat

integer
Response status code. 200 indicates success.
string
Human-readable response message.
object
Order detail object.

Response Fields — Fiat-to-Fiat

object
Fiat-to-fiat order detail object.

Examples