Skip to main content
POST
/
v2
/
transfers
/
{transferId}
/
execute
Execute a transfer
curl --request POST \
  --url https://api.cdp.coinbase.com/platform/v2/transfers/{transferId}/execute \
  --header 'Authorization: Bearer <token>'
{
  "transferId": "transfer_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "status": "processing",
  "source": {
    "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
    "asset": "usd"
  },
  "target": {
    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "network": "base",
    "asset": "usdc"
  },
  "amount": "100.00",
  "asset": "usd",
  "sourceAmount": "103.50",
  "sourceAsset": "usd",
  "targetAmount": "100.00",
  "targetAsset": "usdc",
  "exchangeRate": {
    "sourceAsset": "usd",
    "targetAsset": "usdc",
    "rate": "1"
  },
  "fees": [
    {
      "name": "processing_fee",
      "amount": "2.50",
      "asset": "usd"
    },
    {
      "name": "exchange_fee",
      "amount": "1.00",
      "asset": "usd"
    }
  ],
  "executedAt": "2023-10-08T14:31:00Z",
  "createdAt": "2023-10-08T14:30:00Z",
  "updatedAt": "2023-10-08T14:31:00Z",
  "validateOnly": false,
  "metadata": {
    "invoiceId": "12345",
    "reference": "Payment for invoice #12345"
  },
  "travelRule": {
    "originator": {
      "name": "John Doe",
      "address": {
        "address1": "123 Main St",
        "address2": "Unit 201",
        "city": "Luxembourg",
        "postalCode": "L-1234",
        "country": "LU"
      },
      "financialInstitution": "Citibank"
    },
    "beneficiary": {
      "name": "Jane Smith",
      "address": {
        "address1": "456 Oak Ave",
        "city": "Paris",
        "postalCode": "75001",
        "country": "FR"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.

Headers

X-Idempotency-Key
string

An optional UUID v4 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.

Required string length: 36

Path Parameters

transferId
string
required

The ID of the transfer.

Response

Successfully committed a transfer.

A Transfer represents all the information needed to execute a transfer and tracks the lifecycle of a transfer from initiation through completion or failure.

transferId
string
required

The ID of the transfer.

Example:

"transfer_af2937b0-9846-4fe7-bfe9-ccc22d935114"

status
enum<string>
required

The current status of the transfer, indicating what action you need to take next.

Available options:
draft,
awaiting_funds,
processing,
completed,
failed,
canceled,
expired,
reversed
Example:

"draft"

source
Account · object
required

The source of the transfer.

  • Account
  • Payment Method
Example:
{
"accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"asset": "usd"
}
target
Account · object
required

The target of the transfer.

  • Account
  • Payment Method
  • Onchain Address
  • Email Address
Example:
{
"accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"asset": "usd"
}
amount
string
required

The amount to transfer in atomic units of the asset specified by asset.

Example:

"100.00"

asset
string
required

The symbol of the asset for the amount. This must be one of the assets of the source or target.

Example:

"usd"

createdAt
string<date-time>
required

The date and time the transfer was created.

Example:

"2025-01-01T00:00:00Z"

updatedAt
string<date-time>
required

The date and time the transfer was last updated.

Example:

"2025-01-01T00:00:00Z"

sourceAmount
string

The amount of the source asset that will be transferred out in atomic units.

Example:

"103.50"

sourceAsset
string

The asset symbol of the source amount.

Example:

"usd"

targetAmount
string

The amount of the target asset that will be transferred in atomic units.

Example:

"100.00"

targetAsset
string

The asset symbol of the target amount.

Example:

"usdc"

exchangeRate
object

Exchange rate information for currency conversion. The rate indicates how much of the target asset is equivalent to one unit of the source asset.

Example:
{
"sourceAsset": "usd",
"targetAsset": "usdc",
"rate": "1"
}
fees
object[]

The fees associated with this transfer. Different transfer types have different fee structures.

NOTE: These examples are not exhaustive.

Common examples:

  • Crypto transfers: Network fees (gas) paid in the native token
  • Fiat conversions: Processing fees + exchange fees in USD
  • Wire transfers: Wire fees ($15) + processing fees ($5) in USD
  • Crypto conversions: Spread fees paid in the source asset.

A single fee for a transfer.

Example:
[
{
"name": "processing_fee",
"amount": "2.50",
"asset": "usd"
},
{
"name": "exchange_fee",
"amount": "1.00",
"asset": "usd"
}
]
onchainTransactions
object[]

List of onchain transactions executed as part of this transfer. Present when the transfer involves onchain operations and has completed processing.

Represents a transaction that has been broadcast to a network. Contains the transaction hash and network to track a transaction's status and details.

Example:
{
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"network": "ethereum"
}
Example:
[
{
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"network": "ethereum"
}
]
completedAt
string<date-time>

The date and time the transfer was completed.

Example:

"2025-01-01T00:05:00Z"

failureReason
string

The reason for failure, if the transfer failed. Only present when status is failed.

Example:

"Insufficient balance to complete this transfer."

reversalReason
enum<string>

The reason for reversal, if the transfer was reversed. Only present when status is reversed.

Available options:
user_requested,
compliance_reversal,
fraud_reversal,
network_reversal,
system_reversal
Example:

"user_requested"

cancellationReason
enum<string>

The reason for cancellation, if the transfer was canceled. Only present when status is canceled.

Available options:
user_canceled,
system_canceled,
expired,
compliance_canceled,
risk_canceled,
duplicate_canceled,
insufficient_funds_canceled
Example:

"user_canceled"

lastError
object

Detailed information about the last error that occurred while processing this transfer. Only present when status is failed.

Example:
{
"code": "insufficient_funds",
"message": "The source account does not have sufficient funds for this transfer.",
"param": "source.accountId",
"details": {
"availableBalance": "50.00",
"requiredAmount": "100.00"
}
}
expiresAt
string<date-time>

The date and time when this transfer will expire if not executed. Only present for draft and awaiting_funds statuses. After expiration, the transfer will move to expired status.

Example:

"2025-01-01T00:15:00Z"

executedAt
string<date-time>

The date and time the transfer was executed and moved to processing. Only present when status has progressed beyond draft.

Example:

"2025-01-01T00:01:30Z"

validateOnly
boolean

(Preview, not yet supported) If true, validates the transfer without initiating it. If the request is valid, a 2xx will be returned. If the request is invalid, a 4xx error will be returned. The response will include an errorType, for e.g. invalid_target if the specified target cannot receive funds.

Example:

false

metadata
object

(Preview, not yet supported) Key-value pairs of metadata about the transfer. Up to 5 key/value pairs may be provided. Each key and value must be less than or equal 100 characters.

Example:
{
"invoiceId": "12345",
"reference": "Payment for invoice #12345"
}
travelRule
object

(Preview, not yet supported) Required Travel Rule fields differ by region. These requirements are determined based on which Coinbase entity the customer has signed the service agreement for.

Example:
{
"originator": {
"name": "John Doe",
"address": {
"address1": "123 Main St",
"address2": "Unit 201",
"city": "Luxembourg",
"postalCode": "L-1234",
"country": "LU"
},
"financialInstitution": "Citibank"
},
"beneficiary": {
"name": "Jane Smith",
"address": {
"address1": "456 Oak Ave",
"city": "Paris",
"postalCode": "75001",
"country": "FR"
}
}
}