Onramp

Offramp transaction updated

Triggered when the offramp.transaction.updated webhook event is emitted. Your API will receive a POST request at the webhook URL you configured.

postWebhookofframpTransactionUpdated

Headers

X-Webhook-Signature, string required

HMAC-SHA256 signature supplied on every webhook delivery. The signature is computed from the raw request body using the webhook secret supplied during creation of the webhook subscription.

Webhook receivers can cryptographically verify this header before processing the event to ensure the authenticity of the webhook delivery.

Refer to the verify signatures documentation to learn details about the full payload and the exact verification algorithm.

X-Hook0-Signature is deprecated and will eventually be removed. Use X-Webhook-Signature going forward. Both headers are sent with identical values and use the same verification algorithm and webhook secret.

This scheme applies to webhook delivery (outbound POSTs from CDP to your endpoint), not to inbound CDP API requests.

X-Hook0-Signature, string required

HMAC-SHA256 signature supplied on every webhook delivery. The signature is computed from the raw request body using the webhook secret supplied during creation of the webhook subscription.

Webhook receivers can cryptographically verify this header before processing the event to ensure the authenticity of the webhook delivery.

Refer to the verify signatures documentation to learn details about the full payload and the exact verification algorithm.

X-Hook0-Signature is deprecated and will eventually be removed. Use X-Webhook-Signature going forward. Both headers are sent with identical values and use the same verification algorithm and webhook secret.

This scheme applies to webhook delivery (outbound POSTs from CDP to your endpoint), not to inbound CDP API requests.

Payload

OfframpTransactionUpdatedEvent required

Webhook payload for offramp transactions. Serialized from the OfframpTransaction proto via protojson with eventType appended.

eventType, string required

The webhook event type.

transactionId, string required

Unique transaction identifier.

status, 'TRANSACTION_STATUS_UNSPECIFIED' | 'TRANSACTION_STATUS_CREATED' | 'TRANSACTION_STATUS_EXPIRED' | 'TRANSACTION_STATUS_STARTED' | 'TRANSACTION_STATUS_SUCCESS' | 'TRANSACTION_STATUS_FAILED' required

Current status of the offramp transaction.

asset, string

The crypto currency being sold (e.g., "ETH", "USDC").

network, string

The blockchain network (e.g., "ethereum", "base").

sellAmount, MoneyAmount

A monetary amount with currency.

total, MoneyAmount

A monetary amount with currency.

minimumTotal, MoneyAmount

A monetary amount with currency.

subtotal, MoneyAmount

A monetary amount with currency.

coinbaseFee, MoneyAmount

A monetary amount with currency.

exchangeRate, MoneyAmount

A monetary amount with currency.

unitPrice, MoneyAmount

A monetary amount with currency.

fromAddress, string

The address crypto was received from.

toAddress, string

The address crypto was sent to (Coinbase deposit address).

createdAt, string date-time

When the transaction was created.

updatedAt, string date-time

When the transaction was last updated.

txHash, string

The onchain transaction hash of the crypto send.

redirectUrl, string

The URL the user was redirected to after confirming the offramp.

paymentMethod, 'UNSPECIFIED' | 'CARD' | 'ACH_BANK_ACCOUNT' | 'APPLE_PAY' | 'FIAT_WALLET' | 'CRYPTO_ACCOUNT' | 'GUEST_CHECKOUT_CARD' | 'PAYPAL' | 'RTP' | 'GUEST_CHECKOUT_APPLE_PAY' | 'GUEST_CHECKOUT_GOOGLE_PAY'

The payment method type used for cashout.

partnerUserRef, string

The partnerUserId provided when initializing the offramp session.

Example payload

{
  "eventType": "offramp.transaction.updated",
  "transactionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "TRANSACTION_STATUS_STARTED",
  "asset": "ETH",
  "network": "ethereum",
  "sellAmount": {
    "currency": "USD",
    "value": "5.00"
  },
  "total": {
    "currency": "USD",
    "value": "5.00"
  },
  "minimumTotal": {
    "currency": "USD",
    "value": "5.00"
  },
  "subtotal": {
    "currency": "USD",
    "value": "5.00"
  },
  "coinbaseFee": {
    "currency": "USD",
    "value": "5.00"
  },
  "exchangeRate": {
    "currency": "USD",
    "value": "5.00"
  },
  "unitPrice": {
    "currency": "USD",
    "value": "5.00"
  },
  "fromAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "toAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "createdAt": "2025-09-02T02:34:13Z",
  "updatedAt": "2025-09-02T02:40:00Z",
  "txHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
  "redirectUrl": "https://partner.com/offramp/complete",
  "paymentMethod": "ACH_BANK_ACCOUNT",
  "partnerUserRef": "example_user_ref"
}

Response

Webhook received and processed successfully.

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.