Int64CalculationMode
One of the following possible values of CalculationModeOptions enumeration denoting the calculation mode of a discount to be implemented by GEM:| CalculationMode Option Value | Name | Description |
|---|---|---|
| 1 (default) | Percentage discount | The 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. |
| 2 | Fixed in original currency | The 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. |
| 3 | Fixed in customer currency | The 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 theOriginalSalePrice 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 theSalePrice, 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:
Checkout Discount
Discounts are passed to the Global-e checkout via thegetCheckoutCartInfo’s discountsList object.
Product-level Discounts
To apply a discount to a product, assign the same value to thediscountsList.ProductCartItemId as for the productsList.CartItemId
Cart Level Discounts
Implement Cart-level discounts as you have done for product-level discounts but omit theProductCartItemId for it to be considered a cart-level discount.
For the different types of calculation modes, see ???.

