Authorize a payment session with a Coinbase account
Merchant-initiated. The merchant charges the payer’s Coinbase account using an OAuth grant the payer authorized earlier, so the payer does not need to be present at payment time. The session must be in created status.
Authentication: Requires a Coinbase OAuth Bearer token with the coinbase:stablecoins:payment-create scope.
On authorization, a hold is placed on the payer’s funds. The authorization is returned in pending status and transitions asynchronously to succeeded or failed.
If autoCapture is enabled on the session, a capture is automatically created after a successful authorization.
Headers
The authorizationId returned from a successful POST https://login.coinbase.com/api/v1/authorization-challenges step. Identifies the MFA challenge that gates this authorization. Must be a lowercase UUID v4.
36^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$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.
1 - 128Path Parameters
Body
A request to authorize a payment session using the payer's Coinbase account authenticated via OAuth.
Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
Response
Successfully created Coinbase authorization.
A hold placed on the payer's funds. Once authorized, the merchant can capture (collect) the funds. Only one authorization is allowed per session.
Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
The payer for this authorization. For wallet authorizations, this is the blockchain address that signed the payloads. For Coinbase authorizations, this is the authenticated Coinbase account. This value is also reflected on the parent payment session's source field after a successful authorization.
- Payment Source Wallet
- Payment Source Coinbase