> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.yoco.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.yoco.com/_mcp/server.

# Checkout API

The Checkout API lets you accept online payments using Yoco. Create a checkout session via API,
redirect customers to complete payment, and verify the result.

## How it works

#### Create a checkout session

Send a POST request to `/api/checkouts` with the payment amount and currency.

#### Redirect to payment page

Use the `redirectUrl` from the response to send customers to Yoco's hosted payment page.

#### Verify payment status

Check the checkout status via the API, or [handle webhook events](/guides/online-payments/webhooks),
to find out whether the customer paid or the checkout expired.

## When to use

Use the Checkout API when you need a hosted payment solution that handles Payment Card Industry
compliance requirements for you.

If your website runs on Shopify, WooCommerce or Wix, use a [plugin](/plugins) instead. Plugins
need no code.

#### [Online payments guide](/guides/online-payments/accepting-a-payment)

Step-by-step guide to accepting payments with the Checkout API.