Skip to main content
POST
Load bonus

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 bonus to load.

The bonus to load on a customer's account.

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.

Example:

150

type
string
required

The name of a bonus type configured for your environment. Payment, Refund and the adjustment type of your environment are not accepted.

Minimum string length: 1
Example:

"CampaignBonus"

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.

Required string length: 1 - 128
Example:

"3f1c9a52-8a4e-4d0b-9a3e-5f0d6c2b7e11"

metadata
object
required

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. Required; send an empty object when there is nothing to keep.

Example:

Response

The bonus was booked, or an earlier call with the same operationId had booked it already.

The transaction that loaded the bonus.

transactionId
integer<int64>
required

The id of the transaction that was created.

Example:

9154290

Last modified on August 10, 2026