# Accept service bookings and payments from agents

Help AI agents find, book, and pay for your services.

Your customers can use AI agents to complete tasks such as booking travel, making restaurant reservations, and scheduling appointments. This guide helps businesses that offer bookable services provide structured booking and payment flows to agents.

Agents can reach your business by navigating your website or connecting directly to your systems. You can support both approaches, and the approach can vary by agent.

### Support agents through your website

Agents with browsing capabilities can navigate your website and use existing search and checkout flows. Review your bot protections, and consider using [WebMCP](https://developer.chrome.com/docs/ai/webmcp) to provide agents with navigation instructions.

If you use Stripe Checkout UIs, built-in [WebMCP tool calls](https://docs.stripe.com/agentic-commerce/agents/webmcp.md) help agents complete payments without scraping pages or simulating clicks. If you enable [Link](https://docs.stripe.com/payments/link.md), customers can authorize payments through [Link Agent Wallet](https://docs.stripe.com/agentic-commerce/agents/link-agent-wallet.md) without additional integration work.

### Connect agents to your APIs or MCP server

To provide a structured booking flow, give agents access to your existing APIs or equivalent Model Context Protocol (MCP) tools. Agents can search for services, check availability and pricing, create bookings, and complete payments without navigating your website.

Direct integrations can make your services easier for agents to discover and purchase. They can also shorten booking times and reduce browser navigation errors. You control:

- Which services and inventory agents can access.
- What pricing, availability, and booking information agents receive.
- Which customer details you require to complete a booking.
- Whether agents can modify or cancel bookings after purchase.

Reuse your existing booking and payment systems, and expose the actions agents need. The examples in this guide show common patterns; Stripe doesn’t require a specific endpoint structure, tool naming convention, or payload schema.

> #### Connect with agent partners
> 
> You can enable programmatic bookings and payments with any agent. Stripe partners with [Muse](https://muse.ai/platform), [Instinct](https://instinct.com), and many others to provide native payments integrations. Each agent might have MCP or API requirements beyond the Stripe guidance in this guide.

## How agentic bookings work with Stripe

Your booking integration handles service discovery, availability, and reservations. Stripe facilitates payment between the customer, agent, and your business through [Link Agent Wallet](https://docs.stripe.com/agentic-commerce/agents/link-agent-wallet.md).

A typical booking follows this flow:

1. A customer asks an agent to book a service. The agent either navigates the web or calls your API or MCP tools to check availability and pricing.
2. Your website or API returns the price and supported payment credential types.
3. The agent requests a payment credential from Link Agent Wallet. The customer selects a payment method and authorizes its use through Link.
4. Link provides a payment credential that the agent can pass to your website or integration without exposing the customer’s underlying payment credentials to the agent.
5. You process the payment and confirm the booking. You can accept payment as part of the request that creates the booking.
6. You continue to manage booking changes, cancellations, refunds, disputes, receipts, and reporting through your existing systems.

A user asks an agent to book a service. The agent searches and creates the booking through the business's booking API or MCP server, gets the supported payment handlers, requests a credential from Stripe that the user approves, and shares that credential with the business to complete the booking. (See full diagram at https://docs.stripe.com/agentic-commerce/sellers/use-cases/booking)

```text
[User] -- Request a service --> [Agent]
[Agent] -- Search availability --> [Business]
[Business] -- Return availability --> [Agent]
[Agent] -- Return availability --> [User]
[User] -- Approve booking --> [Agent]
[Agent] -- Create booking --> [Business]
[Business] -- Return payment handlers --> [Agent]
[Agent] -- Create spend request --> [Stripe]
[User] -- Approve in Link --> [Stripe]
[Stripe] -- Spend approval + payment credential --> [Agent]
[Agent] -- Share payment credential --> [Business]
[Business] -- Charge payment credential --> [Stripe]
[Stripe] -- Confirm payment --> [Business]
[Business] -- Confirm booking --> [Agent]
[Agent] -- Booking confirmed --> [User]
```

## Choose an integration approach

These approaches complement one another. Start with your existing systems, then add capabilities as your integration needs change.

| Approach | What to do | What it enables |
| --- | --- | --- |
| Support agents through your web checkout | Adopt [Stripe Checkout UIs](https://docs.stripe.com/agentic-commerce/agents/webmcp.md#supported-stripe-checkout-uis), which have WebMCP enabled. | Let agents navigate your web checkout without building a separate programmatic integration. |
| Enable programmatic bookings | Expose search, availability, and booking operations through APIs or an MCP server. | Give agents a structured way to find and book your services and submit card payments. |
| Accept Shared Payment Tokens | Add support for [Shared Payment Tokens](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.md) (SPTs) to your booking or payment API. Process SPTs on Stripe, or resolve the tokens into the underlying credential to process with another provider. | Support more payment flows and receive additional transaction and risk information with the payment credential. |
| Optimize agentic payments with Link | Enable [Link](https://docs.stripe.com/payments/link.md) and process payments on Stripe. | Access Link features such as additional customer details, payment optimization, and lower-cost payment methods. |

## Enable programmatic booking

Provide structured interfaces that let agents complete bookings without navigating your website. Support each stage of the booking lifecycle with operations that let agents:

- Search for services and availability.
- Create a booking.
- Retrieve or modify a booking.
- Cancel a booking.

You can provide these operations through a booking API or an MCP server. Follow industry protocols when they’re available, such as the [UCP Lodging Booking Capability](https://ucp.dev/draft/specification/lodging/booking/#flow-overview).

#### Booking API

You can make your booking API publicly available or provide access directly to selected agent partners. Provide a separate endpoint for each booking operation:

| Example endpoint | Purpose |
| --- | --- |
| `GET /availability` | Return open slots for a service, date, and party size or quantity. |
| `POST /bookings` | Create a booking for a specific slot and return a booking ID and confirmation details. |
| `GET /bookings/{id}` | Return the current status and details of a booking. |
| `POST /bookings/{id}/complete` | Accept a payment credential, process the payment, and confirm the booking. |
| `PATCH /bookings/{id}` | Change the slot, date, or party size of an existing booking. |
| `DELETE /bookings/{id}` | Cancel an existing booking. |

When a customer asks an agent to check availability, the agent sends the service, date, and quantity to your API:

```json
GET api.seller.com/availability?service_id=haircut&date=2026-09-10&party_size=1
```

Return available booking options in a structured format. The agent can present these options to the customer and use the selected option in the next booking request.

```json
{
  "service_id": "haircut",
  "date": "2026-09-10",
  "slots": [
    {
      "slot_id": "slot_1400",
      "start_time": "2026-09-10T14:00:00Z",
      "end_time": "2026-09-10T14:30:00Z",
      "price": {
        "amount": 4500,
        "currency": "usd"
      }
    },
    {
      "slot_id": "slot_1530",
      "start_time": "2026-09-10T15:30:00Z",
      "end_time": "2026-09-10T16:00:00Z",
      "price": {
        "amount": 4500,
        "currency": "usd"
      }
    }
  ]
}
```

Use stable identifiers throughout the booking lifecycle. Stable identifiers let the agent select an option and later retrieve, update, or cancel the resulting booking.

Return structured errors that explain what happened and whether the agent can retry. For example, if the selected time is no longer available, return a `409 Conflict` response with an error code that the agent can interpret:

```json
{
  "error": {
    "code": "slot_unavailable",
    "message": "The selected time is no longer available."
  }
}
```

This response lets the agent search for another time instead of ending the booking without a recovery path.

#### MCP server

Expose booking operations as tools through an MCP server. MCP tools give agents a structured alternative to navigating your website or calling an undocumented API. Use a separate tool for each operation:

| Example tool | Purpose |
| --- | --- |
| `search_availability` | Return open slots for a service, date, and party size or quantity. |
| `create_booking` | Create a booking for a specific slot and return a booking ID and confirmation details. |
| `complete_booking` | Accept a payment credential, process the payment, and confirm the booking. |
| `modify_booking` | Change the slot, date, or party size of an existing booking. |
| `cancel_booking` | Cancel an existing booking. |

For example, you might create a `search_availability` tool that accepts a service, date, and quantity. You can choose the tool name, inputs, and response format.

```typescript
server.registerTool(
  'search_availability',
  {
    description: 'Search available slots for a service on a given date.',
    inputSchema: {
      serviceId: z.string(),
      date: z.string(),
      partySize: z.number().int().positive().optional(),
    },
  },
  async ({ serviceId, date, partySize }) => {
    const slots = await searchAvailability({ serviceId, date, partySize })
    return { content: [{ type: 'text', text: JSON.stringify(slots) }] }
  },
)
```

Use clear tool names and descriptions so an agent knows when to call each tool. Return structured results and stable identifiers for the agent to pass between tools.

For example, `search_availability` returns a `slot_id` that the agent passes to `create_booking`. The agent then passes the returned `booking_id` to tools that retrieve, update, or cancel the booking.

## Accept programmatic payments

Agents can use [Link Agent Wallet](https://docs.stripe.com/agentic-commerce/agents/link-agent-wallet.md) to send [Shared Payment Tokens](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.md) (SPTs) or card credentials through your existing booking API or MCP server. Link Agent Wallet supports one-time, multi-use, recurring, subscription, and merchant-initiated payments.

Declare which credential types your integration supports, and process these credentials with your existing Stripe or third-party payment integration. Stripe recommends following the [Universal Commerce Protocol (UCP) payment handler specification](https://ucp.dev/2026-01-23/specification/payment-handler-guide/).

### Return supported payment handlers

Before the agent completes checkout, return the payment handlers available for the transaction through your existing API. Include the final amount, currency, and credential expiration date. The agent uses this information to request customer approval and create a payment credential. Agents can set a non-recurring credential expiration to a maximum of 365 days after issuance, and recurring credential expiration to a maximum of 5 years after issuance, subject to country restrictions.

Use a UCP-compatible payment handler from your payment provider, or define your own:

```json
GET /bookings/booking_123

// Response
{
  "booking_id": "booking_123",
  "status": "awaiting_payment",
  "amount": 12500,
  "currency": "usd",
  "expires_at": "2026-09-23T00:30:00Z",
  "payment_handlers": [
    {
      "id": "stripe_payments",
      "type": "com.stripe.payments",
      "version": "2026-06-25",
      "spec": "https://docs.stripe.com/agentic-commerce/ucp/stripe-payments-handler",
      "schema": "https://ucp.stripe.com/payments/2026-06-25/schema.json",
      "available_instruments": [
        {
          "type": "card"
        },
        {
          "type": "link",
          "config": {
            "business_profile": "profile_xxx"
          }
        }
      ],
      "config": {
        "environment": "livemode",
        "business_profile": "profile_xxx"
      }
    },
    {
      "id": "platform_encrypted",
      "type": "com.example.platform_encrypted",
      "version": "2026-06-25",
      "spec": "https://platform.example.com/ucp/encrypted-handler.json",
      "schema": "https://platform.example.com/ucp/encrypted-handler/schema.json",
      "available_instruments": [
        {
          "type": "card"
        }
      ],
      "config": {
        "environment": "production",
        "business_id": "merchant_abc123",
        "public_key_id": "pk_abc123"
      }
    }
  ]
}
```

### Receive and process the payment credential

When the agent completes a booking, it sends the booking identifier, handler ID, instrument type, and a supported payment credential. Process the SPT or card credential with your payment provider. After you process the credential, return the booking state and payment result. If you expose booking tools through an MCP server, accept the payment credential as an input to the tool that completes the booking.

#### Process an SPT

An [SPT](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.md) grants you scoped access to a customer’s payment method for an agent-initiated purchase. The agent issues an SPT to your [Stripe profile](https://docs.stripe.com/get-started/account/profile.md) and sends it to your payment endpoint when completing the purchase.

SPTs work natively with the [Payment Intents API](https://docs.stripe.com/payments/payment-intents.md). Pass the SPT in `payment_method_data[shared_payment_granted_token]` and set `confirm=true` when you create the PaymentIntent. See [Use a shared payment token](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.md#use-a-shared-payment-token) for details.

```curl
curl https://api.stripe.com/v1/payment_intents \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-09-30.preview" \
  -d amount=4500 \
  -d currency=usd \
  -d "payment_method_data[shared_payment_granted_token]=spt_123" \
  -d confirm=true
```

If you work with another processor, you can [resolve the SPT](https://docs.stripe.com/api/shared-payment/granted-token.md) to an encrypted or tokenized credential. Contact your Stripe representative to discuss availability and access requirements.

```json
POST /bookings/booking_123/complete
Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000
Content-Type: application/json

{
  "payment": {
    "instruments": [
      {
        "id": "instr_1",
        "handler_id": "stripe_payments",
        "type": "card",
        "selected": true,
        "credential": {
          "type": "stripe_payment_token",
          "token": "spt_123"
        }
      }
    ]
  }
}

// Response
HTTP/1.1 200 OK
{
  "booking": {
    "id": "booking_123",
    "status": "confirmed"
  },
  "payment": {
    "status": "succeeded",
    "transaction_id": "pi_123",
    "instrument_type": "card"
  }
}
```

An [SPT](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.md) from Link Agent Wallet tokenizes the customer’s original Link payment method when you process the payment through Link on Stripe. Otherwise, including when you use another payment provider, Stripe provides either a virtual card or an agentic token based on network availability, issuer support, and geography.

If you use Stripe [Radar](https://stripe.com/radar), you can receive fraud risk signals with the Shared Payment Token based on your Radar plan.

#### Process a card credential

If you don’t accept SPTs, the agent sends a tokenized card credential instead. The credential is either a single-use virtual card or a network agentic token, depending on network availability.

If Stripe tokenized the credential, use the [Payment Intents API](https://docs.stripe.com/payments/payment-intents.md) to complete the payment. For credentials encrypted according to your handler or another payment provider’s handler, follow that handler’s instructions to decrypt and process the credential. The following example shows this flow.

```json
POST /bookings/booking_123/complete
Idempotency-Key: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
Content-Type: application/json

{
  "payment": {
    "handler_id": "platform_encrypted",
    "instrument": {
      "type": "card"
    },
    "credential": {
      "encrypted_credential": {
        "algorithm": "YOUR_DEFINED_SCHEME",
        "key_id": "key_123",
        "ciphertext": "YOUR_ENCRYPTED_DATA",
        "nonce": "..."
      }
    }
  }
}

// Response
HTTP/1.1 200 OK
{
  "booking": {
    "id": "booking_123",
    "status": "confirmed"
  },
  "payment": {
    "status": "succeeded",
    "transaction_id": "pi_456",
    "instrument_type": "card"
  }
}
```

## Test your integration

In a sandbox, use the [test helper](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.md#generate-an-spt-in-a-sandbox) to grant your account an SPT without an agent. Set `usage_limits` to simulate the limits an agent sets, such as the currency, a `max_amount` that matches your total, and an expiration.

```curl
curl https://api.stripe.com/v1/test_helpers/shared_payment/granted_tokens \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-09-30.preview" \
  -d payment_method=pm_card_visa \
  -d "usage_limits[currency]=usd" \
  -d "usage_limits[max_amount]=4500" \
  -d "usage_limits[expires_at]=1798761600"
```

Pass the returned token to your integration, then confirm that the `PaymentIntent` succeeds and that you receive the `shared_payment.granted_token.deactivated` webhook event. [Verify webhook signatures](https://docs.stripe.com/webhooks.md#verify-events) to confirm that events come from Stripe.

To test in live mode, issue a one-time SPT from your own Link account with the `link-cli`. Use a small amount, because live mode charges the payment method you select. For steps, see [Test your live mode integration](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.md#test-your-live-mode-integration).

## See also

- [Shared Payment Tokens](https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.md)
