Payments
Create a transfer quote
REST API
- EVM Accounts
- EVM Smart Accounts
- EVM Swaps
- EVM Token Balances
- Faucets
- PaymentsAlpha
- Policy Engine
- Solana Accounts
Payments
Create a transfer quote
Creates a new transfer quote, which can then be executed using the Execute a transfer quote endpoint. If you want to automatically execute the transfer without needing to confirm, specify execute as true.
POST
/
v2
/
payments
/
transfers
Copy
Ask AI
curl --request POST \
--url https://api.cdp.coinbase.com/platform/v2/payments/transfers \
--header 'Content-Type: application/json' \
--data '{
"sourceType": "payment_method",
"source": {
"id": "8e03978e-40d5-43e8-bc93-6894a57f9324"
},
"targetType": "crypto_rail",
"target": {
"currency": "USDC",
"network": "base",
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"amount": "<string>",
"currency": "<string>",
"execute": false
}'
Copy
Ask AI
{
"transfer": {
"id": "8e03978e-40d5-43e8-bc93-6894a57f9324",
"sourceType": "payment_method",
"source": {
"id": "8e03978e-40d5-43e8-bc93-6894a57f9324"
},
"targetType": "crypto_rail",
"target": {
"currency": "USDC",
"network": "base",
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"sourceAmount": "110.50",
"sourceCurrency": "USD",
"targetAmount": "100",
"targetCurrency": "USD",
"userAmount": "100",
"userCurrency": "USD",
"fees": [
{
"type": "exchange_fee",
"amount": "10.25",
"currency": "USD"
},
{
"type": "network_fee",
"amount": "0.25",
"currency": "USD"
}
],
"status": "completed",
"createdAt": "2021-01-01T00:00:00Z",
"updatedAt": "2021-01-01T00:00:00Z",
"transactionHash": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}
}
Body
application/json
Response
201
application/json
Successfully created a transfer.
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.cdp.coinbase.com/platform/v2/payments/transfers \
--header 'Content-Type: application/json' \
--data '{
"sourceType": "payment_method",
"source": {
"id": "8e03978e-40d5-43e8-bc93-6894a57f9324"
},
"targetType": "crypto_rail",
"target": {
"currency": "USDC",
"network": "base",
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"amount": "<string>",
"currency": "<string>",
"execute": false
}'
Copy
Ask AI
{
"transfer": {
"id": "8e03978e-40d5-43e8-bc93-6894a57f9324",
"sourceType": "payment_method",
"source": {
"id": "8e03978e-40d5-43e8-bc93-6894a57f9324"
},
"targetType": "crypto_rail",
"target": {
"currency": "USDC",
"network": "base",
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"sourceAmount": "110.50",
"sourceCurrency": "USD",
"targetAmount": "100",
"targetCurrency": "USD",
"userAmount": "100",
"userCurrency": "USD",
"fees": [
{
"type": "exchange_fee",
"amount": "10.25",
"currency": "USD"
},
{
"type": "network_fee",
"amount": "0.25",
"currency": "USD"
}
],
"status": "completed",
"createdAt": "2021-01-01T00:00:00Z",
"updatedAt": "2021-01-01T00:00:00Z",
"transactionHash": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}
}
Assistant
Responses are generated using AI and may contain mistakes.