Purchase reward with points
Changed onPurchases a reward for the program member by spending points from the member's card. The card comes from the matching reward cost's card definition.
The program, reward, and member must be ACTIVE. The program and reward must be inside their validity windows. The reward must be assigned to the program with stock available, a cost must match the customer, and the purchase must stay inside frequency, cooldown, balance, and spending limits.
Modes:
- TRANSACTION (default): creates a PENDING reward transaction and a PENDING card transaction. Returns 202.
- DRY_RUN: simulates the purchase and doesn't create a transaction. Returns 200 with status SIMULATED.
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v2/loyalties/programs/{programId}/members/{memberId}/rewards/purchases
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or HTTP bearer
Request body
Response
Dry run result (mode DRY_RUN). No transaction was created; the returned transaction has status SIMULATED and no id.
Changes
- breaking
added to the request body
allOflist - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
removed the request property
- warning
removed the request property
- info
added to the response body
allOflist for the response status - info
added to the response body
allOflist for the response status
- breaking
- breaking
added the new required request property
- warning
removed from the request body
allOflist - info
added the new optional request property
- info
removed from the response body
allOflist for the response status - info
removed from the response body
allOflist for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking