Skip to main content

Selling tickets?

You’re in the right place. Carry on below.

Just collecting payments?

No Laces event needed. Go to Collect payments.
By the end of this page you’ll have fetched your organization’s events from your terminal, sent yourself through a Laces checkout and verified the result the way your server will.
Your API keys come from the Laces app. Open it on a computer at app.laces.run, or download it for your phone at laces.run/app. Sign in with an account that is an owner or admin of your organization and open Settings → Developers. That is the only place to create API keys and webhook endpoints: there is no separate developer portal, and the Partner API has no routes for creating them. If you can’t see Developers, your account isn’t an owner or admin.
You need: the Laces app (app.laces.run or laces.run/app) with owner or admin access to a Laces organization, a terminal with curl, and a website you control on https to come back to (any page will do, for example https://shop.example.com).
The Partner API has one environment: production. This walkthrough takes a real registration. Use a free or low-price ticket on an unlisted test event, and ask Laces to refund a paid one afterwards. See Testing your integration.
Every key, token and id on this site is a made-up example value. Your real keys are issued to you in the Laces app, under Settings → Developers.
1

Create a test event (2 minutes)

In the Laces app, create an event to test with: set its visibility to unlisted so it stays off the public listings, open registration, and add a free ticket type (or one at the lowest price you’re happy to pay). Your organization must be cleared to take payments for paid tickets.
2

Get your keys (2 minutes)

In the Laces app (open app.laces.run or download it): Settings → Developers → Create API key.
The Laces app Settings screen showing the Developers tile below the Get help section

Settings → Get help → Developers

  • Name: “Quickstart”.
  • Permissions: leave the defaults (Read events, Create orders, Start hosted checkout).
  • Return URL domains: add your site’s origin, for example https://shop.example.com.
Tap Create key, then Copy all. The secret is shown once. In your terminal:
Details: Getting your API keys.
3

Get an access token (1 minute)

A 401 invalid_client means the id or secret is wrong (check for a missing character or changed case). A 401 partner_credential_not_accepted means you called a host other than connect.laces.run. See Authentication.
4

List your events (1 minute)

Copy your test event’s event_id. (Events you create with the API return theirs in the response; see Create and publish events.) Then look at its tickets and fees:
An empty list means your organization has no event that is open or scheduled, public or unlisted, and not yet ended. payments_enabled: false means your organization isn’t cleared to take payments yet, so checkout will be refused with payments_disabled.
5

Start a checkout (2 minutes)

Create a hosted checkout session. Your server would make this call; here it’s curl:
Open data.url in your browser, register with your own details, and pay with mobile money (or confirm, for a free ticket). Laces sends you back to https://shop.example.com/?session=LCSCS-….
Laces checkout headed 'Checkout for Kampala Road Runners' with a Register and Pay form

The Laces checkout page that data.url opens, labelled with your organization's name.

400 invalid_return_url? The URL’s origin isn’t in Return URL domains exactly as typed (scheme, host and port).
6

Verify the result (1 minute)

Your server confirms the result. Here it’s curl:
status: "complete" with order.status: "paid" means the registration is paid. That’s a working checkout. If you paid for it, you can ask Laces to refund it.
Never fulfil an order on the browser’s word alone. A redirect to your success page, or an onSuccess callback in the page, is user experience, not proof of payment. Anyone can type your success URL. Before you mark anything paid, confirm it on your server: read the session with GET /checkout-sessions/{id} and require status: "complete", or act on a signed order.paid webhook.

Next steps

Hosted checkout in depth

A Register button on your page, return URLs, client_reference_id and errors.

Webhooks

Get order.paid pushed to your server instead of asking.

Embedded checkout

The same checkout in a modal on your page, with laces.js.

Custom UI

Your own checkout form, with native mobile money.
Last modified on November 26, 2026