- Payments only: take mobile money and card payments for anything you
sell on your own site, with no Laces event:
POST /payments/quoteandPOST /payments, then the existing pay, read and webhook flow. Laces turns it on per organization. Start at Collect payments, or move from event orders. - New scope
payments:write, off by default. Paying still needsorders:write, and confirming needsorders:read. Get a new token after turning it on. - Key settings: a default site and default return URLs. See API keys.
- Orders and webhooks: payments have
order_type: "partner_payment"and noevent_id,ticket_countorregistrations. Once payments are on, your existing webhook endpoints andorders:readkeys see them, so check that your code doesn’t needevent_id.GET /orderstakes anorder_typefilter. Ticket orders are unchanged. - Refunds: a refund returns the price, not the Laces fee, and an order is
refundedonce the price is back. If your webhook code compares refunds withtotal, change it. Laces handles refunds: an organizer asks in the app or by email. The organizer pays the cost of a mobile money payout, and pays the buyer directly when their balance doesn’t cover the refund;order.refundedis then sent before the buyer has the money, with the same payload. See Refunds. - Paging: an orders page can be short or empty. Stop only when
next_cursorisnull. - Docs corrections:
refund.statusinorder.refundediscompleted; a bad orders cursor isinvalid_cursor;429 payer_prompt_limitand409 charge_pending_same_numberon pay are now documented.
- Create and publish events: a new opt-in scope,
events:write, lets your server create an event as a draft (POST /events), add paid ticket types (POST /events/{eventId}/ticket-types) and publish it. It is off by default, never available to a publishable key, and acts only on events the same key created. Fetch a new token after turning it on. See the guide. - Your own registration site: an event created through the API can send
buyers to your site with
registration_url(PATCH /events/{eventId}sets or clears it). The URL’s origin must be one of the key’s new Registration domains. laces.run then showsRegister on {host}, and anonymous Laces checkout for that event is refused with409 registration_external. This is routing, not security: your other keys can still sell the event. - Event responses gain
registration_url,registration_mode(lacesorexternal) andcreated_via_api;partner_referenceis returned to the key that created the event.GET /events/{eventId}also returns your own key’s drafts. - Limits: 20 API-created events per organization per UTC day, 25 unpublished drafts per key, 20 ticket types per event.
- New error codes carry their detail in
error_details. See Errors.
500 server_errorbodies are generic. Theerrortext no longer describes the underlying cause. The body now carriesrequest_id, the same value as theX-Request-Idheader: quote it to support.- Card payments: card is sold through the API when it is listed in an
event’s
payment_methods. Use only the methods listed there: a card order where card isn’t offered in the event’s country gets400 rail_unavailable, and a mobile money order on a card-only event gets422 no_rate_for_method. Create the order withpayment_method: "card"; pay returnsnext_action: { "kind": "redirect", "redirect_url" }, a Laces-hosted page where the buyer pays. Events in the US, UK and EU are card-only. See Custom UI and Fees and totals. - New pay errors documented:
400 rail_unavailable(nothing was charged: that number’s network or method isn’t available for the event) and422 payer_not_registered(nothing was charged: the number isn’t registered for mobile money). See Errors. - Fees changed: the Laces fee is now lower on MTN Mobile Money and Airtel
Money. Nothing to change in your integration: keep displaying the
laces_fee_minorandtotal_minorthe API returns. - Checkout branding: give the hosted and embedded checkout and the
Laces-hosted card payment page your accent color, logo and a light, dark
or auto color scheme. Set it per key in the Laces app under
Settings > Developers, or per session with
themeonPOST /checkout-sessionsand thethemeoption oflaces.js. An invalid theme is refused with400 invalid_theme. See Brand your checkout. - Custom UI timer:
prompt_expires_aton the pay response and order reads says when the “approve on your phone” window ends. It is a lower bound, not a failure signal, and it is alwaysnullin webhooks. See Show the buyer a timer. - Mobile money pay responses now return
payment_status: "prompt_sent"andnext_action.kind: "await_confirmation"as documented (they returnedpending/nonebefore). Branch onnext_action.kind. - Embedded checkout: a wider dialog (at least 70% of the screen on desktop, full screen on phones), locked against accidental close while a payment is in flight. See Locked during payment.
The Laces Partner API v1, at
https://connect.laces.run/v1.- One environment, production: you build with the live keys from the Laces app. See Testing your integration.
- OAuth 2.0 client credentials token endpoint, and the browser-safe
publishable key (
X-Laces-Publishable-Key). - Events: list your organization’s on-sale events and read one with
per-ticket fees for MTN Mobile Money and Airtel Money, the
payment_methodsyou can sell, andpayments_enabled. Card is coming soon: until then each ticket’scardquote isnulland card orders are refused with409 payment_method_unavailable. - Orders: create (with waiver attestation and idempotency), pay by mobile
money prompt, list and read. A failed or expired order carries a sanitized
failure_kind(provider_not_reached,timed_out,declinedorother), also on theorder.failedwebhook. - Hosted checkout sessions with return URLs.
- Embedded checkout with
laces.js, served fromhttps://laces.run/v1/laces.js. - Webhooks:
order.paid,order.failed,order.refundedandping, signed with HMAC-SHA256. - Every error carries a stable
error_code, and every response anX-Request-Id, including malformed JSON (400 invalid_json) andGET /health. - Self-serve API keys and webhook endpoints in the Laces app, under Settings → Developers: create, regenerate and revoke keys; add, edit, test, disable and delete webhook endpoints.
http://localhost:<port>andhttp://127.0.0.1:<port>can be added to a key’s domains for local development, and hosted and embedded checkout work end to end on them.- Revoking a key, or removing a permission or domain, takes effect immediately.