Skip to main content
POST

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Body

application/json

The payment to create.

A payment with bonus.

memberId
string
required

The memberId of the customer who pays. At most 36 characters.

Required string length: 1 - 36
operationId
string
required

Your unique id for this operation, at most 128 characters. Send the same id only when you repeat the same request: it makes the call idempotent. One id stands for one transaction and cannot be used for another.

Required string length: 1 - 128
amount
number<double>
required

The amount of bonus to pay with. Positive, with at most two decimals.

reserveAvailable
boolean
required

What happens when the customer has less than amount available: true pays with all there is, false refuses the payment. Left out, it counts as false.

instantCapture
boolean
required

true makes the payment final at once. false reserves the amount, and the transaction waits to be captured or cancelled. Left out, it counts as false.

metadata
object | null

Key-value pairs to keep with the transaction, at most 1024 characters as JSON. Lobyco reads storeId, chainId and receiptId from them for statements, and details as a note shown to the customer.

accountType
string | null

The name of the account type to pay from. Needed when the customer has active accounts of several types. Omitted, the customer's only active account is used.

Response

The payment was reserved or made, or an earlier call with the same operationId had done so already. amount is what was taken.

The payment that was created.

transactionId
integer<int64>
required

The id of the payment transaction. The capture, cancel and refund calls take it.

Example:

9154377

amount
number<double>
required

The amount that was reserved or paid. Less than the amount asked for when reserveAvailable is true and the customer had less available.

Example:

25.5

conversionRate
number<double>
required

The conversion rate of the account type at the time of the payment. It is kept with the payment, and statements multiply the payment's amount by it.

Example:

1

Last modified on November 16, 2026