Skip to main content
Collect payments on your own site
  • Payments only: take mobile money and card payments for anything you sell on your own site, with no Laces event: POST /payments/quote and POST /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 needs orders:write, and confirming needs orders: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 no event_id, ticket_count or registrations. Once payments are on, your existing webhook endpoints and orders:read keys see them, so check that your code doesn’t need event_id. GET /orders takes an order_type filter. Ticket orders are unchanged.
  • Refunds: a refund returns the price, not the Laces fee, and an order is refunded once the price is back. If your webhook code compares refunds with total, 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.refunded is 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_cursor is null.
  • Docs corrections: refund.status in order.refunded is completed; a bad orders cursor is invalid_cursor; 429 payer_prompt_limit and 409 charge_pending_same_number on pay are now documented.
Create events with the API
  • 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 shows Register on {host}, and anonymous Laces checkout for that event is refused with 409 registration_external. This is routing, not security: your other keys can still sell the event.
  • Event responses gain registration_url, registration_mode (laces or external) and created_via_api; partner_reference is 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.
Error and docs updates
  • 500 server_error bodies are generic. The error text no longer describes the underlying cause. The body now carries request_id, the same value as the X-Request-Id header: 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 gets 400 rail_unavailable, and a mobile money order on a card-only event gets 422 no_rate_for_method. Create the order with payment_method: "card"; pay returns next_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) and 422 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_minor and total_minor the 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 theme on POST /checkout-sessions and the theme option of laces.js. An invalid theme is refused with 400 invalid_theme. See Brand your checkout.
  • Custom UI timer: prompt_expires_at on 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 always null in webhooks. See Show the buyer a timer.
  • Mobile money pay responses now return payment_status: "prompt_sent" and next_action.kind: "await_confirmation" as documented (they returned pending / none before). Branch on next_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.
v1, first release
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_methods you can sell, and payments_enabled. Card is coming soon: until then each ticket’s card quote is null and card orders are refused with 409 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, declined or other), also on the order.failed webhook.
  • Hosted checkout sessions with return URLs.
  • Embedded checkout with laces.js, served from https://laces.run/v1/laces.js.
  • Webhooks: order.paid, order.failed, order.refunded and ping, signed with HMAC-SHA256.
  • Every error carries a stable error_code, and every response an X-Request-Id, including malformed JSON (400 invalid_json) and GET /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> and http://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.
Last modified on November 26, 2026