Pay for order with points
Changed onPays for an order with points from the member's card. The amount and points come from the card definition's pay-with-points exchange ratio, limited by the order total, the card balance, card spending caps, and the optional payment_limit. The binding cap is returned as details.spending_cap.
The program and member must be ACTIVE, and the program must be inside its validity window. The card must belong to the member. The card definition must have pay-with-points enabled and an exchange-ratio formula. The order must already exist, identified by id or source_id.
Modes:
- TRANSACTION (default): creates a PENDING order transaction and a PENDING card transaction. Returns 202. The same order can be paid again; each call creates a new transaction.
- DRY_RUN: simulates the payment 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}/orders/payments
- 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
the
////////response's property type changed fromobjectto no type for status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - info
added
subschema #2to the////////response propertyallOflist for the response status
- breaking
- breaking
the
////////response's property type changed from no type toobjectfor status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status - info
removed
subschema #2from the////////response propertyallOflist for the response status
- breaking