Skip to main content
POST
Error

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required

Path Parameters

programId
string
required

Unique loyalty program identifier (format: lprg_ followed by hexadecimal characters).

memberId
string
required

Program member ID (format lmbr_[a-f0-9]+).

Pattern: ^lmbr_[a-f0-9]+$

Body

application/json

Request body for purchasing a reward with points.

reward_id
string
required

Unique identifier of the reward to purchase (format lrew_...).

mode
enum<string>
default:TRANSACTION

Purchase mode. TRANSACTION creates a PENDING reward transaction processed asynchronously (HTTP 202). DRY_RUN only simulates the purchase and returns the calculation result (HTTP 200); no transaction is created. Defaults to TRANSACTION when omitted.

Available options:
TRANSACTION,
DRY_RUN

Response

Dry run result (mode DRY_RUN). No transaction was created; the returned transaction has status SIMULATED and no id.

Result of a reward purchase request in dry-run mode.

transaction
object
required

The simulated reward transaction.

status
enum<string>
required

Result status. Always DRY_RUN for the dry-run mode.

Available options:
DRY_RUN
message
string
required

Human-readable result message. DRY_RUN mode: "Dry run mode. No transaction was created. This is only a simulation.".

Last modified on July 28, 2026