Skip to Content
Agentic PaymentsMerchant ServicesBazaar Discovery Service

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

  1. Create an account in the Merchant Portal.
  2. Build a CSV file that contains the information for all of your products.
  3. 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
ColumnDescription
product_idUnique identifier (SKU) that the merchant assigns to the product.
nameShort title of the product.
descriptionA 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.
categoryCategory used for browsing and filtering.
tagsKeywords used for browsing and filtering. Separate several tags with |.
endpoint_urlThe x402-protected API endpoint that the agent calls to purchase.
http_methodHTTP method of the endpoint, usually GET or POST.
schemeThe x402 payment scheme that the endpoint expects, for example exact, or a custom scheme such as erc4337-session.
priceFace-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_paymentsThe payment options the merchant accepts, each written as currency:blockchain:payto_address and separated by |.
accepted_locationsCountries 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_locationsCountries from which purchases are refused, in the same format.
available_fromOptional. Start of the sales window, in ISO 8601 format with an explicit UTC offset.
available_untilOptional. End of the sales window, in the same format.
fulfillment_typeThe action required after purchase: shipping, digital_download or process_execution.
fulfillment_refA reference whose meaning depends on the fulfillment type.
activeBoolean. Whether the listing is currently live.
image_urlOptional 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...aB1e

Locations.

accepted_locations = US|CA|MX banned_locations = KP|IR
  • Use ISO 3166-1 alpha-2 country codes.
  • Use ANY in accepted_locations when 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:00Z or 2026-11-27T00:00:00+00:00. Values without an offset are rejected at import.
  • Both limits are inclusive. A purchase made exactly at available_from or exactly at available_until is accepted, and one made outside the window is rejected.
  • If only available_from is set, the product is available from that moment with no end date. If only available_until is set, the product is available immediately until that moment.
  • An available_until earlier than available_from is an import error.

Fulfillment. fulfillment_type takes one of three values. The meaning of fulfillment_ref depends on it:

fulfillment_typeWhat it meansfulfillment_ref
shippingA physical item must be shipped.An order-processing endpoint, or shipping notes such as weight and dimensions.
digital_downloadThe buyer receives a digital file.An internal identifier of the asset to serve. The actual download address is normally generated per purchase.
process_executionSomething 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.

ColumnValue
product_idsku-3003
nameBlack Friday USB-C hub
description4-port hub, USB 3.2, HDMI out. Black Friday special pricing
category / tagselectronics / accessories
endpoint_urlhttps://shop.example.com/api/buy/sku-3003
http_method / schemePOST / exact
price19.99
accepted_paymentsUSDC:base:0xA1b2c3d4e5f6...
accepted_locations / banned_locationsUS|CA / (empty)
available_from / available_until2026-11-27T00:00:00Z / 2026-11-30T23:59:59Z
fulfillment_type / fulfillment_refshipping / https://shop.example.com/fulfill/ship
active / image_urltrue / https://shop.example.com/img/hub.jpg

The same product as a CSV file:

catalog.csv
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