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)

Body

application/json

The organization comes from the token. Never send an organization 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

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"

Response

The quote.

code
integer
required

HTTP status, repeated in the body.

Example:

200

message
string
required
data
object
required

Amounts are in currency, minor units.

Last modified on November 26, 2026