Skip to main content

Documentation Portal

ValidateVoucher (Global-e to Merchant)

Note

This API is part of Global-e's extensions and plug-ins. Merchants do not need to implement this API unless a custom integration is required.

This API returns new 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.

Method/URL

https://www.merchant-site-domain.com/checkout-validate-cart-voucher-url
Parameters

Request

Name

Type

Description

Mandatory

Merchant.CartVoucherValidation

Object Merchant.CartVoucherValidation

Provides information related to validating a voucher in a cart.

Response

Name

Type

Description

Mandatory

Merchant.VoucherValidationResponse

Object Merchant.VoucherValidationResponse

Provides information related to the voucher validation.

Examples