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, 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.