Bazaar Discovery Service
What the Bazaar is
The Bazaar is a discovery layer for x402, the protocol that lets APIs charge per request in stablecoins over HTTP. In effect, it is a search engine for paid services that AI agents can use: a central place where autonomous agents can find, call and pay for compatible services across the x402 ecosystem.
The problem it solves
Before the Bazaar, agents could only use services that their developers had hard-coded. Every new service or capability required a manual update, which slowed adoption and limited innovation. With the Bazaar, an agent can find out which paid services exist, what they do, what they cost and how to call them.
How it works
- Sellers (API providers) add Bazaar metadata to their x402 endpoints: a description, inputs and outputs, the price and the supported networks.
- Buyers (agents or developers) query the catalog through discovery APIs: a paginated catalog, semantic search or a merchant lookup. These read-only APIs do not need an API key.
Agents search the catalog with signet bazaar. The API is described in the Bazaar API reference.
Publishing your products
- Create an account in the Merchant Portal.
- Build a CSV file that contains the information for all of your products.
- Upload the CSV file to the Bazaar service.
CSV column reference
The CSV file uses the following columns, in this order.
product_id, name, description, category, tags,
endpoint_url, http_method, scheme,
price, accepted_payments,
accepted_locations, banned_locations,
available_from, available_until,
fulfillment_type, fulfillment_ref,
active, image_url| Column | Description |
|---|---|
product_id | Unique identifier (SKU) that the merchant assigns to the product. |
name | Short title of the product. |
description | A concrete, human-readable description of what the buyer receives. It is indexed, and it is what lets an agent judge whether the product fits. Prefer “Real-time weather: temperature, conditions and forecast for a given city” to a vague marketing line. |
category | Category used for browsing and filtering. |
tags | Keywords used for browsing and filtering. Separate several tags with |. |
endpoint_url | The x402-protected API endpoint that the agent calls to purchase. |
http_method | HTTP method of the endpoint, usually GET or POST. |
scheme | The x402 payment scheme that the endpoint expects, for example exact, or a custom scheme such as erc4337-session. |
price | Face-value amount. Because the supported stablecoins track the US dollar one to one, a single price applies to every accepted currency, unless you deliberately price one rail differently. |
accepted_payments | The payment options the merchant accepts, each written as currency:blockchain:payto_address and separated by |. |
accepted_locations | Countries from which purchases are accepted, as ISO 3166-1 alpha-2 codes separated by |. Use ANY when there is no restriction, as for digital goods and services. |
banned_locations | Countries from which purchases are refused, in the same format. |
available_from | Optional. Start of the sales window, in ISO 8601 format with an explicit UTC offset. |
available_until | Optional. End of the sales window, in the same format. |
fulfillment_type | The action required after purchase: shipping, digital_download or process_execution. |
fulfillment_ref | A reference whose meaning depends on the fulfillment type. |
active | Boolean. Whether the listing is currently live. |
image_url | Optional image used when the catalog is displayed to people. |
Multi-value fields
A product can have several accepted payment options, tags and locations. Because a comma already separates the CSV columns, use the pipe character | to separate the values inside one field.
Accepted payments. Each entry combines the currency, the blockchain and the receiving address, because the same currency can exist on several blockchains and every blockchain has its own address:
accepted_payments = USDC:base:0xA1b2...eF9c|USD8:qday:0xC3d4...aB1eLocations.
accepted_locations = US|CA|MX
banned_locations = KP|IR- Use ISO 3166-1 alpha-2 country codes.
- Use
ANYinaccepted_locationswhen there is no restriction. Do not leave the field empty, because an empty value could mean either “no restriction” or “not filled in yet”. - A country must not appear in both lists. The import reports an error rather than silently choosing one list over the other.
Sales window. available_from and available_until are both optional. When both are empty, the product can be bought at any time.
- Write both values in ISO 8601 with an explicit UTC offset, for example
2026-11-27T00:00:00Zor2026-11-27T00:00:00+00:00. Values without an offset are rejected at import. - Both limits are inclusive. A purchase made exactly at
available_fromor exactly atavailable_untilis accepted, and one made outside the window is rejected. - If only
available_fromis set, the product is available from that moment with no end date. If onlyavailable_untilis set, the product is available immediately until that moment. - An
available_untilearlier thanavailable_fromis an import error.
Fulfillment. fulfillment_type takes one of three values. The meaning of fulfillment_ref depends on it:
fulfillment_type | What it means | fulfillment_ref |
|---|---|---|
shipping | A physical item must be shipped. | An order-processing endpoint, or shipping notes such as weight and dimensions. |
digital_download | The buyer receives a digital file. | An internal identifier of the asset to serve. The actual download address is normally generated per purchase. |
process_execution | Something must be executed. | The internal action, function or queue that the purchase triggers, for example run_report_generation or trigger_webhook:https://.... |
Example
The following product is sold only during a four-day promotion, ships to the United States and Canada, and can be paid in USDC on Base.
| Column | Value |
|---|---|
product_id | sku-3003 |
name | Black Friday USB-C hub |
description | 4-port hub, USB 3.2, HDMI out. Black Friday special pricing |
category / tags | electronics / accessories |
endpoint_url | https://shop.example.com/api/buy/sku-3003 |
http_method / scheme | POST / exact |
price | 19.99 |
accepted_payments | USDC:base:0xA1b2c3d4e5f6... |
accepted_locations / banned_locations | US|CA / (empty) |
available_from / available_until | 2026-11-27T00:00:00Z / 2026-11-30T23:59:59Z |
fulfillment_type / fulfillment_ref | shipping / https://shop.example.com/fulfill/ship |
active / image_url | true / https://shop.example.com/img/hub.jpg |
The same product as a CSV file:
product_id,name,description,category,tags,endpoint_url,http_method,scheme,price,accepted_payments,accepted_locations,banned_locations,available_from,available_until,fulfillment_type,fulfillment_ref,active,image_url
sku-3003,"Black Friday USB-C hub","4-port hub, USB 3.2, HDMI out. Black Friday special pricing",electronics,accessories,https://shop.example.com/api/buy/sku-3003,POST,exact,19.99,USDC:base:0xA1b2c3d4e5f6...,US|CA,,2026-11-27T00:00:00Z,2026-11-30T23:59:59Z,shipping,https://shop.example.com/fulfill/ship,true,https://shop.example.com/img/hub.jpg