curl --request GET \
--url https://api.cdp.coinbase.com/platform/v2/onramp/orders/{orderId} \
--header 'Authorization: Bearer <token>'{
"order": {
"orderId": "123e4567-e89b-12d3-a456-426614174000",
"paymentTotal": "100.75",
"paymentSubtotal": "100",
"paymentCurrency": "USD",
"paymentMethod": "GUEST_CHECKOUT_APPLE_PAY",
"purchaseAmount": "100.000000",
"purchaseCurrency": "USDC",
"fees": [
{
"type": "FEE_TYPE_EXCHANGE",
"amount": "0.5",
"currency": "USD"
},
{
"type": "FEE_TYPE_NETWORK",
"amount": "0.25",
"currency": "USD"
}
],
"exchangeRate": "1",
"destinationAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"destinationNetwork": "base",
"status": "ONRAMP_ORDER_STATUS_COMPLETED",
"createdAt": "2025-04-24T00:00:00Z",
"updatedAt": "2025-04-24T00:00:00Z",
"txHash": "0x363cd3b3d4f49497cf5076150cd709307b90e9fc897fdd623546ea7b9313cecb",
"partnerUserRef": "user123"
}
}Get an onramp order by ID.
curl --request GET \
--url https://api.cdp.coinbase.com/platform/v2/onramp/orders/{orderId} \
--header 'Authorization: Bearer <token>'{
"order": {
"orderId": "123e4567-e89b-12d3-a456-426614174000",
"paymentTotal": "100.75",
"paymentSubtotal": "100",
"paymentCurrency": "USD",
"paymentMethod": "GUEST_CHECKOUT_APPLE_PAY",
"purchaseAmount": "100.000000",
"purchaseCurrency": "USDC",
"fees": [
{
"type": "FEE_TYPE_EXCHANGE",
"amount": "0.5",
"currency": "USD"
},
{
"type": "FEE_TYPE_NETWORK",
"amount": "0.25",
"currency": "USD"
}
],
"exchangeRate": "1",
"destinationAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"destinationNetwork": "base",
"status": "ONRAMP_ORDER_STATUS_COMPLETED",
"createdAt": "2025-04-24T00:00:00Z",
"updatedAt": "2025-04-24T00:00:00Z",
"txHash": "0x363cd3b3d4f49497cf5076150cd709307b90e9fc897fdd623546ea7b9313cecb",
"partnerUserRef": "user123"
}
}A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
The ID of the onramp order to retrieve.
Successfully retrieved an onramp order.
An Onramp order.
Show child attributes
The ID of the onramp order.
"123e4567-e89b-12d3-a456-426614174000"
The total amount of fiat to be paid, inclusive of any fees.
"100.75"
The amount of fiat to be converted to crypto.
"100"
The fiat currency to be converted to crypto.
"USD"
The type of payment method to be used to complete an onramp order.
GUEST_CHECKOUT_APPLE_PAY "GUEST_CHECKOUT_APPLE_PAY"
The amount of crypto to be purchased.
"100.000000"
The crypto currency to be purchased.
"USDC"
The fees associated with the order.
[
{
"type": "FEE_TYPE_EXCHANGE",
"amount": "0.5",
"currency": "USD"
},
{
"type": "FEE_TYPE_NETWORK",
"amount": "0.25",
"currency": "USD"
}
]The exchange rate used to convert fiat to crypto i.e. the crypto value of one fiat.
"1"
The destination address to send the crypto to.
"0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
The network to send the crypto on.
"base"
The status of an onramp order.
ONRAMP_ORDER_STATUS_PENDING_AUTH, ONRAMP_ORDER_STATUS_PENDING_PAYMENT, ONRAMP_ORDER_STATUS_PROCESSING, ONRAMP_ORDER_STATUS_COMPLETED, ONRAMP_ORDER_STATUS_FAILED "ONRAMP_ORDER_STATUS_COMPLETED"
The date and time the order was created.
"2025-04-24T00:00:00Z"
The date and time the order was last updated.
"2025-04-24T00:00:00Z"
The transaction hash of the order (only available once crypto has been sent).
"0x363cd3b3d4f49497cf5076150cd709307b90e9fc897fdd623546ea7b9313cecb"
The partner user reference ID.
"user123"
Was this page helpful?