List merchant discovery info
Changed onGets 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.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP none
Query parameters
A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
The merchant's payment address to look up. This is the onchain address that payment requirements route funds to.
The number of resources to return per page.
The offset of the first resource to return.
Response
Successfully retrieved merchant discovery info.
Response containing x402 resources associated with a merchant payment address. The resources list is empty when no active resources are found.
The version of the x402 protocol.
A blockchain address. Format varies by network (e.g., 0x-prefixed for EVM, base58 for Solana).
List of discovered x402 resources associated with the merchant's payTo address. This list is empty when no active resources are found.
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_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status
1 more change in this revision
- warning