Skip to main content
This section outlines the steps necessary for implementing sale prices as part of the checkout process, covering both dynamic and fixed pricing scenarios.

Int64CalculationMode

One of the following possible values of CalculationModeOptions enumeration denoting the calculation mode of a discount to be implemented by GEM:
CalculationMode Option ValueNameDescription
1  (default)Percentage discountThe discount value specified in OriginalDiscountValue should be used to calculate the DiscountValue as a percentage of the full product price (specified in Product.OriginalSalePrice for line item level discounts) or the cart price (sum of all Product.OriginalSalePricevalues) for cart level discounts.**Note:**The discount value provided is not a percentage. It represents the discount amount in your domestic currency. The ratio of the discount amount to the domestic price is calculated in the shopper’s currency. This same ratio is then applied and deducted in the shopper’s currency.
2Fixed in original currencyThe discount value specified in OriginalDiscountValuedenotes the fixed value in the merchant’s currency. When calculating the discount’s DiscountValue, only the respective FX rate should be applied to OriginalDiscountValue. No other price modifications (such as country coefficient) should be performed.
3Fixed in customer currencyThe discount value specified in DiscountValue denotes the fixed value nominated in end customer currency that should not be affected by any price modifications (such as country coefficient).

Dynamic Prices

To implement sale prices for countries for which Global-e converts the prices, you must pass as the sale price through the OriginalSalePrice field in the getCheckoutCartInfo response in your domestic currency. Example: "OriginalListPrice": 46, "OriginalSalePrice": 25 Sample:

Fixed Prices

To implement sale prices that are fixed, you must pass the fixed prices in the SalePrice, OriginalPrice fields, and set isFIxedPrice to true in the getCheckoutCartInfo response in the local currency. Example: "IsFixedPrice": true, "SalePrice": 120, "ListPrice": 120, The OriginaListPrice and OriginalSalePrice fields are ignored if they are passed. Sample:
To implement a fixed price display outside of the checkout, see Fixed Prices Support.

Checkout Discount

Discounts are passed to the Global-e checkout via the getCheckoutCartInfo’s discountsList object.

Product-level Discounts

To apply a discount to a product, assign the same value to the discountsList.ProductCartItemId  as for the productsList.CartItemId

Cart Level Discounts

Implement Cart-level discounts as you have done for product-level discounts but omit the ProductCartItemId for it to be considered a cart-level discount. For the different types of calculation modes, see ???.