Selling through AI platforms
A step-by-step for a merchant who wants AI shopping platforms to find their shop and sell it: UCP (the Universal Commerce Protocol, used by Google's AI Mode and Gemini) and ACP (the Agentic Commerce Protocol, used by OpenAI and Stripe). Payware runs the checkout side of both. You do not install a plugin, change your checkout code or handle card data: the platform asks Payware for a checkout built from your prices, the buyer pays it, and the money goes to your NETOPIA Payments account. The reference for each protocol is in Universal Commerce Protocol checkout and Agentic Commerce Protocol checkout.
What you do on your website and DNS
| Step | UCP | ACP |
|---|---|---|
| 1. Connect NETOPIA Payments (Settings → NETOPIA Payments) | Yes | Yes |
2. A subdomain of your site that points at Payware (for example pay.example.com) | Yes: the platform reads your profile there | Optional |
| 3. Your products and prices (one price per size or color) | Yes | Yes |
| 4. An agent key for the platform | Yes, scope ucp:write | Yes, scope acp:write |
| 5. Tell the platform your domain and key | Domain and key | Key and base address |
| 6. An endpoint for order notifications | Optional | Optional: format acp |
Your main website stays as it is. The only thing added to your DNS is one subdomain.
1. Connect NETOPIA Payments. In Settings → NETOPIA Payments enter your merchant ID. Without it no payment handler is offered, and a platform cannot complete a checkout.
2. Publish a subdomain for the platform to find you (UCP). In Settings → Domains add a subdomain of your site with kind pay_page (for example pay.example.com; a bare domain such as
example.com cannot be pointed at Payware). At your DNS provider publish the two records Payware lists:
- a TXT record
_payware-verify.pay.example.comwith the valuepayware-domain-verification=<token>, which proves the domain is yours; - a CNAME record that points
pay.example.comat the address Payware shows.
Choose Check now until the domain shows active. From then on Payware answers on that host with the certificate and the page the platform needs, and nothing has to be installed on your servers.
Open https://pay.example.com/.well-known/ucp in a browser to see it: it is your UCP profile, naming the checkout address https://api.payware.dev/ucp/v1, the checkout capability and the payment handlers your
account offers. ACP needs no profile: the platform is given the base address https://api.payware.dev/acp directly.
3. Put what you sell in Payware as products and prices. The details, including sizes, colors and stock, are in Products, options and stock below.
4. Create one agent key per platform. In the dashboard (API keys → Agent access; a live key needs a passkey sign-in) or with POST /v1/account/keys and kind: "agent": scope ucp:write for UCP, acp:write for ACP (a key can have both),
and limits for every currency you sell in (per_payment_max, daily_total). The limits are what keeps a platform from charging more than you intended. One key per platform lets you see and stop each on its own.
5. Give the platform what it needs.
- UCP: your domain (
pay.example.com) and the key asAuthorization: Bearer <key>. The platform readshttps://pay.example.com/.well-known/ucpand takes the checkout address from it. - ACP: the base address
https://api.payware.dev/acpand the key asAuthorization: Bearer <key>.
6. Be told about orders (optional). Your own webhook endpoints already receive payment.succeeded and checkout_session.completed for every paid checkout. For an ACP platform that expects
order notifications, add an endpoint with POST /v1/webhooks and {"url": "<the platform's address>", "format": "acp"}; it receives only order_create, signed with Merchant-Signature.
Products, options and stock
What Payware holds. Payware's catalogue is deliberately small: a product (name, description, metadata) and one or more prices (amount, currency) on it. The platform buys a price id, and
that is the only thing a UCP or ACP checkout is built from: the buyer sees the product's name as the item title, the price's amount as the unit price, and the quantity the platform sent
(1 to 1000; the same price can be bought any number of times). The amount and the currency always come from the price; an amount sent by the platform that differs is refused (price_mismatch).
Payware does not hold photos, categories, brands, search filters or product feeds. Those, and the page a buyer reads before choosing, stay in your own shop or feed.
Where your catalogue lives. Your shop (or feed) remains the source for how products are described and found. Payware is the source for what can be paid. For each thing a platform may sell,
keep the Payware price id next to it in your own catalogue (a field on your product, or the price's metadata pointing back at your own product code), and give the platform that id as the item to buy.
To keep the two in step, create or update the price whenever your own product or price changes (a price's amount and currency cannot be edited: create the new price, give the platform its id and
deactivate the old one). GET /v1/prices?product=<id>&active=true lists what is currently sellable.
Sizes, colors and other options. There is no variant or option model: every purchasable combination is its own product and price. A blue, size M shirt is a product named for what the buyer
should see in the checkout (for example Linen shirt, blue, M) with its own price, and the red L shirt is another. Put the option values in metadata ({"sku": "SHIRT-BLU-M", "size": "M", "color": "blue"})
so that you can map a price id back to your own item when the payment arrives: metadata is stored on the product and the price, and you read it again from the API and in your webhooks. The platform's
size and color pickers are built from your own feed or from what you list for it; what reaches Payware is the single price id of the chosen combination.
Stock. Payware does not count stock and does not reserve it: a price is sellable until it is deactivated, any number of times. Connect your inventory to Payware yourself:
- Before the sale: when an item sells out, deactivate its price (
POST /v1/prices/:idwithactive: false, or archive the product). A checkout for an inactive price is refused (invalid_itemin ACP,item_unavailablein UCP), so the platform cannot sell it. Reactivate it when stock returns. - After the sale: your webhook endpoint receives
payment.succeededandcheckout_session.completedfor each paid checkout. The checkout session in the event lists the price ids it was built from inmetadata.acp_price_ids, in the order ofline_items(each with itsnameandquantity). Look each id up (GET /v1/prices/:id, whosemetadatais yours), reduce your stock, and deactivate the price when it reaches zero. Between two such events the last unit can be sold twice, so keep a small safety margin, or refund the payment of the second order. - Physical goods: everything sold this way is treated as digital, with no shipping address, shipping cost or fulfillment step. Collect delivery details afterwards (from the buyer's email) or sell only what needs no delivery: licences, tickets, services and downloads. A price is bought once for one billing period: no subscription is created.
Try it before you give anything to the platform
Use a test-mode agent key (sk_test_…) and your test prices: test and live data are separate. Replace <key> and <price id>.
# UCP: create a checkout from a price
curl -X POST https://api.payware.dev/ucp/v1/checkout-sessions \
-H "Authorization: Bearer <key>" -H "Content-Type: application/json" \
-H 'UCP-Agent: profile="https://platform.example/profile"' \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"line_items":[{"item":{"id":"<price id>"},"quantity":1}],"buyer":{"email":"buyer@example.com"}}'
# ACP: the same with the ACP shape
curl -X POST https://api.payware.dev/acp/checkout_sessions \
-H "Authorization: Bearer <key>" -H "Content-Type: application/json" \
-H "API-Version: 2026-04-17" -H "Idempotency-Key: $(uuidgen)" \
-d '{"line_items":[{"id":"<price id>"}],"currency":"ron","capabilities":{},"buyer":{"email":"buyer@example.com"}}'
The answer is a checkout with its status, your price's amount and a continue_url (your hosted payment page) the buyer can open. Complete it with the test handler (mock_token for UCP, mock_delegate for ACP) and a
test token: a token containing fail is declined, 3ds asks for a bank check. The payment then shows in Payments (initiated_by=agent) and on your webhooks.
Running it
- Watch what is sold:
GET /v1/payments?initiated_by=agentand thecheckout_session.*events. - Pause a platform: revoke its key; its calls are refused at once. Pause UCP discovery: remove the domain; the profile disappears.
- Change a price: create the new price and give the platform its id; the amount always comes from the price.
- Refunds and invoices work as for any payment, and an invoice is issued for each paid checkout.