Client apply loyalty vouchers
Validates the Loyalty Vouchers selected by the user and applies them to the current user’s cart if all vouchers in the list are valid and applicable.
loyaltyVouchersList argument of the SendCart API call for the current user’s checkout page. This method can only be executed from within the context of the current user’s client session. Validates Loyalty Vouchers and applies them to the current user’s cart if all the vouchers in the list are valid and applicable.
- If at least one Loyalty Voucher in the list is invalid,
Merchant.ResponseInfo.Successis set toFALSE. - If all Loyalty Vouchers are valid, the Merchant’s server should re-calculate the cart pricing and execute before returning a response, the
SendCartAPI call with theCartTokenargument value returned from the previous call toSendCartfor the current user.
Body
Delineates what action to perform with the cart data.
Response
Describes the response to the API call. In case of an error, indicates the error.
Describes the response to the API call. In case of an error, indicates the error.
Optional response description. In case of an error, this property indicates the error message description.
Error code to be returned when an error occurs.
Order unique identifier on the Merchant's site
Optional response message. In case of an error, this property indicates the error message text.
Order identifier on the Merchant's site used for display and reporting purposes only. Unlike the InternalOrderId, this identifier is not necessarily unique over time, as the Merchant's site may potentially reuse it (for example after deleting the old order having the same OrderId).
The total payment amount in PaymentCurrency charged for the order (if payment was processed in the respective API method call).
3-char ISO currency code for the order (if payment was processed in the respective API method call).
Code denoting the order status on the Merchant's site (to be mapped on the Global-e side).
Indicates if the call has succeeded. TRUE - Call succeeded. FALSE - Denotes an error or failure.

