Skip to main content
This page describes the following elements:
Global-e Module Javascript
Below is a suggested way of loading the Bespoke JavaScript library asynchronously on your site: Integration Environment
Production Environment
The above snippets will ensure that the Bespoke JavaScript module will load asynchronously and not block your current page rendering.
Replace {merchant id} at the end of the URL with the merchant ID provided to you by Global-e.
The Global-e Module CSS
You must place the Bespoke CSS on your site’s header. The following example is the Bespoke CSS you must use in your Integration environment:
The following example is the Bespoke CSS you must use in your Production environment:
Replace {merchant id} at the end of the URL with the merchant ID that Global-e gave you.
Mandatory Developments
The following table shows the mandatory developments:
FeatureDescription
PricelistYou must be able to retrieve the country from the Global-e Module cookie to use the relevant pricelist on the front-end
My account currency conversionThe following parameters are required to correctly convert currencies in the My Account or My Orders sections:
Customer ID: dedicated cookie
Global-e order ID: in the Document Object Model (DOM) of the relevant pages in the section
Client analyticsSee the GEM client snippet.
Google Shopping feedSee the Marketing Feeds and Tax/Shipping Rates.
CookiesGlobal-e uses cookies in API requests between your client, our servers, and Centra. These cookies help identify the active cart and customer so that data stays consistent across the checkout flow:
token – Identifies the shopping cart. It allows you to retrieve cart details on the client side (for showing prices on the cart page) and on the server side (when sending the cart to checkout).
Customer_id – Identifies the logged-in customer. It is used on the My Account page to fetch their past orders and to display prices based on the international rates they paid.
Bothcookies should match the cart and customer identifiers stored in Centra. You can store them as one combined cookie or as two separate cookies, depending on your implementation.
The cookie must follow this structure so Global-e can extract the token and customer_id:
ge_frontend_data = {“token”:”asfd444ggv44677870jhv”,”customer_id”:”123456”}
Requirements:
The cookie must be classified as Essential.
The cookie must not be set as httpOnly (Global-e’s client-side scripts need to read it).
Browsing
This section describes Centra’s browsing elements.
Global-e Browsing Elements
Global-e supports the following browsing elements:
  • Welcome pop-up
  • Country switcher
  • Free shipping banner
For more information, see Site Customization.
Global-e Storefront Attributes
The Global-e storefront attributes are described on the Storefront Attributes page.
Calculating Prices
Global-e supports calculating both dynamic prices and fixed prices. Dynamic price calculations are based on pricelists created by merchants using Centra’s back-office. You must use this set of configurations to properly support price conversions:
  • All Global-e markets must be assigned to a pricelist. Global-e automatically assigns Centra’s default pricelist for unassigned markets.
  • All pricelists used for Global-e markets must be set in your base currency.
Fixed price calculations are supported per country and is based on Centra’s native pricelist creation. You must follow these rules when setting their fixed prices:
  • Each country’s fixed prices must be set with its respective currency as configured by Global-e.
  • The geolocation must be set according to the country’s fixed prices.
  • All fixed prices must be set on the country’s catalog.
Products
Product Restrictions
As with other Global-e Module (GEM) integrations, we support merchants restricting purchases of checkout items to specific countries based on regulations or commercial restrictions. We support restrictions at the Checkout level. For more information on product restrictions, see. Restricted Products
Pre-Ordering Items
You can sell pre-order items if needed, and can enable them by selecting the stock section checkbox for the required item. Merchants must pass the pre-order attribute indication for the relevant products. Note the following:
  • We do not validate stock in the order stock validation phase for items identified as pre-order.
  • Items identified as pre-order must be marked in Centra as PreOrder. Items not marked as PreOrder will be a Failed Transfer to Merchant (FTM). Merchants must mark pre-order items in both Global-e and Centra.
Product Attributes
Global-e supports the following product attributes:
  • Product name
  • HS code
  • Country of origin
  • Weight
  • Brand
  • Description
We do not support custom fields.
Cart
Sending Language to Checkout
Global-e supports sending language to Checkout with GEM capabilities. For more information, see Global-e Checkout Language.
Clearing Your Cart
Global-e supports clearing your cart with GEM capabilities. For more information, see Clearing your Cart.
Applying Discounts
Centra supports several discount types that may include multiple rules and dependencies. You can specify these conditions while creating both vouchers and campaigns.
Calculating Cart Prices
The GetCheckoutCartInfo API retrieves cart information for international checkout processing. This API:
  • Is triggered when the cart page loads or when a checkout attempt is made
  • Only returns products that are in stock
  • Requires proper cart token validation
  • Is part of Global-e’s extensions (custom integration only)
This method is called from a Global-e server with the cart token rendered in a cookie or HTML.DOM. The client’s session calculates the price totals. The GetCheckoutCartInfo API returns all cart contents, including customer information for logged-in customers This API only returns products that are in stock. If special handling is required for stock validation on your side, for products in the basket (for example, calls to an external system), Global-e can specify an additional URL for this method, to indicate that stock validation is specifically required. If the cart data is unavailable, the checkout will not open and an error message will appear in the browser development console. The GetCheckoutCartInfo API is only triggered upon the cart page loading, or when a checkout attempt is made.
This API is part of Global-e’s extensions and plug-ins. Merchants do not need to implement this API unless a custom integration in required.
  • Displays totals on the basket page
  • Opens the checkout process
  • Validates order (SendOrderToMerchant)
  • Client-side: Session and Cart token (present in the request URL parameters)
  • Additional methods available with POST only:
    • OrderID - In the request payload
    • Merchant GUID - In request payload (required)
None. The GetCheckoutCartInfo API is only triggered upon the cart page loading, or when a checkout attempt is made. If the GetCheckoutCartInfo request fails to execute on the cart page, the international cart totals will not be calculated or displayed there. If the GetCheckoutCartInfo request fails on the checkout, the checkout will not open. Method/URL Client-side: GET
Parameters
Request Requests can contain more parameters than listed.
NameTypeDescriptionMandatory
countryCodeString2-char ISO code for the country to which shippedNo
currencyCodeString3-char currency code for the country to which shippedNo
merchantCartTokenStringIdentifier used for the cart by the Merchant’s siteNo
Response Returns all cart contents, including customer information for logged-in customers.
Some values are encoded and require the merchant to decode them, for example URLs, addresses, emails, and phone numbers.
NameTypeDescription
CheckoutCartInfoObject CheckoutCartInfoRetrieves cart information
CheckoutCartInfo
Parameter NameTypeDescriptionMandatoryGEM Only
allowMailsFromMerchantBooleanIndicates if the end customer’s consent to receive emails from merchants should be pre-selected in the Global‑e Checkout.TRUE - Customer consents to receive emails.FALSE - Customer does not consent to receive emails.NoYes
billingDetailsObject UserDetailsBilling details of a registered user (if available on the Merchant’s site). If the userDetails property mentioned below is specified, then billingDetails will be ignored.No
clientIPStringThe end customer’s IP addressNo
CountryCodeString2-char ISO country code of the shipping country either pre-defined using geo-location or actively selected by the end customer. This may be different from shippingDetails.CountryCode denoting the registered user’s country.No
cultureCodeStringISO culture code. If specified, the textual properties will be returned in the requested culture’s language if available. Texts in English will be returned by default.No
currencyCodeString3-char ISO currency code denoting the end customer’s currency. If not specified, the Merchant’s default currency will be assumed by default.No
discountListList of DiscountsList of JSON-serialized Discounts to be applied to the cart. Discounts of any type (“cart”, “shipping”, etc.) may be specified.No
doNotChargeVATBooleanIndicates if the end customer must not be charged VAT. This is usually set to TRUE for registered users who have validated their business entity’s VAT Registration Number with the merchant and are therefore VAT exempted.No
freeShippingCouponCodenvarcharMerchant’s free shipping coupon code applied by the end customer.Max length: 50.No
hubIDDecimalIdentifier of the Global‑e’s Local Hub previously returned by API. If not specified, the default Merchant’s Hub will be used instead.No
IncludeVATDecimalOptional for the merchants not supporting browsing integration. The value is returned from CountryCoefficients API.No
isFreeShippingBooleanIndicates if the Merchant offers free international shipping to the end customer.No
loyaltyCodeStringThe loyalty code specified by the end customer (or read from the end customer’s account) on the Merchant’s site.No
LoyaltyPointsObject LoyaltyPointsLoyaltyPoints contains data about the registered user for applying loyalty points on the Checkout page.No
loyaltyPointsEarnedDecimalThe number of loyalty points to be earned for this purchase by the end customer on the Merchant’s site.No
loyaltyPointsSpentDecimalThe number of loyalty points to be spent for this purchase by the end customer on the Merchant’s site.No
loyaltyPointsTotalDecimalThe total number of loyalty points currently available in the end customer’s user account on the Merchant’s site.No
merchantCartHashnvarcharA hash may be optionally generated by the merchant and returned to the merchant with an order API call. This hash may be used for additional cart and order validation purposes on the Merchant’s side. No max length.No
MerchantOrderIdStringThe merchant order id, if it is already known, at the point when the user is still in the cart page on the merchant’s store.NoYes
originalCurrencyCodeString3-char ISO currency code denoting the original currency on the Merchant’s site (before applying country coefficient and FX conversion). If not specified, the Merchant’s default currency will be assumed by default.No
otVoucherAmountDecimalAmount of the one-time voucher in otVoucherCurrencyCode currency.No
otVoucherCodeStringOne-time voucher code for the cart (for applicable platforms).No
otVoucherCurrencyCodeStringOne-time voucher currency used for the amount.No
paymentInstallmentsStringList of available payment instalment amounts.For example: {2,4,6,8} – This indicates that we should allow instalmentsin 2, 4, 6 or 8 instalment options (to be selected by the customer).No
productsListList of ProductList of Product objects (specified in the request body)Yes
rateDataStringCurrency data is used by Global-e to verify the currency rate and to return the value received in the used currency rate.Optional, irrelevant for GetCheckoutCartInfoAPI response
shippingDetailsObject UserDetailsShipping details of a registered user (if available on the Merchant’s site). If the userDetails property is specified, then the shippingDetails will be ignored.If countryCode is not specified, the shipping country must be specified in shippingDetails.CountryCode property.If not specified neither in the countryCode argument nor in shippingDetails.CountryCode property, clientIP argument defined above becomes mandatory and will be used to determine the end user’s shipping country by Global‑e system.No
shippingOptionsListList of ShippingOptionList of JSON-serialized Shipping Options available for local shipping of the order from the Merchant to Global‑e’s Local Hub previously returned by ActiveHubDetails API.If the Global-e integration shipping API has been created and enabled for Global‑e on the Merchant’s site, Global‑e will prefer this Shipping Option when posting the order back to the Merchant’s site (using SendOrderToMerchant API). Therefore, all other shipping APIs available for local shipping may be omitted in shippingOptionsList.No
urlParametersList of KeyValuePairList of JSON-serialized Key:Value pairs denoting the values of the parameters specified in the respective Merchant’s REST API action URLs. For example, to instruct Global‑e to include “en-AU” locale in the SendOrderToMerchantcall for this cart, urlParametersshould include the following KeyValuePair: [{"Key":"locale", "Value":"en-AU"}]. In this example “locale” parameter should be configured for SendOrderToMerchant URL for this merchant on the Global‑e side.No
userDetailsObject CartUserDetailsAll available details of the user including all relevant addresses. If userDetails is not specified, then shippingDetails and billingDetails properties will be used instead. userDetails property can be used by merchants who support multiple shipping and/or multiple billing addresses in the user’s account.No
vatRegistrationNumberStringVAT Registration Number of the end customer’s business entity validated with the merchant.NoYes
webStoreCodenvarcharCode used on the merchant’s side to identify the web store where the current cart is originating. This code should be used when a multi-store setup is on the merchant’s site.Max length: 100No
webStoreInstanceCodeStringCode 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.NoYes
CartUserDetails
Parameter NameTypeDescriptionMandatory
AddressDetailsList of AddressDetailsAll available addresses are taken from the registered customer address bookNo
UserIdStringInternal User identifier on the Merchant’s siteNo
AddressDetails
Parameter NameTypeDescriptionMandatoryGEM Only
Address1StringAddress line 1.NoYes
Address2StringAddress line 2.NoYes
AddressBookIdStringId of the current address from within the address bookNo
AddressBookNameStringName of the current address from within the address bookNo
CityStringCity name.NoYes
CompanyStringCompany nameNoYes
CountryCodeString2-char ISO country codeNoYes
EmailStringE-mail addressNo
FaxStringFaxNo
FirstNameStringFirst nameNo
FirstNameInLocalCultureStringFirst name in local cultureNo
IsBillingBooleanIndicates that the current address can be used as a billing addressNo
IsDefaultBillingBooleanIndicates that the current address is the default billing addressNo
IsDefaultShippingBooleanIndicates that the current address is the default shipping addressNo
IsShippingBooleanIndicates that the current address can be used as a shipping addressNo
LastNameStringLast nameNo
LastNameInLocalCultureStringLast name in local cultureNo
MiddleNameStringMiddle nameNo
Phone1StringPhone #1No
Phone2StringPhone #2No
SalutationStringSalutation or title (e.g. Dr., Mr., etc.).No
StateCodeStringState or province ISO code such as AZ for Arizona (if applicable)NoYes
StateOrProvinceStringState or province nameNo
UserIdNumberStringUser’s personal ID document numberNo
UserIdNumberTypeObject UserIdNumberTypeUser’s personal ID document type (e.g. Passport, ID card, etc.)No
ZipStringZip or postal codeNoYes
UserIdNumberType
Parameter NameTypeDescriptionMandatory
NameStringIdentification document type name
UserIdNumberTypeCodeStringCode denoting a user identification document type (e.g. Passport, ID card, etc.) on the Merchant’s site (to be mapped on the Global‑e side)
Discounts
Parameter NameTypeDescriptionMandatory
CouponCodeStringMerchant Coupon Code used for this discount (applicable to coupon-based discounts only).Max length: 100 chars.No
DescriptionStringDiscount textual description.Length: Unlimited.No
DiscountTypeIntegerOne of the following possible values of DiscountTypeOptionsenumeration denoting a type of discount:
Cart discount - 1
Shipping discount - 2
Loyalty points discount - 3
Duties discount - 4
Checkout Loyalty points discount - 5
Payment charge - 6
No
DiscountValueDecimalDiscount value in end customer’s currency (specified in InternationalDetails.CurrencyCode property for the Merchant.Order, after applying country coefficient, FX conversion, and IncludeVAT.No
NameStringDiscount name.Length: Unlimited.No
OriginalDiscountValueDecimalDiscount value in the currency defined in the CurrencyCode; property of the Merchant.Order; object for the order being submitted to the Merchant.Yes
VATRateDecimalThe VAT rate applied to this discountNo (Required for merchants whose base country has VAT. If not specified, will default to 0.)
ProductCartItemIdStringFor product level discount, match the unique CartItemId line identifier of the respective product in the productList. For cart level discounts, leave this field blank or null.No
CalculationModeIntegerThe mode of calculation:
1 - value in base currency while maintaining ratio to domestic discount
2 - fixed amount in base currency
3 - fixed amount in shopper currency (used for fixed price markets only)
Yes
KeyValuePair
Parameter NameTypeDescriptionMandatory
KeyStringEntity key (for example a URL parameter) used on the Merchant’s site (to be mapped on the Global‑e side)
ValueStringEntity value for the respective Key
LoyaltyPoints
Parameter NameTypeDescriptionMandatory
LoyaltyPointsMaxSpendDecimalThe limit loyalty points that the user can use in this order – if not exists the LoyaltyPointsTotal is taken.No
LoyaltyPointsOriginalValueForEarnDecimalValue of one loyalty point for earn, in Merchant currency – optional if LoyaltyPointsOriginalForEarn exists.No
LoyaltyPointsOriginalValueForSpendDecimalValue of one loyalty point for spending, in Merchant currency – optional if LoyaltyPointsValueForSpend exists.No
LoyaltyPointsTotalDecimalThe total loyalty points the user has on account at the Merchant’s siteNo
LoyaltyPointsValueForEarnDecimalValue of one loyalty point for earn, in customer currency – optional if LoyaltyPointsOriginalValueForEarn exists.No
LoyaltyPointsValueForSpendDecimalValue of one loyalty point for spending, in customer currency – optional if LoyaltyPointsOriginalValueForSpend exists.No
Product
Parameter NameTypeDescriptionMandatory
AttributesList of AttributesThe product’s custom attributes (such as Color, Size, etc.)No
AttributesEnglishList of AttributesThe product’s custom attributes (such as Color, Size, etc.) in EnglishNo
BackOrderDateStringEstimated date for the backordered item to be in stockNo
BrandObject BrandThe product’s brandNo
CartItemIdStringIdentifier of the cart item on the Merchant’s site. This property may be optionally specified in the SendCart method only so that the same value can be posted back when creating the order on the Merchant’s site with the SendOrderToMerchant method.No
CartItemOptionIdStringIdentifier of the child cart item “option” on the Merchant’s site. This value must be specified if the current cart item is related to a parent item (CartItemId must not be specified for this item because this attribute applies only to the “parent” item itself). For example, this item might indicate a package for the parent item in the same cart. This property may be optionally specified in the SendCart method only so that the same value can be posted back when creating the order on the Merchant’s site with the SendOrderToMerchant method.No
CategoriesList of CategoryThe product’s categoriesNo
DeliveryQuantityDecimalThe quantity actually set for delivery for the product (to be used in the Order methods described below, as needed)No
DescriptionStringDescription of the Product
DescriptionEnglishStringDescription of the Product in English
GenericHSCodeStringThe product’s generic HS Code (not country-specific). If specified this property may assist in mapping the product for duties and taxes calculation purposes.No
GiftMessageStringOptional “gift message” text defined by the end customer to be printed on the product.No
HandlingCodeStringCode applicable to the product on the Merchant’s site. This code may be optionally used by the Merchant to trigger a certain business logic when this product is included in the order posted back to the Merchant’s site with the SendOrderToMerchant method.No
HeightDecimalThe product’s height in the Merchant’s default unit of length measure (will be converted to CM).No
HubCodeStringThe Merchant hub code indicates from which hub the product was sent. Note that the HubCode should be mapped to a Global-e hubId on the Global-e side.No
ImageHeightDecimalThe product’s image height in pixelsNo
ImageURLStringThe product’s image URLNo
ImageWidthDecimalThe product’s image width in pixels
IsBackOrderedBooleanBoolean specifying if the product was ordered as a backed ordered item.TRUE - The item is back orderedFALSE - The item is not back ordered. Default FALSE.No
IsBlockedForGlobalEBooleanIndicates if product is available for international shipping.TRUE - The product is not available for international shippingFALSE - The product is available for international shippingNo
IsBundleBooleanIndicates if the product represents a set of products.TRUE - The product represents a set of other products. If a bundled product has non-zero prices specified (i.e. OriginalListPrice, ListPrice, etc.), then all the contained products must have zero prices, and vice versa, to avoid double charging for the same products.FALSE - The product does not represent a set of other products.No
IsFixedPriceBooleanIndicates if the product’s price is fixed by the Merchant, in the default currency for the country.TRUE - The product’s price is fixed. In this case, all price modifications are disabled for this product. Setting fixed prices is only allowed for the Countries where the SupportsFixedPrices flag is set to TRUE.FALSE - The product’s price is not fixed.No
IsVirtualBooleanIndicates if the product represents a virtual product that does not have weight or volume and doesn’t affect shipping calculation in Global‑e checkoutTRUE - The product represents a virtual productFALSE - The product does not represent a virtual productNo
KeywordsStringThe product’s keywordsNo
LengthDecimalThe product’s length in the Merchant’s default unit of length measure (will be converted to CM).No
LineItemOriginalSalePriceDecimalLine item (product in ordered quantity) sale price in the original Merchant’s currency including the local VAT, before applying any price modifications. This property always denotes the price in the default Merchant’s country, regardless of UseCountryVAT for the end customer’s current country. If not specified, will be deemed equal to “OriginalSalePrice* OrderedQuantity”. If specified, will take preference over OriginalSalePrice.No
LineItemSalePriceDecimalLine item (product in ordered quantity) sale price as displayed to the customer, after applying country coefficient, FX conversion and IncludeVAT handling, before rounding rules have been applied. If not specified, will be deemed equal to “SalePrice * OrderedQuantity”. If specified, will take preference over SalePrice.No
ListPriceDecimalProduct list price (before discounts) as displayed to the customer, after applying country coefficient, FX conversion, rounding rule (if applicable) and IncludeVAT handling.Optional in SendCart, SaveProductsBulk
LocalVATRateTypeObject VATRateTypeVAT rate type or class that would be applied to this product if the order was placed by the local customer. This value must be specified if UseCountryVAT for the current Country is TRUE, and therefore the VATRateType property actually denotes the VAT for the target country.No
MetaDataObject ProductMetaDataUsed to hold additional product data such as customer-defined product attributes.No
NameStringName of the Product
NameEnglishStringName of the Product in English
NetVolumeDecimalThe product’s net volume in the Merchant’s default unit of volume measure (will be converted to cubic CM). If specified, this property indicates the net volume of the product, excluding any packaging.No
NetWeightDecimalThe product’s net weight in the Merchant’s default unit of weight measure (will be converted to grams). If specified, this property indicates the net weight of the product, excluding any packaging.No
OrderedQuantityDecimalOrdered quantity for the product (to be used in Checkout / Order methods described below, as needed)No
OriginalListPriceDecimalProduct list price (before any discounts) in the original Merchant’s currency including the local VAT, before applying any price modifications. This property always denotes the product’s price in the default Merchant’s country, regardless of UseCountryVAT for the end customer’s current country.Optional in SendCart, SaveProductsBulk
OriginalSalePriceDecimalProduct sale price in the original Merchant’s currency including the local VAT, before applying any price modifications. This property always denotes the product’s price in the default Merchant’s country, regardless of UseCountryVATfor the end customer’s current country.Optional in SaveProductsList, SaveProductsBulk
OriginCountryCodeString2-char ISO country code of the product’s country of Origin. The Merchant’s country will be assumed if not specified.No
ParentCartItemIdStringIdentifier of the current item’s parent cart item on the Merchant’s site. This value must be specified if the current cart item is related to a parent item (CartItemId must not be specified for this item because this attribute applies only to the “parent” item itself). For example, this item might indicate a custom option (such as a product package) for the parent item in the same cart. This property may be optionally specified in the SendCart method only so that the same value can be posted back when creating the order on the Merchant’s site with the SendOrderToMerchant method.No
PriceCoefficientRateDecimalRate applicable to this Product’sProductClassCode if returned from the CountryCoefficients method.No
ProductClassCodeStringThe product class code is used by the Merchant to classify products to use different country coefficient rates.No
ProductCodeStringSKU code used to identify the product on the Merchant’s site (to be mapped on the Global‑e side)
ProductCodeSecondaryStringSecondary code that may be used to refer to the product on the Merchant’s site. This code may be used in addition to the ProductCode and is not guaranteed to be unique (may be reused for other products as long as the old product is not available on the Merchant’s site any more).No
ProductGroupCodeStringProduct’s group code on the Merchant’s site (to be mapped on the Global‑e side). Usually, this value is a part of the product SKU code denoting a group of similar products (such as “the same product in different s”).No
ProductGroupCodeSecondaryStringSecondary code that may refer to the group of products on the Merchant’s site. This code may be used in addition to the ProductGroupCode and is not guaranteed to be unique (may be reused for other groups as long as the old group is not available on the Merchant’s site anymore).No
SalePriceDecimalProduct sale price as displayed to the customer, after applying country coefficient, FX conversion, rounding rule (if applicable) and IncludeVAT handling.Optional in SaveProductsList, SaveProductsBulk, GetCheckoutCartInfo
SalePriceBeforeRoundingDecimalProduct sale price as displayed to the customer, after applying country coefficient, FX conversion and IncludeVAT handling, before rounding rules have been applied. If not specified, will be deemed equal to SalePrice.No
SalePriceReasonStringReason for the sale price. This property may optionally contain the text definition of the promo that has resulted in the price deduction for this product (such as “10% discount on all shoes”).No
URLStringThe product’s information page URLNo
VATCategoryObject VATCategoryThe product’s VAT category. A product may be assigned to a single VAT category on the Merchant’s site. If available, the respective product’s HS Code should be used as the VAT category for a product.No
VATRateTypeObject VATRateTypeProduct’s VAT rate type or classNo
VolumeDecimalThe product’s volume in the Merchant’s default unit of volume measure (will be converted to cubic CM).Optional, can be used as an alternative for specifying all Height, Width and Length dimensions
WeightDecimalThe product’s weight is in the Merchant’s default unit of weight measure (will be converted to grams). The Merchant’s default product weight will be used if not specified.No
WidthDecimalThe product’s width in the Merchant’s default unit of length measure (will be converted to CM).No
Attributes
Parameter NameTypeDescriptionMandatory
AttributeCodeStringCustom attribute code denoting a Merchant-specific attribute such as size, color, etc. (to be mapped on the Global‑e side)
AttributeTypeCodeStringCode used to identify the attribute type on the Merchant’s site such as “size” for size, “color” for “colour”, etc. (to be mapped on the Global‑e side)
NameStringAttribute name
Brand
Parameter NameTypeDescriptionMandatory
BrandCodeStringBrand code on the Merchant’s site (to be mapped on the Global‑e side)
NameStringBrand name
Category
Parameter NameTypeDescriptionMandatory
CategoryCodeStringCategory code on the Merchant site (to be mapped on the Global‑e side)
NameStringCategory name
MetaData
Parameter NameTypeDescriptionMandatory
AttributesList of AttributesCustomer-defined product attributes that allow the personalisation of the product if supported by the merchant’s site (e.g. engraving)
Attributes
Parameter NameTypeDescriptionMandatory
AttributeCodeStringCustom attribute code denoting a Merchant-specific attribute such as size, color, etc. (to be mapped on the Global‑e side)
AttributeTypeCodeStringCode used to identify the attribute type on the Merchant’s site such as “size” for size, “color” for “colour”, etc. (to be mapped on the Global‑e side)
NameStringAttribute name
VATCategory
Parameter NameTypeDescriptionMandatory
NameStringVAT Category name
VATCategoryCodeStringCode used to identify the VAT category on the Merchant’s site (to be mapped on the Global‑e side)
VATRateType
Parameter NameTypeDescriptionMandatory
NameStringVAT rate type nameNo
RateDecimalVAT rate decimal value
VATRateTypeCodeStringVAT rate type (or class) code on the Merchant’s site (to be mapped on the Global-e side)
ShippingOption
Parameter NameTypeDescriptionMandatory
CarrierStringCarrier’s short name
CarrierNameStringCarrier’s full name
CarrierTitleStringCarrier’s title
CodeStringShipping method code used to identify the shipping option on the Merchant’s site (to be mapped on the Global‑e side)
MethodStringShipping method name
MethodTitleStringShipping method title
MethodDescriptionStringShipping method description
PriceDecimalShipping price in Merchant’s original currency defined in the originalCurrencyCode argument of the respective method call (i.e. SendCart)
UserDetails
Parameter NameTypeDescriptionMandatory
Address1StringAddress line 1No
Address2StringAddress line 2No
CityStringCity nameNo
CompanyStringCompany nameNo
CountryCodeString2-char ISO country codeNo
CountryNameStringCountry nameNo
EmailStringE-mail addressNo
FaxStringFaxNo
FirstNameStringFirst nameNo
FirstNameInLocalCultureStringFirst name in local culture Ex: Kana Japanese dialectNo
LastNameStringLast nameNo
LastNameInLocalCultureStringLast name in local culture Ex: Kana Japanese dialectNo
MiddleNameStringMiddle nameNo
Phone1StringPhone #1No
Phone2StringPhone #2No
SalutationStringSalutation or title (e.g. Dr., Mr., etc.)No
StateCodeStringState or province ISO code such as AZ for Arizona (if applicable)No
StateOrProviceStringState or province nameNo
UserIdStringInternal User identifier on the Merchant siteNo
UserIdNumberStringUser’s personal ID document numberNo
UserIdNumberTypeObject UserIdNumberTypeUser’s personal ID document type (e.g. Passport, ID card, etc.)No
ZipStringZip or postal codeNo
UserIdNumberType
Parameter NameTypeDescriptionMandatory
NameStringIdentification document type name
UserIdNumberTypeCodeStringCode denoting a user identification document type (e.g. Passport, ID card, etc.) on the Merchant’s site (to be mapped on the Global‑e side)
Examples
Response contains CheckoutCartInfo class
Checkout
Stock Validation
When you place an order in Checkout, the Global-e plug-in runs a stock validation based on Centra’s stock to see if the item is available. This process does not occur for pre-order items.
Discounts
The supported discount types described in Applying Discounts apply to the Checkout capabilities as well. Only voucher code discounts are available, and consumers use these codes during Checkout, and discounts are applied when the checkout is complete.