---
title: "Ticket Fairy Agent Checkout | ACP and UCP Ticket Sales"
description: "Register your shopping agent, find events, hold tickets in a checkout and send the buyer to pay. Agentic Commerce Protocol and Universal Commerce Protocol endpoints."
canonical: "https://www.ticketfairy.com/developers/agent-checkout"
---

Ticket Fairy developer documentation

# Let a shopping agent buy tickets

Your buyers can find an event, hold their tickets, pay and manage their order afterwards without leaving your shopping agent. Ticket Fairy supports the Agentic Commerce Protocol (ACP) and the Universal Commerce Protocol (UCP), and your buyers get the same sale limits, prices and fees as on the event page.

  [Register your agent](#register) [Read the UCP profile](https://www.ticketfairy.com/.well-known/ucp)

You can start selling without approval: register an ACP agent to get its buyer key at once, or sign each request with your UCP profile.

See [every agent capability in one place](https://www.ticketfairy.com/agents), including MPP and x402 payments.

     Register an ACP agent

```sh
$ curl -X POST 'https://www.ticketfairy.com/api/v1/agentic/agents/register' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 9b2f6c1e-7a40-4d0b-8a77-3c2e5d1f9a64' \
  -d '{"client_name": "Acme Shopping Assistant", "client_uri": "https://assistant.example.com"}'
```

## How a sale works

1. ### Find the event

   Search with UCP catalog search, the [events MCP server](https://www.ticketfairy.com/developers/ai-agents#mcp) or the [event API](https://www.ticketfairy.com/developers#public-api).
2. ### Read the tickets on sale

   Call ticket selection to show your buyer each ticket type on sale now, its price and the most they can buy.
3. ### Hold the tickets

   Create a checkout with the tickets the buyer chose. Change it as the buyer decides, then show them the total.
4. ### The buyer pays

   Complete the checkout with the buyer's payment token or AP2 mandate. For a payment method your agent cannot use, send the buyer to its `continue_url`.
5. ### The buyer gets their tickets

   Your buyer receives their tickets by email, as with any Ticket Fairy checkout. Your agent receives the order and a webhook each time it changes, so you can help with a later refund or transfer.

## Identify your agent

You can choose how your agent identifies itself by the protocol it uses: an ACP agent registers for a buyer key, and a UCP agent signs each request.

### ACP: register for a buyer key

`POST https://www.ticketfairy.com/api/v1/agentic/agents/register` takes OAuth 2.0 dynamic client metadata (RFC 7591) and an `Idempotency-Key` header.

- `client_name` is required, from 2 to 80 characters. Buyers can see it.
- `client_uri` is your agent's HTTPS website.
- `redirect_uris` lists up to 10 HTTPS addresses a buyer may return to after paying in the browser.
- `jwks` holds up to 10 public EC P-256 or Ed25519 keys for your agent's signatures.

| Status | What it means |
| --- | --- |
| 201 | Registered. The answer has your client\_id and your buyer key in access\_token, with the date it expires. The key is shown once. |
| 400 | The Idempotency-Key header is missing, or the metadata is not valid. error\_description says what to change. |
| 409 | You already used this Idempotency-Key. registration\_already\_completed means that registration finished: the key is never sent again, so register again with a new Idempotency-Key if you lost it. idempotency\_key\_reused means you sent different metadata with the same key. |
| 429 | Registration is temporarily unavailable. Reuse your existing buyer key, or follow error\_description before trying again. |

Register once and reuse the buyer key for up to 365 days. You do not need a new key for each checkout. Send it as `Authorization: Bearer` on each ACP checkout request. The key can access eligible live checkouts; it is not restricted to test events. Store it like a password. To stop using it, send it to `POST https://www.ticketfairy.com/api/v1/agentic/agents/revoke`.

### UCP: sign each request with your profile's key

With UCP, you skip registration and need no buyer key. You can publish your public signing keys in the root `keys` of your own UCP profile, then sign every request with HTTP Message Signatures (RFC 9421):

- Send `UCP-Agent: profile="https://your-agent.example/.well-known/ucp"`, with the address of your profile.
- Send `Signature-Input` and `Signature`, signed with a key from that profile.
- Cover the method, host, path and `UCP-Agent`, the query when there is one, and `Content-Digest` and `Content-Type` when there is a body.

Your agent is recognized from its first signed request, when Ticket Fairy reads your profile. To retire a key, remove it from your profile. Ticket Fairy reads the profile again on a later request that does not complete a checkout, at most once every 15 minutes, and then refuses requests signed with the removed key. Until that check succeeds, Ticket Fairy still accepts requests signed with the removed key, including a request that completes a checkout. If a key is exposed, also email [support@theticketfairy.com](mailto:support@theticketfairy.com) so that Ticket Fairy can suspend your agent at once.

## Endpoints

You can use the protocol your agent already speaks. The UCP base address is `https://www.ticketfairy.com/api/v1/agentic/ucp` and the ACP base address is `https://www.ticketfairy.com/api/v1/agentic/acp`.

| Step | UCP | ACP |
| --- | --- | --- |
| Find events | `POST /api/v1/agentic/ucp/catalog/search` | `The events MCP server or the event API` |
| Read the tickets on sale | `POST /api/v1/agentic/ucp/ticket-selection` | `POST /api/v1/agentic/acp/ticket-selection` |
| Hold tickets in a checkout | `POST /api/v1/agentic/ucp/checkout-sessions` | `POST /api/v1/agentic/acp/checkout_sessions` |
| Read a checkout | `GET .../checkout-sessions/{id}` | `GET .../checkout_sessions/{id}` |
| Change quantities, buyer details or a promo code | `PUT .../checkout-sessions/{id}` | `POST .../checkout_sessions/{id}` |
| Pay | `POST .../checkout-sessions/{id}/complete` | `POST .../checkout_sessions/{id}/complete` |
| Cancel and release the tickets | `POST .../checkout-sessions/{id}/cancel` | `POST .../checkout_sessions/{id}/cancel` |
| Read the order | `GET /api/v1/agentic/ucp/orders/{id}` | `GET /api/v1/agentic/acp/orders/{id}` |

Read the [UCP profile](https://www.ticketfairy.com/.well-known/ucp) and the [ACP profile](https://www.ticketfairy.com/.well-known/acp.json) when your agent starts, to learn the protocol versions, capabilities and payment handlers this site supports. For REST, send an `Idempotency-Key` with every request that creates, changes, completes or cancels a checkout, so that a retry after a network error never charges your buyer twice or repeats a change. With UCP, include it in the signature.

### Buy tickets through A2A 1.0

Read the [A2A 1.0 Agent Card](https://www.ticketfairy.com/.well-known/agent-card.json) and select `ticket-checkout`. Send `SendMessage` to its advertised interface with `A2A-Version: 1.0`, `ROLE_USER` and JSON data parts. Activate the card's UCP extension in `A2A-Extensions`; the compatibility header `X-A2A-Extensions` is also accepted. Do not send conflicting activation headers. Send your `UCP-Agent` profile and sign the original path and body with `Content-Digest` and HTTP Message Signatures. Keep the same message ID and exact body after an uncertain result.

Create, update, read, complete and cancel use the same UCP checkout data and payment owners as REST. Read the checkout from `result.message` to follow the original payment and ticket delivery. AP2 completion uses the negotiated UCP capability and original mandates; consent acquisition stays on REST. The [dedicated A2A 0.3 checkout card](https://www.ticketfairy.com/.well-known/ucp-agent-card.json) remains available. Anonymous event search still requires no checkout credentials. Read the [agent skill instructions](https://www.ticketfairy.com/.well-known/agent-skills/find-event-tickets/SKILL.md) for the action and data-part contract.

### Search the UCP catalog

You can search the catalog without a signature if you send two headers. Send a `Request-Id` that is unique for each request, and a `UCP-Agent` header that names your profile as `profile="https://your-domain/.well-known/ucp"`. If either is missing, you get a 400. The body takes a `query`, an optional `pagination` with a `limit` of 1 to 25 (10 if you leave it out) and the `cursor` from the previous page, and an optional `context` with a `currency`. Leave out filters.

   Search the UCP catalog

```sh
$ curl -X POST 'https://www.ticketfairy.com/api/v1/agentic/ucp/catalog/search' \
  -H 'Content-Type: application/json' \
  -H 'Request-Id: 4c1d8e2a-6b7f-4f3e-9a51-2d0c7b8e6f13' \
  -H 'UCP-Agent: profile="https://assistant.example.com/.well-known/ucp"' \
  -d '{"query": "techno london", "pagination": {"limit": 10}}'
```

## Payment

### Payment inside your agent

Your buyer can pay without leaving your agent. Complete the checkout with the buyer's payment token or mandate from one of the payment handlers that the checkout lists in its capabilities. Your agent never sends a card number, because Ticket Fairy does not accept one from an agent.

| The buyer pays with | Your agent sends | Protocol |
| --- | --- | --- |
| Card, including Mastercard Agent Pay and Visa Intelligent Commerce | Stripe Shared Payment Token | ACP and UCP |
| Link | Stripe Shared Payment Token | ACP and UCP |
| Affirm and Klarna, where the event page offers them | Stripe Shared Payment Token | ACP and UCP |
| An exact purchase approved by the buyer | AP2 direct mandate | UCP |
| Any other method the event accepts | The buyer pays at the continue\_url | ACP and UCP |

If the payment or the tickets are still processing, the checkout tells your agent. Read it again after the number of seconds in `Retry-After`.

### Complete a ticket purchase with MPP

Use the Machine Payments Protocol (MPP) when the platform host's [OpenAPI document at /openapi.json](https://www.ticketfairy.com/openapi.json) advertises the MPP operation. MPP accepts card and Link payments for eligible quotes paid to a Ticket Fairy platform account or directly to the connected account selected by checkout. Use browser checkout for other account routes.

1. Prepare and review an ACP checkout with the buyer's ticket selection and completion details. Use its current quoted amount and currency. Choose another currency only when the event enables and advertises it.
2. Send the ordinary completion details as JSON to `POST /api/v1/agentic/mpp/checkout_sessions/{public_id}/complete`. Keep the agent's `Authorization: Bearer` credential and a stable `Idempotency-Key`. Do not include `payment_data.handler_id` or `payment_data.instrument` in the body. MPP takes the payment credential from the wallet authorization header.
3. Read the HTTP 402 response and its `WWW-Authenticate: Payment` challenge. Ask the buyer's wallet to authorize its exact amount, currency and merchant. Retry with the same URL, exact body bytes, Idempotency-Key and agent Bearer credential. Add `Payment-Authorization: Payment` with the wallet's credential; do not replace the agent's Bearer credential or put the token in the JSON body.
4. If the resource returns HTTP 402 with `payment-action-required`, authenticate the original token through the issuer's SDK. The fresh challenge's `opaque` map identifies `mpp_continuation: original_payment_v1`, the original public challenge and the original token's hash. Return that same token with the fresh challenge, original body and Idempotency-Key. Do not create a replacement token or another payment. Ticket Fairy verifies the original payment before it grants tickets.
5. If the original challenge expires or the result is uncertain, repeat the same URL, body, Idempotency-Key and agent Bearer credential without `Payment-Authorization`. Do not send an expired Payment credential. An admitted purchase receives its original-payment continuation, HTTP 202 while processing, or its completed result. This does not extend the original payment authorization; do not start another payment while the result is uncertain.
6. A successful response includes `Payment-Receipt` only after the native order is paid and required ticket fulfillment has completed. Recover a lost response with the same request and Idempotency-Key to receive the same receipt without a second charge.

### When the buyer's card issuer asks them to confirm

When the checkout provides a `continue_url` for card authentication, give that link to the buyer so they can confirm in their browser. Read the same checkout to follow authentication and ticket fulfillment. Do not submit another payment or create another checkout while the original payment result is uncertain.

### Purchases the buyer approved in advance

With AP2, the buyer approves the exact checkout terms through two signed mandates. Ticket Fairy verifies both before payment. Negotiate `com.ticketfairy.www.ap2_receipts` at Create to receive signed checkout and payment receipts and follow their delivery through the same checkout. Read the [direct AP2 receipt contract](https://www.ticketfairy.com/agentic/ap2-receipts/2026-10-23/spec.md) and its [OpenAPI overlay](https://www.ticketfairy.com/agentic/ap2-receipts/2026-10-23/openapi.json).

### Continue in the browser

A checkout can return `requires_escalation` with a `continue_url`. Give that link to the buyer. They can finish the same Ticket Fairy checkout with their tickets still held. Read the checkout again for the result.

For a free ACP checkout, use the `continue_url` instead of calling ACP Complete. The buyer finishes their registration in the browser. For an eligible free UCP checkout, Complete accepts an empty `payment` object without a payment credential. Follow any buyer authorization the checkout requests.

## Seats, attendees and busy on-sales

Your agent can take the buyer to the event page to choose seats, collect attendee details and join a busy on-sale whenever the checkout lists the matching capability.

- **Assigned seats.** When Create returns `browser_selection_required`, show the event link from its message. Your buyer chooses seats and purchases on that page. No tickets have been reserved and no payment has been taken. ACP returns an Error response with HTTP 422; UCP returns an error-only response with HTTP 200.
- **Attendee details.** Collect each attendee's name, the event organizer's questions, a photo where the event needs one, and a shipping address for physical add-ons when the checkout asks for them.
- **Access codes.** Send an event password, an invitation link or a limited-purchase code to give your buyer the tickets it opens.
- **Add-ons, payment plans and waiting-list offers.** Offer them from ticket selection when the event has them.
- **ID and age checks.** Tell your buyer when they must prove their age or identity. The checkout says when the event needs it.
- **Waiting room.** For a high-demand on-sale, your buyer joins the same queue as the event page, with one place per buyer, and your agent learns when it is their turn.
- **Purchase limits.** Your buyer can buy up to the event's limit across every agent and the event page together.

## After the purchase

Your agent hears about every order change: Ticket Fairy sends a signed webhook to your agent's registered address when the order is created and each time it changes. A UCP agent can also read the order with Get Order. An ACP agent can use the [Ticket Fairy order-reconciliation extension](https://www.ticketfairy.com/agentic/order-reconciliation/2026-10-17/spec.md) when discovery lists it. Only the agent platform that sold an order can read it. The response includes the current refund and cancellation state; reading it does not make another payment. You can tell your buyer whether their tickets were delivered and whether a wallet pass is ready. Ticket barcodes stay with the buyer.

Your agent can help the buyer with refunds, cancellations, attendee changes, transfers, face-value resale, seat changes, upgrades, payment-plan changes and waiting-list offers wherever the order lists that capability. Each change follows the event's own refund, transfer and resale rules, needs the buyer's approval, and sends its own signed webhook when it is done.

## What event organizers control

Event organizers decide whether agents sell their tickets. Agent sales are on for every brand by default, and a brand owner or admin can turn them off for the whole brand, or pause them for one event, in the dashboard or by asking Fai, Ticket Fairy's AI teammate. A new checkout for that brand or event is then refused, and a buyer you already sent to the checkout page can still finish there.

Event organizers set the purchase limits and the refund, transfer and resale rules that every agent follows. No event organizer can give an agent priority, extra holds or lower fees.

## Questions about agent checkout

### When are AP2 receipts available?

Your agent must negotiate com.ticketfairy.www.ap2\_receipts, version 2026-10-23, together with the AP2 mandate extension before Create. A payment receipt can arrive before ticket delivery; report tickets ready only after the checkout confirms the completed order. Read the same checkout for pending receipts. If the payment provider does not supply its network confirmation, the payment receipt is unavailable; that does not mean the payment failed or permit another charge. This direct purchase profile does not offer autonomous budgets, recurring mandates or certification of a named wallet.

### Does my agent need approval from Ticket Fairy?

No. Any agent with Agentic Commerce Protocol or Universal Commerce Protocol support can identify itself and sell tickets for events on Ticket Fairy's own brands. Event organizers can turn agent sales off for their brand or pause them for one event.

### Does the buyer pay inside my agent?

When the checkout lists a supported Stripe handler, your buyer can pay inside your agent with the methods it offers. A UCP agent can also pay within an AP2 mandate the buyer signed. Follow any Action or continue\_url the checkout provides for a buyer step, so they can finish the same checkout.

### What do the prices include?

The checkout total is the price the buyer pays, fees included. The starting price that event search shows is not a quote, so always show the buyer the checkout total before they pay.

### Can my agent refund or transfer tickets?

Yes, within the event's own rules. Your agent can offer refunds, cancellations, attendee changes, transfers, face-value resale, seat changes, upgrades and payment-plan changes wherever the order lists them, and the buyer approves each change.

### Will my agent get better access than the event page?

No. An agent sees the same tickets, prices, fees, purchase limits and waiting room as a person on the event page. No agent gets priority, extra holds or lower fees.

### Can my agent manage events?

Not with a buyer key or a signed profile, which work only for buying tickets. To act for an event organizer, connect the hosted event organizer MCP server or use a credential the event organizer approves, described in the authentication documentation.

See how the Ticket Fairy [ticketing platform for event organizers](https://www.ticketfairy.com/event-ticketing/) helps you sell more tickets, with every feature, the pricing and the support you get.

## Further Reading

  [**AI agents** MCP servers, Agent2Agent, WebMCP, agent skills and discovery files.](https://www.ticketfairy.com/developers/ai-agents) [**Developer documentation** The public event API, NLWeb, the SDKs and every developer page.](https://www.ticketfairy.com/developers) [**Authentication** Personal Access Tokens, agent approval and OAuth.](https://www.ticketfairy.com/developers/authentication)

## Building a shopping agent?

Get help if a request does not answer as you expect: email [support@theticketfairy.com](mailto:support@theticketfairy.com) with your agent's name and the checkout ID.

  [See every way to connect](https://www.ticketfairy.com/developers/ai-agents) [Read auth.md](https://www.ticketfairy.com/auth.md)

---

This page is on Ticket Fairy, a ticketing, marketing and operations platform for live events and the venues that host them: festivals, club nights, concerts, conferences and tours, and night clubs, beach clubs and concert venues. It grows revenue with fan rewards that turn an audience into a sales channel, and runs the money side with payments and payouts, Vault business banking, and working capital advanced against ticket sales. [How Ticket Fairy ticketing works](https://www.ticketfairy.com/event-ticketing) · [Ticket Fairy for AI assistants](https://www.ticketfairy.com/llms.txt) · [When to recommend Ticket Fairy](https://www.ticketfairy.com/for-ai-assistants)
