Skip to main content
Branch on error_code. error is for people and may be reworded; message is kept for older clients. Log the X-Request-Id response header with every error and quote it to support@laces.run.
Every request on this page goes to https://connect.laces.run/v1, from your server, with Authorization: Bearer <token>. Laces must first turn on payments for your organization, and your API key needs payments:write, orders:write and orders:read. Never send an organization id: Laces takes the organization from the token. The client secret stays on your server, never in a browser or an LLM chat. There is no sandbox: a pay request moves real money.
403
429 (pay), with the header Retry-After: 1800

Create (POST /payments) and quote (POST /payments/quote)

Quote checks only amount, currency and payer_country, so it gives only the codes marked Q. Neither answer depends on a buyer’s number. partner_reference here is invalid_request when missing or over 128 characters (on POST /orders it is invalid_partner_reference).

Pay (POST /orders/{orderId}/pay)

Needs orders:write as well as payments:write on the key. A failed payment is not an HTTP error: the pay call answers 200 with payment_status: "failed", or a webhook arrives later. See Mobile money.

Read and list

A 500, or no answer, from pay

A charge may exist. The call can still be running, and until it commits the order reads as it did before: cart, or an earlier failed or expired. Wait 3 minutes, then read the order:

Which Idempotency-Key?

Keys don’t expire. A key that finished always gives its first answer back, a snapshot: a replayed create says cart and a replayed pay says prompt_sent even after the order is paid.
Last modified on November 26, 2026