Skip to main content
POST

Authorizations

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

Path Parameters

programId
string
required

Identifies the loyalty program (lprg_ followed by hexadecimal characters).

Pattern: ^lprg_[a-f0-9]+$
memberId
string
required

Identifies the program member (lmbr_[a-f0-9]+).

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

Body

application/json

Request body for paying for an order with points.

card_id
string
required

Unique identifier of the member's loyalty card to spend points from (format lcrd_...).

order
object
required

Reference to the order being paid. The order must already exist in the Voucherify system. At least one of id or source_id must be provided.

payment_limit
object

Optional payment limit. When omitted, the default CARD_BALANCE limit is applied (spend up to the card balance).

mode
enum<string> | null

Payment mode. TRANSACTION creates a PENDING order transaction processed asynchronously (HTTP 202). DRY_RUN only simulates the payment and returns the calculation result (HTTP 200); no transaction is created. Defaults to TRANSACTION when omitted or null.

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 pay-with-points request.

transaction
object

An order transaction representing a pay-with-points SIMULATED payment.

status
enum<string>

Result status. DRY_RUN for dry-run mode.

Available options:
DRY_RUN
message
string

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

Last modified on August 4, 2026