https://sandbox.cdp.coinbase.com
Prerequisites
Before you begin, you’ll need:CDP CLI
CDP CLI
Install the CDP CLI (requires Node.js 22+):Configure a Sandbox environment using your CDP Secret API Key JSON file from the CDP Portal:
TypeScript SDK
TypeScript SDK
Install the SDK (requires Node.js 22+):Export your API key credentials. Initialize the client pointed at Sandbox:
CdpClient reads them from the environment automatically:main.ts
A funded Sandbox account
A funded Sandbox account
See the Custodial Accounts Quickstart for setting up a Sandbox account with funds.Set the account ID:
1. List payment methods
In Sandbox, test payment methods are pre-configured based on your entity’s region. List them to find the IDs you’ll use in transfers:- CDP CLI
- TypeScript SDK
Example response (US entity)
Example response (US entity)
2. Test a successful fiat withdrawal
Transfer from your USD account to the active Fedwire payment method:- CDP CLI
- TypeScript SDK
Example response
Example response
payment.transfer.processing → payment.transfer.completed.
3. Test a failed transfer (error handling)
Transfer to the inactive payment method to test how your integration handles errors:- CDP CLI
- TypeScript SDK
Example error response
Example error response
Sandbox payment method reference
US entities
EU entities
Move to production
To run this flow against real banks, switch from the Sandbox base URL to the production base URL and use a production API key. Production payment methods are real bank accounts you set up in the Coinbase Prime UI.What to read next
Payment methods overview
Concepts, types, and core operations
Transfers quickstart
Test crypto and email transfers too
Transfers overview
All transfer types, rails, and lifecycle
REST API reference
Full Payment Methods API reference