x402 Facilitator

List merchant discovery info

Changed on

Gets x402 merchant discovery information for a given merchant payment address. This endpoint returns all active x402 resources associated with the specified payTo address, allowing clients to discover what payment-gated resources a merchant exposes and their corresponding payment requirements. If no active resources are found for the payTo address, the endpoint returns an empty resources list. The response is paginated, and by default, returns 20 items per page.

get/v2/x402/discovery/merchant

Request

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

Query parameters

payTo, string required

A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).

Example:0x742d35Cc6634C0532925a3b844Bc454e4438f44e

The merchant's payment address to look up. This is the onchain address that payment requirements route funds to.

limit, integer

The number of resources to return per page.

offset, integer

The offset of the first resource to return.

Response

Successfully retrieved merchant discovery info.

X402DiscoveryMerchantResponse required

Response containing x402 resources associated with a merchant payment address. The resources list is empty when no active resources are found.

x402Version, 1 | 2 required

The version of the x402 protocol.

payTo, string required

A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).

resources, X402DiscoveryResource[] required

List of discovered x402 resources associated with the merchant's payTo address. This list is empty when no active resources are found.

pagination, object required

Pagination information for the response.

Example response

{
  "x402Version": 2,
  "payTo": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "resources": [
    {
      "resource": "https://api.example.com/premium/data",
      "description": "Premium API access for data analysis.",
      "type": "http",
      "x402Version": 2,
      "lastUpdated": "2024-01-15T10:30:00Z",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "1000000",
          "payTo": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
          "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
          "maxTimeoutSeconds": 60
        }
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST"
            }
          },
          "schema": {}
        }
      },
      "quality": {
        "l30DaysTotalCalls": 42,
        "l30DaysUniquePayers": 15,
        "lastCalledAt": "2024-01-15T10:30:00Z"
      },
      "serviceName": "Premium Data API",
      "tags": [
        "data",
        "analytics"
      ],
      "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/...",
      "curated": true,
      "skillUrl": "https://skills.cdp.coinbase.com/premium-data-api/SKILL.md"
    }
  ],
  "pagination": {
    "limit": 20,
    "offset": 0,
    "total": 10
  }
}

Changes

    • 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

    • warning

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

    1 more change in this revision