Offramp Transaction Status

The Offramp Transaction Status API provides developers with a list of user Offramp transactions. Developers can poll the real time status of offramp transactions and show users a view of their Coinbase transactions made within the client app. To link all transactions created during the session, developers must provide the (optional) field partnerUserId as a query parameter when initializing Coinbase Onramp and Offramp. Transaction Status returns a paginated list of all transactions from newest to oldest. If the client app doesn’t have a concept of a user, clients can pass a random partnerUserId to reference a one-off session. There are two ways to get the transaction status:
  1. Use the fetchOnrampTransactionStatus util to get the transaction status
  2. Make a direct call to the API
Full API endpoint listFor a complete list of all API endpoints supported by Onramp/Offramp, visit our API Reference section.

Method

GET

URL

https://api.developer.coinbase.com/onramp/v1/sell/user/{partner_user_id}/transactions?page_key={next_page_key}&page_size={page_size}

Request Parameters

The Transaction Status API is an RPC endpoint that accepts an argument as part of its URL path.
NameTypeReqDescription
partner_user_idStringYID referring to user Offramp transactions in client app.
page_keyStringNReference to next page of transactions. Returned in previous page’s response.
page_sizeNumberNNumber of transactions to return per page. Default is 1.

Response Fields

The Transaction Status API returns a JSON response including the following fields.
NameDescription
transactionsList of OfframpTransactions in reverse chronological order.
next_page_keyA reference to the next page of transactions.
total_countThe total number of transactions made by the user.

OfframpTransaction Schema

NameDescriptionValue
statusStatus of the offramp transaction.TRANSACTION_STATUS_STARTED
TRANSACTION_STATUS_SUCCESS
TRANSACTION_STATUS_FAILED
assetCrypto currency being sold.String
networkNetwork that crypto currency is on in the user’s wallet.String
sell_amountAmount of crypto currency being sold.String
totalTotal amount of fiat the user will receive, fees deducted.String
subtotalAmount of fiat for the crypto asset, fees not deducted.String
coinbase_feeAmount of fiat charged to cover brokerage fees.String
exchange_rateUnit price of the crypto currency being sold.String
from_addressThe address of the wallet the transaction was sent from.String
to_addressThe address of the coinbase address the transaction was sent to.String
tx_hashThe block hash of the onchain send.String

Example Request/Response

    Offramp Transactions

    The Offramp Transactions API provides clients with a list of historical Offramp transactions between two dates. Transactions returns a paginated list of all transactions from newest to oldest. The Transactions API is indented for analytics purposes. If you need real time information about a specific transaction, use the Offramp Transaction Status API.
    Full API endpoint list For a complete list of all API endpoints supported by Onramp/Offramp, visit our API Reference section.

    Method

    GET
    

    URL

    https://api.developer.coinbase.com/onramp/v1/sell/transactions?page_key={next_page_key}&page_size={page_size}&start_date={start_date}&end_date={end_date}
    

    Request Parameters

    NameTypeReqDescription
    page_keyStringNReference to next page of transactions. Returned in previous page’s response.
    page_sizeNumberNNumber of transactions to return per page. Default is 1000.
    start_dateStringNThe start date (inclusive) of the range of transactions to return. YYYY-MM-DD format. Default is one month before end_date.
    end_dateStringNThe end date (exclusive) of the range of transactions to return. YYYY-MM-DD format. Default is tomorrow.

    Response Fields

    The Transaction API returns a JSON response including the following fields.
    NameDescription
    transactionsList of OfframpTransactions in reverse chronological order.
    next_page_keyA reference to the next page of transactions.

    OfframpTransaction Schema

    NameDescriptionValue
    statusStatus of the sell transaction.TRANSACTION_STATUS_SUCCESS
    TRANSACTION_STATUS_FAILED
    assetCrypto currency being sold.String
    networkNetwork that crypto currency is on in the user’s wallet.String
    sell_amountAmount of crypto currency being sold.String
    totalTotal amount of fiat the user will receive, fees deducted.String
    subtotalAmount of fiat for the crypto asset, fees not deducted.String
    coinbase_feeAmount of fiat charged to cover brokerage fees.String
    exchange_rateUnit price of the crypto currency being sold.String
    from_addressThe address of the wallet the transaction was sent from.String
    to_addressThe address of the coinbase address the transaction was sent to.String
    tx_hashThe block hash of the onchain send.String

    Example Request/Response