Skip to main content
POST

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

Query Parameters

accountType
string

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

Body

application/json

The transaction to create.

A transaction to create 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
amount
number<double>
required

The amount of bonus: positive to add it to the customer's account, negative to take it off. Not zero, and with at most two decimals.

transactionType
string
required

The name of a transaction type of your environment, such as a bonus type Lobyco configured for you. Payment and Refund are not accepted here.

Minimum string length: 1
instantCapture
boolean
required

true books the amount at once. false reserves it, 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.

expirationDate
string<date-time> | null

When the bonus added by this transaction expires. Left out, the transaction sets no expiry date.

autoCaptureDate
string<date-time> | null

When Lobyco captures the transaction by itself. Only with instantCapture set to false. Omitted, the transaction waits until you capture or cancel it.

Response

The transaction was created, or an earlier call with the same operationId had created it already. amount is what was booked.

The transaction that was created.

transactionId
integer<int64>
required

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

Example:

9154290

amount
number<double>
required

The amount that was booked or reserved, without sign. Less than the amount asked for when the maximum balance of the account type cut it down.

Example:

150

Last modified on November 16, 2026