Deposit Destinations

Create deposit destination

Changed on

Create a new deposit destination for an account. Two types are supported:

  • crypto (public): provisions a cryptocurrency address on the requested network. The returned crypto.address is the deposit address; funds sent to it are credited to the target account in the specified asset. For Customer-owned accounts, the Customer must have the custodyCrypto and custodyStablecoin capabilities enabled.

  • fiat (private-beta): provisions a bank account at a CDP banking partner. The server picks the account type (e.g. us_bank) and supported payment rails based on the account's eligibility; pass fiat.paymentRail to influence partner selection. The returned fiat object contains the bank account details the depositor needs to send funds. For Customer-owned accounts, the Customer must have the custodyFiat capability enabled, plus target-specific capabilities: custodyStablecoin and tradeStablecoin for a stablecoin account target (plus transferStablecoin for a stablecoin onchain address target), or the custodyCrypto/tradeCrypto/transferCrypto equivalents for a crypto target. A fiat asset cannot be an onchain target. Requires account enablement — contact your Coinbase representative for access. Fields and behavior may change before general availability.

For Customer-owned accounts not authorized for the required capabilities, the request is rejected with customer_not_authorized (HTTP 403).

The created destination's status starts as pending for fiat (it becomes active once the partner provisioning callback completes) and active for crypto.

post/v2/deposit-destinations

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Headers

X-Idempotency-Key, string

An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.

Request body

union required

Request to create a new deposit destination. Provide the type-specific details matching the chosen type.

CreateCryptoDepositDestinationRequest required

Request to create a new crypto deposit destination. Provide the crypto-specific details.

OR
CreateFiatDepositDestinationRequest required

Example request

{
  "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "type": "crypto",
  "crypto": {
    "network": "base"
  },
  "target": {
    "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
    "asset": "usd"
  },
  "metadata": {
    "customer_id": "123e4567-e89b-12d3-a456-426614174000",
    "reference": "order-12345"
  }
}

Response

Successfully created deposit destination.

union required

A deposit destination for receiving funds to an account.

CryptoDepositDestination required

A cryptocurrency deposit destination.

OR
FiatDepositDestination required

A fiat deposit destination. Represents a single bank account provisioned at a single banking partner. Each deposit destination has one status and one lifecycle. The fiat object contains the bank account details, keyed by account type.

Example response

{
  "depositDestinationId": "depositDestination_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "type": "crypto",
  "crypto": {
    "network": "base",
    "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
  },
  "target": {
    "accountId": "account_bf3847c1-a957-5ae8-cfa0-ddd33e046225",
    "asset": "usd"
  },
  "status": "active",
  "metadata": {
    "customer_id": "123e4567-e89b-12d3-a456-426614174000",
    "reference": "order-12345"
  },
  "createdAt": "2023-10-08T14:30:00Z",
  "updatedAt": "2023-10-08T14:30:00Z"
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    11 more changes in this revision