Skip to navigation
Checkout API

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

1

Create a checkout session

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

2

Redirect to payment page

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

3

Verify payment status

Check the checkout status via the API, or handle webhook events, 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 instead. Plugins need no code.