Coinbase Commerce API
cURL
curl --request POST \ --url https://api.commerce.coinbase.com/charges \ --header 'Content-Type: application/json' \ --header 'X-CC-Api-Key: <api-key>' \ --data '{ "metadata": { "custom_field": "internal_id", "custom_field_two": "anything" } }'
{ "web3_data": { "contract_addresses": { "1": "0xabc123", "137": "0x987654" } } }
fixed_price
no_price
Show child attributes
"internal_id"
"anything"
Charge
WEB3
COMPLETED
EXPIRED
FAILED
NEW
PENDING
SIGNED
{ "1": "0xabc123", "137": "0x987654" }
Was this page helpful?