Coinbase Payment Sessions API

Payment Sessions track the full lifecycle of a merchant payment, from authorization through capture, void, or refund. Each session records every operation and balance change across its lifecycle. **Who initiates an authorization.** A session can be authorized in four ways, split by who acts: - **Customer-initiated:** the payer authorizes at payment time by signing. Use **Authorize a payment session with a wallet** or **Authorize a payment session with x402**. These calls are unauthenticated because the payer's signature is the authorization. - **Merchant-initiated:** the merchant charges against an authorization the payer granted earlier, with the payer no longer present. Use **Authorize a payment session with a mandate** (draws on a mandate's standing spending allowance) or **Authorize a payment session with a Coinbase account** (charges a Coinbase account the payer linked over OAuth). Creating, listing, canceling, capturing, voiding, and refunding a session are merchant actions authenticated with your API key.

GitHub OpenAPI
Business capability
Stablecoin Payments AE-240.70

Operations 20

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v2/payment-sessions Create a payment session · Create a payment session #
Ask an LLM
“How do I create a payment session for a customer?”
“Can I set expiry deadlines and redirect URLs on a new session?”
Tell an agent
Create a payment session for {amount} {asset} to {target}.
Create a {asset} session to {target} with {amount} and redirect {redirect}.
GET /v2/payment-sessions List payment sessions · List payment sessions #
Ask an LLM
“Which payment sessions have I created?”
“Can I page through my payment sessions?”
Tell an agent
List my payment sessions.
Show {pageSize} payment sessions per page.
GET /v2/payment-sessions/{paymentSessionId} Get a payment session · Get a payment session #
Ask an LLM
“What is the status and balances of a payment session?”
“Can I look up one payment session by ID?”
Tell an agent
Get payment session {paymentSessionId}.
Show the balances and status of session {paymentSessionId}.
POST /v2/payment-sessions/{paymentSessionId}/cancel Cancel a payment session · Cancel a payment session #
Ask an LLM
“How do I cancel a payment session before it is authorized?”
“Can I record a reason when cancelling a session?”
Tell an agent destructive · confirm first
Cancel payment session {paymentSessionId}.
Cancel session {paymentSessionId} because {cancellationReason}.
GET /v2/payment-sessions/{paymentSessionId}/authorizations/wallet/options Get wallet authorization options · Get wallet authorization options #
Ask an LLM
“Which wallet addresses can a payer use to authorize a session?”
“Can I filter wallet authorization options to one network?”
Tell an agent
Get wallet authorization options for session {paymentSessionId} on addresses {addresses}.
Show {asset} wallet options for {addresses} on {network} for session {paymentSessionId}.
POST /v2/payment-sessions/{paymentSessionId}/authorizations/wallet Authorize a session with a payer's wallet · Authorize a payment session with a wallet #
Ask an LLM
“How does a payer authorize a session with their own wallet?”
“What signed payloads does a wallet authorization need?”
Tell an agent
Authorize session {paymentSessionId} with option {optionId} and payloads {signedPayloads}.
Let the payer sign option {optionId} on session {paymentSessionId} with payloads {signedPayloads}.
POST /v2/payment-sessions/{paymentSessionId}/authorizations/x402 Authorize a session with x402 · Authorize a payment session with x402 #
Ask an LLM
“Can a payer authorize a session with an x402 payment payload?”
“What happens if x402 payment must be supplied before authorization?”
Tell an agent
Authorize session {paymentSessionId} with x402 signature {PAYMENT-SIGNATURE}.
Let the payer pay with x402 on session {paymentSessionId} using signature {PAYMENT-SIGNATURE}.
POST /v2/payment-sessions/{paymentSessionId}/authorizations/coinbase Authorize a session with a Coinbase account · Authorize a payment session with a Coinbase account #
Ask an LLM
“How does a merchant charge a payer's Coinbase account?”
“Which OAuth grant does a Coinbase authorization need?”
Tell an agent
Authorize session {paymentSessionId} with Coinbase grant {cb-authz-id}.
Charge the payer's Coinbase account for session {paymentSessionId} using grant {cb-authz-id}.
POST /v2/payment-sessions/{paymentSessionId}/authorizations/mandate Authorize a session with a mandate · Authorize a payment session with a mandate #
Ask an LLM
“Can a merchant draw against a mandate without the payer present?”
“What status must a mandate be in to authorize a session?”
Tell an agent
Authorize session {paymentSessionId} with mandate {mandateId}.
Charge mandate {mandateId} on session {paymentSessionId}.
GET /v2/payment-sessions/{paymentSessionId}/authorizations List authorizations on a session · List payment session authorizations #
Ask an LLM
“Which authorizations hold funds on a payment session?”
“Can I page through a session's authorizations?”
Tell an agent
List authorizations for session {paymentSessionId}.
Show {pageSize} authorizations per page on session {paymentSessionId}.
GET /v2/payment-sessions/{paymentSessionId}/authorizations/{authorizationId} Get an authorization on a session · Get a payment session authorization #
Ask an LLM
“What is the status of one authorization on a payment session?”
“Can I look up a single session authorization by ID?”
Tell an agent
Get authorization {authorizationId} on session {paymentSessionId}.
Show the status of authorization {authorizationId} for session {paymentSessionId}.
POST /v2/payment-sessions/{paymentSessionId}/captures Capture authorized funds · Capture a payment session #
Ask an LLM
“How do I capture funds a payer authorized?”
“Can I capture only part of a session's capturable balance?”
Tell an agent
Capture {amount} from session {paymentSessionId} as final capture {finalCapture}.
Capture the remaining capturable balance on session {paymentSessionId} as final capture {finalCapture}.
GET /v2/payment-sessions/{paymentSessionId}/captures List captures on a session · List payment session captures #
Ask an LLM
“Which captures have been made on a payment session?”
“Can I page through a session's captures?”
Tell an agent
List captures for session {paymentSessionId}.
Show {pageSize} captures per page on session {paymentSessionId}.
GET /v2/payment-sessions/{paymentSessionId}/captures/{captureId} Get a capture on a session · Get a payment session capture #
Ask an LLM
“What is the status of one capture on a payment session?”
“Can I look up a single session capture by ID?”
Tell an agent
Get capture {captureId} on session {paymentSessionId}.
Show the status of capture {captureId} for session {paymentSessionId}.
POST /v2/payment-sessions/{paymentSessionId}/voids Release uncaptured funds on a payment session · Void a payment session #
Ask an LLM
“How do I release the remaining authorized funds back to the payer after authorization?”
“Can I tag a void with my own reference ID from my system?”
Tell an agent destructive · confirm first
Void payment session {paymentSessionId}.
Void session {paymentSessionId} and record external reference {externalReferenceId}.
GET /v2/payment-sessions/{paymentSessionId}/voids List voids on a session · List payment session voids #
Ask an LLM
“Which voids have released funds on a payment session?”
“Can I page through a session's voids?”
Tell an agent
List voids for session {paymentSessionId}.
Show {pageSize} voids per page on session {paymentSessionId}.
GET /v2/payment-sessions/{paymentSessionId}/voids/{voidId} Get a void on a session · Get a payment session void #
Ask an LLM
“What is the status of one void on a payment session?”
“Can I look up a single session void by ID?”
Tell an agent
Get void {voidId} on session {paymentSessionId}.
Show the status of void {voidId} for session {paymentSessionId}.
POST /v2/payment-sessions/{paymentSessionId}/refunds Refund a payment session · Refund a payment session #
Ask an LLM
“How do I refund funds to a payer?”
“Can I refund only part of a session's refundable balance?”
Tell an agent
Refund {amount} from session {paymentSessionId} from source {source}.
Refund {amount} from session {paymentSessionId} from source {source} because {reason}.
GET /v2/payment-sessions/{paymentSessionId}/refunds List refunds on a session · List payment session refunds #
Ask an LLM
“Which refunds have been issued on a payment session?”
“Can I page through a session's refunds?”
Tell an agent
List refunds for session {paymentSessionId}.
Show {pageSize} refunds per page on session {paymentSessionId}.
GET /v2/payment-sessions/{paymentSessionId}/refunds/{refundId} Get a refund on a session · Get a payment session refund #
Ask an LLM
“What is the status of one refund on a payment session?”
“Can I look up a single session refund by ID?”
Tell an agent
Get refund {refundId} on session {paymentSessionId}.
Show the status of refund {refundId} for session {paymentSessionId}.

Documentation

Specifications

Schemas & Data

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/coinbase:coinbase-payment-sessions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

coinbase-payment-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coinbase Developer Platform Payment Sessions API
  description: The Coinbase Developer Platform APIs - leading the world's transition onchain.
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 2.0.0
  contact:
    name: Coinbase Developer Platform
    email: cdp@coinbase.com
    url: https://cdp.coinbase.com
servers:
- url: https://api.cdp.coinbase.com/platform
  description: The production server of the CDP APIs.
security:
- apiKeyAuth: []
tags:


# --- truncated at 32 KB (302 KB total) ---
# Full source: https://artifacts.apis.io/coinbase/openapi/coinbase-payment-sessions-api-openapi.yml