GET
/
v1
/
buy
/
transactions
Get all onramp transactions
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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.

Query Parameters

startDate
string

Date of the oldest transaction to return e.g. 2025-01-02, 2025-01-02T15:04:05Z, 2025-01-02T15:04:05+07:00

endDate
string

Date of the newest transaction to return e.g. 2025-01-03, 2025-01-02T15:04:05Z, 2025-01-02T15:04:05+07:00

pageKey
string

Page key returned by this API for pagination

pageSize
integer

The number of transactions to return, between 1 and 1000

Response

OK

Get All Onramp Transactions response

next_page_key
string

The page key to be passed into this API to get the next page of results

transactions
object[]

List of transactions