Create deposit destination
Changed onCreate 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.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP bearer
Headers
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
Request to create a new deposit destination. Provide the type-specific details matching the chosen type.
Request to create a new crypto deposit destination. Provide the crypto-specific details.
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.
A deposit destination for receiving funds to an account.
A cryptocurrency deposit destination.
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_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status
11 more changes in this revision
- warning