ValidateVoucher (Global-e to Merchant)
This API returns new CartToken in the CartToken attribute. The API call is used to help validate vouchers/coupons used on the Checkout page.
CartToken in the CartToken attribute. The API call is used to help validate vouchers/coupons used on the Checkout page. If the voucher is valid, the merchant’s platform is responsible for applying this voucher to the shopper’s basket and executing a new SendCart / SendCartV2 API call to Global‑e, with an indication of the newly generated discount for this voucher or coupon. The new CartToken returned from this call is returned in the CartToken attribute.Body
Provides information related to validating a voucher in a cart.
Cart hash originally specified in merchantCartHash argument for SendCart method for the cart converted to this order on Global‑e.
Identifier of the cart on the Merchant’s site originally specified in merchantCartToken argument for SendCart method for the cart converted to this order on Global‑e.
The value returned from the previous call to SendCart for the same client (must be stored in the client session or persistent cookie on the Merchant’s side). This parameter is used to support cart updates.
2-char ISO country code
3-char ISO currency code.
Cart discounts for voucher validation.
The Merchant free shipping coupon code applied by the end customer.
Indicates if the Merchant offers free international shipping to the end customer.
Unique identifier of the Merchant on Global-e.
Cart products for voucher validation.
Internal User identifier on the Merchant’s site in case it was specified in the SendCart call.
The voucher code specified on the Merchant site.
Enumeration of VoucherTypes: 1 - DiscountVoucher
Code used on the Merchant’s side to identify the web store where the current cart is originating from. This code should be used in case of a multi-store setup on the Merchant’s site.
Code used on the Merchant’s side to identify the web store instance where the current cart is originating from. This code should be used in case of multi-store domains set up on the Merchant’s site.
Response
Provides information related to the voucher validation.
Provides information related to the voucher validation.
CartToken returned from the new SendCart / SendCartV2 API call, executed after the voucher has been applied to the respective user’s basket
Indicates if the voucher is valid. TRUE - Voucher is valid. FALSE - Voucher is not valid.
Error message in case voucher is not valid
List of validation restrictions applied to vouchers
Enumeration of VoucherTypes: 1 - DiscountVoucher

