---
title: "Authorize a payment session with a wallet"
method: POST
path: "/v2/payment-sessions/{paymentSessionId}/authorizations/wallet"
tags: ["Payment Sessions"]
---

# Authorize a payment session with a wallet

`POST /v2/payment-sessions/{paymentSessionId}/authorizations/wallet`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/payment-sessions/{paymentSessionId}/authorizations/wallet`
- Auth: HTTP none

**Customer-initiated.** Authorizes a payment session using the payer's wallet. The payer signs the payloads themselves, so this call is unauthenticated. The session must be in `created` status.

The `optionId` must match one of the options returned by the **Get Wallet Authorization Options** endpoint. Include the signed payloads for the selected option.

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.

## Path parameters

- `paymentSessionId` string, required: The ID of the payment session, a UUID prefixed by `paymentSession_`.

## Headers

- `X-Idempotency-Key` string

## Request body

- WalletAuthorizationRequest: A request to authorize a payment session using a wallet. The payer selects one of the options returned by the wallet authorization options endpoint and submits the signed payloads.
  - `optionId` string, required: The identifier of the chosen authorization option. Must match an `optionId` from the wallet authorization options response.
  - `signedPayloads` OnchainSignedPayload[], required: The processed payloads from the payer, corresponding to the payloads in the selected authorization option.
    - `payloadId` string: The unique identifier of the signed payload.
    - `signature` string: The output from processing the payload. For `eip3009`, `permit2`, and `spend_permission` types, this is the cryptographic signature returned by `eth_signTypedData_v4`. For `erc20_approval` types, this is the transaction hash returned by `eth_sendTransaction`. For `solana_subscription`, this is the payer's 64-byte ed25519 signature extracted from the signed Solana transaction and base58-encoded, not the signed transaction bytes or `0x`-prefixed hex.
  - `metadata` Metadata: 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.
  - `customerDisplay` OperationCustomerDisplay: Optional customer-facing display data for this authorization, shown to the payer. Falls back to the session's `orderCode` when `referenceCode` is omitted.
    - `referenceCode` string: A short customer-facing reference code for this payment operation.
  - `externalReferenceId` string: An optional merchant-provided internal identifier for this wallet authorization, from the merchant's own system—not visible to the payer.

## Response `200`

Successfully created wallet authorization.

- 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.
  - `authorizationId` string: The unique identifier of the authorization.
  - `paymentSessionId` string: The ID of the payment session this authorization belongs to.
  - `status` 'pending' | 'succeeded' | 'failed': The current status of the authorization.
  - `amount` string: A decimal representation of the authorized amount, denominated in the session's `asset`.
  - `error` PaymentError: An error that occurred during a payment operation.
    - `code` string: A machine-readable error code.
    - `message` string: A human-readable description of the error.
    - `occurredAt` string, date-time: The UTC ISO 8601 timestamp at which the error occurred.
  - `message` string: A human-readable message describing the outcome or status for display. Returned for x402 authorizations; omitted for other authorization flows unless documented otherwise.
  - `metadata` Metadata: 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.
  - `externalReferenceId` string: A merchant-provided internal identifier for this authorization, from the merchant's own system—not visible to the payer. Present only when supplied on the authorization request.
  - `customerDisplay` OperationCustomerDisplay: Customer-facing display data for this authorization, shown to the payer. Present when supplied on the authorization request or when the session's `orderCode` fallback applies; otherwise omitted.
    - `referenceCode` string: A short customer-facing reference code for this payment operation.
  - `source` union: 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.
    - PaymentSourceWallet: A blockchain wallet address used as a payment source.
      - `address` string, required: The blockchain address of the payer.
      - `network` 'arbitrum' | 'arbitrum-sepolia' | 'avalanche' | 'base' | 'base-sepolia' | 'ethereum' | 'ethereum-sepolia' | 'optimism' | 'optimism-sepolia' | 'polygon' | 'polygon-amoy' | 'solana' | 'solana-devnet': The blockchain network for the payment.
      - `asset` string: The asset used for the payment.
    - PaymentSourceCoinbase: A Coinbase account authenticated via OAuth, used as a payment source.
      - `coinbaseUserId` string, required: The unique identifier of the payer within Coinbase.
  - `onchainTransactions` OnchainTransaction[]: The onchain transactions associated with this authorization.
    - `transactionHash` string, required: The blockchain transaction hash.
    - `network` 'arbitrum' | 'arbitrum-sepolia' | 'avalanche' | 'base' | 'base-sepolia' | 'ethereum' | 'ethereum-sepolia' | 'optimism' | 'optimism-sepolia' | 'polygon' | 'polygon-amoy' | 'solana' | 'solana-devnet', required: The blockchain network the transaction occurred on.
  - `createdAt` string, date-time: The UTC ISO 8601 timestamp at which the authorization was created.
  - `updatedAt` string, date-time: The UTC ISO 8601 timestamp at which the authorization was last updated.

## Other responses

- `400`: Invalid request.
- `404`: Payment session not found.
- `422`: Idempotency key conflict.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 6 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `400`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `404`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `422`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `500`
  - …2 more
- **2026-10-16** `ff3c1fdef902`: 6 warning
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `400`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `404`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `422`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `500`
  - …2 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/payment-sessions/:paymentSessionId/authorizations/wallet/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
