Payment Sessions

Get wallet authorization options

Changed on

Returns the available wallet authorization options for a payment session. The session must be in created status.

Provide one or more payer wallet addresses as query parameters. Each option specifies the currency, amount, network, and payloads the payer must sign to authorize the payment. Present the options to the payer and let them choose one, then call Authorize Wallet with the selected option.

This is a stateless read operation — the session is not modified.

If a requested address has no eligible authorization options (e.g. insufficient funds), it appears in ineligibleAddresses with a code and message instead of being absent from options. When an address is ineligible because of insufficient_funds, its fundsRequired array lists, per enabled (network, asset) combination, the current balance and required balance the payer needs to become eligible.

Only the preferred funding route for each asset is quoted. When an address holds enough funds but that route cannot be quoted, for example because the quote rejected the amount, the address appears with code: option_unavailable and no fundsRequired. A same-network route on the settlement network does not need a cross-chain quote, so it stays available when the quote provider is unavailable.

get/v2/payment-sessions/{paymentSessionId}/authorizations/wallet/options

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP none

Path parameters

paymentSessionId, string required

The ID of the payment session, a UUID prefixed by paymentSession_.

Example:paymentSession_82c879c1-84e1-44ed-a8c2-1ac239cf09ad

The unique identifier of the payment session.

Query parameters

addresses, BlockchainAddress[] required

The payer wallet addresses to generate authorization options for. Provide between 1 and 5 unique addresses, comma-separated (e.g. ?addresses=0xA,0xB). Each returned option's source.address identifies which requested address it applies to. If a requested address has no eligible authorization options, it appears in ineligibleAddresses with a code explaining why.

[
  "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
]
network, 'arbitrum' | 'arbitrum-sepolia' | 'avalanche' | 'base' | 'base-sepolia' | 'ethereum' | 'ethereum-sepolia' | 'optimism' | 'optimism-sepolia' | 'polygon' | 'polygon-amoy' | 'solana' | 'solana-devnet'

The blockchain network supported for payment session sources. Testnet networks are only available in sandbox environments.

Example:base

Optional filter to restrict options to a specific blockchain network.

asset, string

The symbol of the asset (e.g., eth, usd, usdc, usdt).

Example:usd

Filter options by asset. Currently, only usdc and usdt return results.

Response

Successfully retrieved wallet authorization options.

WalletAuthorizationOptionsResponse required

The available wallet authorization options for a payment session. Each option describes one way the payer can authorize the payment from their wallet. Present the options to the payer and let them choose one. Requested addresses with no eligible option appear in ineligibleAddresses with a code explaining why.

options, WalletAuthorizationOption[] required

The available wallet authorization options.

ineligibleAddresses, IneligibleWalletAuthorizationAddress[] required

Requested payer addresses that have no eligible authorization option, each with a code explaining why. Empty when every requested address can authorize the payment.

Example response

{
  "options": [
    {
      "optionId": "opt_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "source": {
        "address": "0xAbC1234567890aBcDeF1234567890AbCdEf123456",
        "network": "base",
        "asset": "usdc"
      },
      "amount": "1.00",
      "asset": "usdc",
      "network": "base",
      "payloads": [
        {
          "payloadId": "payload_af2937b0-9846-4fe7-bfe9-ccc22d935114",
          "type": "eip3009",
          "data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "TransferWithAuthorization": [
                {
                  "name": "from",
                  "type": "address"
                },
                {
                  "name": "to",
                  "type": "address"
                },
                {
                  "name": "value",
                  "type": "uint256"
                },
                {
                  "name": "validAfter",
                  "type": "uint256"
                },
                {
                  "name": "validBefore",
                  "type": "uint256"
                },
                {
                  "name": "nonce",
                  "type": "bytes32"
                }
              ]
            },
            "primaryType": "TransferWithAuthorization",
            "domain": {
              "name": "USD Coin",
              "version": "2",
              "chainId": 8453,
              "verifyingContract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
            },
            "message": {
              "from": "0x1111111111111111111111111111111111111111",
              "to": "0x2222222222222222222222222222222222222222",
              "value": "1000000",
              "validAfter": "0",
              "validBefore": "1767225600",
              "nonce": "0x8f5c2d6f4b9a1e3c7d2f8a6b5c4e3d2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d"
            }
          }
        }
      ]
    }
  ],
  "ineligibleAddresses": []
}

Changes

    • warning

      added the new option_unavailable enum value to the ineligibleAddresses/items/code response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    3 more changes in this revision