curl --request GET \
--url https://api.developer.coinbase.com/onramp/v1/buy/transactions \
--header 'Authorization: Bearer <token>'{
"next_page_key": "<string>",
"transactions": [
{
"coinbase_fee": {
"currency": "<string>",
"value": "<string>"
},
"completed_at": "2023-11-07T05:31:56Z",
"contract_address": "<string>",
"country": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"end_partner_name": "<string>",
"exchange_rate": {
"currency": "<string>",
"value": "<string>"
},
"failure_reason": "FAILURE_REASON_BUY_FAILED",
"network_fee": {
"currency": "<string>",
"value": "<string>"
},
"partner_user_ref": "<string>",
"payment_method": "UNSPECIFIED",
"payment_subtotal": {
"currency": "<string>",
"value": "<string>"
},
"payment_total": {
"currency": "<string>",
"value": "<string>"
},
"payment_total_usd": {
"currency": "<string>",
"value": "<string>"
},
"purchase_amount": {
"currency": "<string>",
"value": "<string>"
},
"purchase_currency": "<string>",
"purchase_network": "<string>",
"status": "ONRAMP_TRANSACTION_STATUS_CREATED",
"transaction_id": "<string>",
"tx_hash": "<string>",
"type": "ONRAMP_TRANSACTION_TYPE_BUY_AND_SEND",
"user_id": "<string>",
"user_type": "USER_TYPE_AUTHED",
"wallet_address": "<string>"
}
]
}Returns all onramp transactions created by your app in the provided time period.
curl --request GET \
--url https://api.developer.coinbase.com/onramp/v1/buy/transactions \
--header 'Authorization: Bearer <token>'{
"next_page_key": "<string>",
"transactions": [
{
"coinbase_fee": {
"currency": "<string>",
"value": "<string>"
},
"completed_at": "2023-11-07T05:31:56Z",
"contract_address": "<string>",
"country": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"end_partner_name": "<string>",
"exchange_rate": {
"currency": "<string>",
"value": "<string>"
},
"failure_reason": "FAILURE_REASON_BUY_FAILED",
"network_fee": {
"currency": "<string>",
"value": "<string>"
},
"partner_user_ref": "<string>",
"payment_method": "UNSPECIFIED",
"payment_subtotal": {
"currency": "<string>",
"value": "<string>"
},
"payment_total": {
"currency": "<string>",
"value": "<string>"
},
"payment_total_usd": {
"currency": "<string>",
"value": "<string>"
},
"purchase_amount": {
"currency": "<string>",
"value": "<string>"
},
"purchase_currency": "<string>",
"purchase_network": "<string>",
"status": "ONRAMP_TRANSACTION_STATUS_CREATED",
"transaction_id": "<string>",
"tx_hash": "<string>",
"type": "ONRAMP_TRANSACTION_TYPE_BUY_AND_SEND",
"user_id": "<string>",
"user_type": "USER_TYPE_AUTHED",
"wallet_address": "<string>"
}
]
}Enter your JSON Web Token (JWT) here. Refer to the Generate JWT section of our Authentication docs for information on how to generate your Bearer Token.
Date of the oldest transaction to return e.g. 2025-01-02, 2025-01-02T15:04:05Z, 2025-01-02T15:04:05+07:00
Date of the newest transaction to return e.g. 2025-01-03, 2025-01-02T15:04:05Z, 2025-01-02T15:04:05+07:00
Page key returned by this API for pagination
The number of transactions to return, between 1 and 1000
OK
Get All Onramp Transactions response
The page key to be passed into this API to get the next page of results
List of transactions
Show child attributes
The completed at timestamp
The user's contact address
The user's country
The created at timestamp
The name of the developer app
The reason for the transaction failure (if applicable)
FAILURE_REASON_BUY_FAILED, FAILURE_REASON_SEND_FAILED The partnerUserRef provided when initializing the Onramp session that created this transaction
The payment method type used to purchase the crypto
UNSPECIFIED, CARD, ACH_BANK_ACCOUNT, APPLE_PAY, FIAT_WALLET, CRYPTO_ACCOUNT, GUEST_CHECKOUT_CARD, PAYPAL, RTP, GUEST_CHECKOUT_APPLE_PAY Purchase currency symbol e.g. ETH
Network purchased crypto will be sent on e.g. ethereum
Current status of the transaction
ONRAMP_TRANSACTION_STATUS_CREATED, ONRAMP_TRANSACTION_STATUS_IN_PROGRESS, ONRAMP_TRANSACTION_STATUS_SUCCESS, ONRAMP_TRANSACTION_STATUS_FAILED The unique transaction ID
The tx hash of the send
The type of Onramp transaction
ONRAMP_TRANSACTION_TYPE_BUY_AND_SEND, ONRAMP_TRANSACTION_TYPE_SEND A has of the internal user ID
The type of user
USER_TYPE_AUTHED, USER_TYPE_GUEST The address the crypto was sent to
Was this page helpful?