Skip to main content
POST
Reserve a payment for a customer

Authorizations

Authorization
string
header
required

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

Path Parameters

memberId
string
required

The customer's memberId, as returned when the customer was created or imported. At most 36 characters.

Maximum string length: 36

Body

application/json

The payment to reserve.

A payment to reserve on a customer's account.

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
Example:

"8d2f6b1e-4c7a-4f3b-b6d9-2a5e7c9f1d34"

amount
number<double>
required

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

Example:

25.5

reserveAvailable
boolean
required

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

Example:

true

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.

Example:
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.

Example:

"Default"

Response

The amount is reserved, or an earlier call with the same operationId had reserved it already.

The payment that was reserved.

transactionId
integer<int64>
required

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

Example:

9154377

reservedAmount
number<double>
required

The amount that was reserved. 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