> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sezzle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Building with AI

> Install Sezzle's MCP server and skills so your AI agent can search these docs and build your integration.

Integrate Sezzle without leaving your editor. Our MCP server lets an AI agent search these docs, and our skills walk it through building and testing an integration. Every page is also available as markdown for any large language model (LLM).

To set it up, paste this into your agent:

```text theme={"system"}
Install Sezzle's docs MCP server and skills from https://docs.sezzle.com/docs/guides/building-with-ai.md
```

## MCP Server

Sezzle has an MCP server (An MCP server implements the Model Context Protocol, a standard for connecting AI models to external tools and data.) that lets you search this documentation in natural language from your IDE, terminal, or any MCP-compatible tool. It reads Sezzle's documentation only; it never calls the Sezzle API.

### Setup

**1. Install the MCP server**

Run the following command. It detects the AI tools configured in the current project (Cursor, Claude Code, VS Code, and others) and asks which ones to install to. Add `-g` to install globally instead of into the current project.

```bash theme={"system"}
npx add-mcp https://docs.sezzle.com/mcp --name sezzle-docs
```

> [!NOTE]
>
> Agents: add `-a <agent> -y`, or the command fails.

To configure a client by hand instead:

> [tab] Claude Code
>
> Add the server:
>
> ```bash theme={"system"}
> claude mcp add --transport http sezzle-docs https://docs.sezzle.com/mcp
> ```
>
> Then confirm it connected:
>
> ```bash theme={"system"}
> claude mcp list
> ```

> [tab] Cursor
>
> Press <kbd>Command</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> on Windows), search for `Open MCP settings`, and click **Add custom MCP** to open `mcp.json`. Add:
>
> ```json theme={"system"}
> {
>   "mcpServers": {
>     "sezzle-docs": {
>       "url": "https://docs.sezzle.com/mcp"
>     }
>   }
> }
> ```

> [tab] VS Code
>
> Create a `.vscode/mcp.json` file containing:
>
> ```json theme={"system"}
> {
>   "servers": {
>     "sezzle-docs": {
>       "type": "http",
>       "url": "https://docs.sezzle.com/mcp"
>     }
>   }
> }
> ```

**2. Begin prompting**

Ask a question, and your agent searches Sezzle's documentation for the answer.

**Example prompts:**

* "How do I create a Sezzle checkout session, and what do I do next?"
* "How do I capture an authorized order?"
* "What's the difference between Authorize Only and Authorize and Capture?"
* "How do I integrate the Sezzle iOS SDK?"
* "Which webhook events does Sezzle send, and how do I subscribe to them?"
* "How do I add the Sezzle widget to a WooCommerce store?"

## Skills

A skill gives your AI agent a procedure to follow for a specific task: the API calls in order, the decisions along the way, and the steps you have to complete yourself.

> [!TIP]
>
> The MCP server lets your agent *search* our docs. A skill tells it *what to do*.

### Install skills

Run the following command:

```bash theme={"system"}
npx skills add https://docs.sezzle.com
```

> [!NOTE]
>
> If your AI agent runs the command, pass `--agent` with its name — it can't answer the installer's prompt, so it installs to every agent.

Common values are `claude-code`, `cursor`, `github-copilot`, `codex` and `gemini-cli`. The [`skills` CLI reference](https://github.com/vercel-labs/skills) has the full list.

* `--agent claude-code cursor` installs to more than one agent.
* `--skill sezzle-prototype-sandbox` installs one skill instead of all of them.
* `-g` installs globally instead of into the current project.

To add a skill manually, copy the `skill.md` file linked below and paste it into your agent.

### Available skills

We also publish this list as JSON at [`docs.sezzle.com/.well-known/agent-skills/index.json`](https://docs.sezzle.com/.well-known/agent-skills/index.json).

| Name | Description |
| - | - |
| [`sezzle-prototype-sandbox`](https://docs.sezzle.com/.well-known/skills/sezzle-prototype-sandbox/skill.md) | Get a working Sezzle checkout in sandbox from a standing start: sign up, generate API keys, create a session, complete checkout with test data, then release, capture, and refund the order. Confirms your sandbox account is ready to build against, and tells you what to fix if it isn't. |
| [`sezzle-checkout`](https://docs.sezzle.com/.well-known/skills/sezzle-checkout/skill.md) | Implement a full Sezzle BNPL checkout integration: authentication, session creation, shopper redirect, and order management (capture, refund, release, reauthorize, upcharge). Covers direct REST API and the JavaScript Checkout SDK (popup, iframe, redirect), plus express checkout. |
| [`sezzle-webhooks`](https://docs.sezzle.com/.well-known/skills/sezzle-webhooks/skill.md) | Set up Sezzle webhooks for order, tokenization, and dispute events, with HMAC-SHA256 signature verification and delivery troubleshooting. |
| [`sezzle-widgets`](https://docs.sezzle.com/.well-known/skills/sezzle-widgets/skill.md) | Add Sezzle on-site messaging to product and cart pages so shoppers see financing options as they browse. Covers the dynamic price widget, document.sezzleConfig, static widgets, and checkout installments. |
| [`sezzle-troubleshoot`](https://docs.sezzle.com/.well-known/skills/sezzle-troubleshoot/skill.md) | Diagnose a failing Sezzle integration: read the API error body, inspect the order status, and match the symptom to its usual cause, from 401s and rejected amounts to missing webhooks and signature mismatches. Names the cause and the skill or docs page that fixes it. |
| [`sezzle-tokenization`](https://docs.sezzle.com/.well-known/skills/sezzle-tokenization/skill.md) | Tokenize Sezzle customers to charge them for future orders without customer interaction: subscriptions, recurring billing, and pre-orders. Covers the tokenize fields on the session, the customer.tokenized webhook, preapproval checks, and orders created from the stored customer UUID. |
| [`sezzle-virtual-card`](https://docs.sezzle.com/.well-known/skills/sezzle-virtual-card/skill.md) | Accept Sezzle as a credit card transaction through your existing payment processor (Stripe, Cybersource, Braintree) with Sezzle Virtual Card. Covers the Virtual Card SDK, the manual postMessage integration, card sessions, and the tokenized card-data flow. US only today. |
| [`sezzle-instore-pos`](https://docs.sezzle.com/.well-known/skills/sezzle-instore-pos/skill.md) | Integrate Sezzle at point of sale: send the customer a Sezzle checkout link by SMS or email from the POS, then learn the outcome as they complete checkout on their own phone. Covers the send\_checkout\_url session field, which webhook each intent sends, polling for abandoned or declined checkouts, and capture, release, and refund at the register. |
| [`sezzle-go-live`](https://docs.sezzle.com/.well-known/skills/sezzle-go-live/skill.md) | Move a working Sezzle integration from sandbox to production: production account setup, key cutover, re-subscribing webhooks and re-requesting allowlists per environment, and a production smoke test that authorizes and releases a real order instead of capturing it. |
| [`sezzle-mobile-sdk`](https://docs.sezzle.com/.well-known/skills/sezzle-mobile-sdk/skill.md) | Integrate Sezzle checkout and promotional messaging into a native iOS or Android app with the Sezzle Mobile SDK. Covers installation, server-driven and SDK-created sessions, system browser and WebView checkout, completion and cancel callbacks, callback URL schemes, and capturing the order from your backend. |

## Markdown and llms.txt

Append `.md` to any page URL to get its markdown source. Paste that straight into an LLM.

We also support the [/llms.txt](https://llmstxt.org) standard.

> [card] /llms.txt
>
> An index of every page in our docs, hosted at [https://docs.sezzle.com/llms.txt](https://docs.sezzle.com/llms.txt).

> [card] /llms-full.txt
>
> The full text of our docs in one file, hosted at [https://docs.sezzle.com/llms-full.txt](https://docs.sezzle.com/llms-full.txt).

## For AI agents

When the user asks to add, install or connect Sezzle's docs, run both:

```bash theme={"system"}
npx add-mcp https://docs.sezzle.com/mcp --name sezzle-docs -a <agent> -y
npx skills add https://docs.sezzle.com --agent <agent>
```

`<agent>`: `claude-code`, `cursor`, `codex`, `gemini-cli`, `antigravity` or `grok`. Add `-g` only if the user asks for a global install.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.