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:

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 ???.