Skip to main content
POST

Authorizations

Authorization
string
header
required

A token from POST /oauth/token, valid 1 hour. Paste it as LCSTOK-…-X (without the word Bearer).

Scopes

payments:write

Create and quote payments for sales on your own site (off by default; Laces must also turn payments on for the organization)

Headers

Idempotency-Key
string
required

Any unique string you generate (a UUID is ideal), stored with your cart and reused on every retry of the same action. Scoped to your API client.

Maximum string length: 255

Body

application/json

The organization comes from the token. Never send an organization id or an event id.

amount
integer
required

The item price before the Laces fee, a whole number in minor units of your organization's currency (UGX has none, so 50000 is UGX 50,000). The whole payment: send one summed amount.

Required range: x >= 1
Example:

50000

partner_reference
string
required

Your own id. One line. Laces does not check that it is unique.

Required string length: 1 - 128
Example:

"SHOP-ORDER-8812"

description
string
required

What was bought. One line, shown to the buyer in emails. No web address (:// or www.).

Required string length: 1 - 200
Example:

"Club jersey, size L"

customer
object
required

The buyer.

currency
string

Optional. If sent, must be your organization's currency, else 400 currency_mismatch.

Example:

"UGX"

payer_country
string

Optional. The country the buyer pays from: one of UG, KE, GH, RW, ZM today. Sets the currency, fee and methods. Left out: your organization's country. Anything else is 400 unsupported_country.

Example:

"KE"

payment_method
enum<string>

Sets the fee, and can't be changed later. momo is mobile money (in Uganda: MTN), airtel is Airtel Money in Uganda (elsewhere the same price as momo). Left out: momo, or card for a US, GB or EU organization. Use only what the quote's payment_methods lists.

Available options:
momo,
airtel,
card
product
string

A grouping label: the same value for everything you want totalled together. No web address.

Maximum string length: 80
Example:

"jersey"

metadata
object

Your own data, flat, strings only, at most 4096 bytes of JSON. A key may not start and end with __. Returned on the order and webhooks, never shown to the buyer. Send ids, not personal data.

Example:
source_url
string<uri>

The page on your site the buyer came from. Emails link to it. https, origin in the key's Return URL domains, not a link shortener or shared host. Without it, the key's default site is used.

Maximum string length: 2048
on_success_url
string<uri>

Where a card buyer returns after paying. Origin in the key's Return URL domains; at most 2048 characters with the order id and status added. {LACES_ORDER_ID} and {LACES_STATUS} are filled in; otherwise laces_order_id and laces_status are added to the query. Without it, the key's default is used. Never proof of payment.

Maximum string length: 2048
on_failure_url
string<uri>

Where a card buyer returns when the payment failed or they give up. Same rules as on_success_url.

Maximum string length: 2048

Response

Idempotent replay: the original payment.

code
integer
required

HTTP status, repeated in the body.

Example:

200

message
string
required
data
object
required
Last modified on November 26, 2026