Skip to main content

Documentation Portal

Browsing Support Methods

Note

These methods are implemented by the Global-e extensions and plug-ins and do not need to be implemented by the brand.

ActiveHubDetails

Returns the shipping and other details of Global‑e’s Local Hub to where the merchant ships orders. The hubId property of the HubDetails object is returned by this method and must be further provided as an argument to the SendCart method.

Method/URL

https://{server_name}/Browsing/ActiveHubDetails

Parameters

Response

Parameter Name

Type

Description

Mandatory

HubDetails

Object HubDetails

Details about Global-e's hub

AppSettings

Returns the lists of client and server-side settings to be used by the Merchant. The original JSON string is returned in the AppSettings.ClientSettings property must be passed back to Global‑e client SDK as received.

The sample string may look like this: {"AllowTracking":{"value":"true"},"Opacity":{"value":"0.8"}}.

Method/URL

https://{server_name}/Browsing/AppSettings

Parameter

Request

Parameter Name

Type

Description

Mandatory

WebStoreCodes

Object WebStoreCodes

Includes web store code and web store instance code to get the merchant app setting for the specific merchant web store instance/domain

No

Return

Parameter Name

Type

Description

Mandatory

AppSetting

Object AppSetting

Details about API version and client/server settings

Example

Response

{
    "WebStoreCode": "default",
    "WebStoreInstanceCode": "QA1"
}
AppVersion

Returns identifiers of the current versions of Global‑e API and of the client-side code that may be referenced by the Merchant’s site to render Global‑e-specific screens such as the Welcome Pop-up and Country Switcher.

Method/URL

https://{server_name}/Browsing/AppVersion

Parameters

Response

Parameter Name

Type

Description

Mandatory

AppVersion

Object AppVersion

Details about API version.

Countries

Returns the list of supported countries including the indication for each country if it is being operated by Global‑e or by the Merchant. If the Merchant’s site already includes its own list of countries, this list must be replaced with the list returned by this method.

Method/URL

https://{server_name}/Browsing/Countries

Parameters

Request

Parameter Name

Type

Description

Mandatory

countryCode

String

2-char ISO country code.

If not specified, all the countries supported by the merchant will be returned

No

cultureCode

String

ISO culture code.

If specified, the textual properties (for example Name) will be returned in the requested culture’s language. Texts in English will be returned by default for the countries where the texts for the requested culture are unavailable or if the cultureCode argument has not been specified.

No

Response

Parameter Name

Type

Description

Mandatory

Country

List of Country

List of supported countries, list of object Country

CountryCoefficients

Returns the list of pricing adjustment settings agreed between Global‑e and the Merchant, for the end customers shipping to the country (if countryCode is specified), or to all the supported countries (if countryCode is not specified).

The list includes both country-level records (where ProductClassCode is empty) and product class-level records (where IncludeVAT is empty but ProductClassCode is not empty).

Method/URL

https://{server_name}/Browsing/CountryCoefficients

Parameters

Request

Parameter Name

Type

Description

Mandatory

countryCode

String

2-char ISO country code. If not specified, all the Country Coefficients for the countries supported by the Merchant will be returned

No

Response

Parameter Name

Type

Description

Mandatory

CountryCoefficient

List of CountryCoefficient

List of country coefficients for calculating prices, list of pricing adjustment settings.

Currencies

Returns the list of supported currencies

Method/URL

https://{server_name}/Browsing/Currencies

Parameters

Request

Parameter Name

Type

Description

Mandatory

currencyCode

String

3-char ISO currency code. If not specified, all the currencies supported by the Merchant will be returned

No

cultureCode

String

ISO culture code. If specified, the textual properties (i.e. Name) will be returned in the requested culture’s language. Texts in English will be returned by default for the currencies where the texts for the requested culture are unavailable or if the cultureCode argument has not been specified

No

Request

Parameter Name

Type

Description

Mandatory

Currency

List of Currency

List of currencies

CurrencyRates

Returns the list of updated rates between the source and the target currency (if targetCurrencyCode is specified) or all the supported currencies (if targetCurrencyCode is not specified).

Method/URL

https://{server_name}/Browsing/CurrencyRates

Parameters

Request

Parameter Name

Type

Description

Mandatory

sourceCurrencyCode

String

3-char ISO currency code. If not specified, the default Merchant’s currency will be used instead

No

targetCurrencyCode

String

3-char ISO currency code. If not specified, all the rates for the currencies supported by the Merchant will be returned

No

Response

Parameter Name

Type

Description

Mandatory

CurrencyRate

List of CurrencyRate

List of CurrencyRate objects.

LocationByIp

Returns the user’s geo-location by IP address. The merchant’s default location is returned if an IP address cannot be found (for example if a private network IP address has been specified).

The merchant-side caching policy defined by this method should be applied to the whole IP range returned for the IP address specified.

Method/URL

https://{server_name}/Browsing/LocationByIP

Parameter

Request

Parameter Name

Type

Description

Mandatory

IP

string

The shopper's IP address

Response

Parameter Name

Type

Description

Mandatory

City

Object City

The shopper's city.

Country

Object Country

The shopper's country.

IPRange

Object IPRange

The shopper's IP range.

Region

Object Region

The shopper's region.

LocationDefaultCulture

Returns the default Culture for the user’s location specified.

Method/URL

https://{server_name}/Browsing/LocationDefaultCulture

Parameters

Request

Parameter Name

Type

Description

Mandatory

cityCode

String

City code (unique in the respective Region).

No

countryCode

String

2-char ISO country code.

regionCode

String

Region code (unique in the respective Country)

No

Response

Parameter Name

Type

Description

Mandatory

Culture

Object Culture

Culture definition for this location.

LocationsDefaultCulturesList

Returns the list of locations and their respective default Cultures. This method may be used as an alternative for calling LocationDefaultCulture for every user’s geo-location returned by the LocationByIp method.

If LocationsDefaultCulturesList returns no LocationCulture item matching Country, Region, and City determined by LocationByIp, the fallback is to use the LocationCulture item with matching Country, matching Region, and empty value for City.

If there is no LocationCulture with the matching Country and Region as well, the fallback is to use the LocationCulture item with a matching Country, empty value for Region, and empty value for City.

Method/URL

https://{server_name}/Browsing/LocationsDefaultCulturesList

Parameters

Response

Parameter Name

Type

Description

Mandatory

LocationCulture

List of LocationCulture

Returns the list of locations and their respective cultures

ProductCountryS

Returns the list of ProductCountry objects for the list of products specified.

Method/URL

https://{server_name}/Browsing/ProductCountryS

Parameter

Request

Parameter Name

Type

Description

Mandatory

countryCode

String

2-char ISO country code of the end customer’s shipping country.

cultureCode

String

ISO culture code. If specified, the textual properties (e.g. RestrictionMessage) will be returned in the requested culture’s language if available. Texts in English will be returned by default

productCode

List of SKU

List of SKU codes (strings) for the products involved

Response

Parameter Name

Type

Description

Mandatory

ProductCountry

List of ProductCountry

List of countries and their details for specified products

RecentProductCountryS

Returns the list of ProductCountry objects requested by the Merchant since requestId is specified.

This method may be used by the Merchants to load to their local “cache” ProductCountries storage, product “country exceptions” (product/country combinations that have commercial or regulatory country-specific restrictions, as well as any non-standard VAT rates that should be applied to the respective products in the respective EU countries).

For the first call to RecentProductCountryS, requestId=0 must be specified.

If any ProductCountry object record returned by RecentProductCountryS API is not "restricted", not "forbidden", and VATRateType's rate is equal to the respective country’s default VATRateType's rate, this indicates that this ProductCountry is “reverted” to “default” (no restrictions and default country VAT rate). In such a case, this ProductCountry should not be created in the local "cache" ProductCountries storage. If this ProductCountry already exists in the local "cache" storage, then it has to be deleted from there. Note that the IsForbidden flag actually denotes global restriction that is applied to ALL countries for the respective product. So if IsForbidden is set, it will be set for all countries, although in Global‑e core it’s actually a Product level flag (rather than ProductCountry level).

Method/URL

https://{server_name}/Browsing/RecentProductCountryS

Parameter

Request

Parameter Name

Type

Description

Mandatory

requestID

Decimal

Request identifier

Response

Parameter Name

Type

Description

Mandatory

ProductCountry

List of ProductCountry

List of countries related to products, list of ProductCountry objects

RequestID

Decimal

Request identifier

Regions

Returns the list of regions (states or provinces) optionally filtered by Country. The list might include only the regions for the countries where specifying a region in address is mandatory (IsStateMandatory = true).

Method/URL

https://{server_name}/Browsing/Regions

Parameters

Request

Parameter Name

Type

Description

Mandatory

countryCode

String

2-char ISO country code. If not specified, all the countries supported by the Merchant will be returned

No

cultureCode

String

ISO culture code. If specified, the textual properties (i.e. Name) will be returned in the requested culture’s language. Texts in English will be returned by default for the regions where the texts for the requested culture are unavailable or if the cultureCode argument has not been specified

No

Response

Parameter Name

Type

Description

Mandatory

Region

List of Region

Returns the list of regions (states or provinces), list of Region objects.

RoundingRules

Returns the list of rounding rules, optionally filtered by currency and country

Method/URL

https://{server_name}/Browsing/RoundingRules

Parameters

Request

Parameter Name

Type

Description

Mandatory

countryCode

String

2-char ISO country code. If not specified, rounding rules for all the countries supported by the Merchant will be returned

No

currencyCode

String

3-char ISO currency code. If not specified, rounding rules for all the currencies supported by the Merchant will be returned

No

Response

Parameter Name

Type

Description

Mandatory

RoundingRule

List of RoundingRule

Returns list of rounding rules for currency.

SaveProductsList

Saves product data on the Global‑e system and returns the list of matching ProductCountry objects for the list of products specified. The caller is responsible for calling this method for every product not found (or invalidated) in the local cache on the Merchant side. Calling this method as soon as possible will allow Global‑e to map the products to their respective customs category and will therefore allow guaranteed landed cost offering for these products. Therefore, this method should be called when creating or updating the products on the Merchant’s back end as well.

Method/URL

https://{server_name}/Browsing/SaveProductsList

Parameters

Request

Parameter Name

Type

Description

Mandatory

clientIP

String

End customer’s IP address

countryCode

String

2-char ISO country code of the end customer’s shipping country

cultureCode

String

ISO culture code. If specified, the textual properties (e.g. RestrictionMessage) will be returned in the requested culture’s language if available. Texts in English will be returned by default.

No

includeVAT

Int64

IncludeVAT value returned from CountryCoefficients method

inputDataCultureCode

String

ISO culture code. Denotes the culture for the products’ textual properties being saved (e.g. Description). If not specified, the Merchant’s default culture will be assumed by default.

No

originalCurrencyCode

String

3-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

priceCoefficientRate

Decimal

Rate returned from CountryCoefficients method

productsList

List of Product

List of Product objects (specified in the request body)

roundingRuleId

Int64

The RoundingRuleId value returned from the RoundingRules method

Response

Parameter Name

Type

Description

Mandatory

ProductCountry

List of ProductCountry

List of countries and their details for specified products

Example

Request

[{
        "ProductCode": "1020872",
        "Name": "Lanolin",
        "Description": "Breast%20Feeding%20Ointment",
        "GenericHSCode": "",
        "OriginCountryCode": "",
        "Weight": "1.0000",
        "Height": null,
        "Length": null,
        "Volume": "60",
        "ImageURL": "\/a\/3\/a3c9ef_ece3bec0467310603bce72e9a58e33d3.jpg",
        "ImageHeight": "",
        "ImageWidth": "",
        "ListPrice": "25.0000",
        "OriginalListPrice": "17.7000",
        "SalePrice": "15.0000",
        "OriginalSalePrice": "17.7000",
        "VATRateType": {
            "VATRateTypeCode": 1,
            "Name": "Low",
            "Rate": "18.0000"
        },
        "VATCategory": {
            "VATCategoryCode": "640211",
            "Name": "Ski-boots"
        },
        "Brand": {
            "BrandCode": "7",
            "Name": "Brand2"
        },
        "Categories": [{
                "CategoryCode": "3",
                "Name": "Maternity"
            }
        ],
        "Attributes": [{
                "AttributeCode": "c034",
                "Name": "Red",
                "AttributeTypeCode": "color"
            }, {
                "AttributeCode": "s23",
                "Name": "XXL",
                "AttributeTypeCode": "size"
            }
        ]
    }
]
SaveProductsBulk

Saves the product data on the Global‑e system. This method is designated to be called from a Merchant’s back-end ERP system before the products are published on the Merchant’s website, to provide the data for duties and taxes calculation as soon as possible. Therefore, no end customer-specific information is expected to be provided (unlike in the SaveProductsList method mentioned in the Browsing section of this document).

Method/URL

https://{server_name}/Bulk/SaveProductsBulk

Parameters

Request

Parameter Name

Type

Description

Mandatory

inputDataCultureCode

String

ISO culture code. Denotes the culture for the products’ textual properties being saved (e.g. Description). If not specified, the Merchant’s default culture will be assumed by default

No

originalCurrencyCode

String

3-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

productLists

List of Product

List of Product objects (specified in the request body)

Response

Parameter Name

Type

Description

Mandatory

ResponseInfo

Object ResponseInfo

Provides details regarding the API call response

Example

Request

[
  {
    "ProductCode":"1020872",
    "Name":"Lanolin",
    "Description":"Breast%20Feeding%20Ointment",
    "GenericHSCode":"",
    "OriginCountryCode":"",
    "Weight":"1.0000",
    "Height":null,"Length":null,
    "Volume":"60",
    "ImageURL":"\/a\/3\/a3c9ef_ece3bec0467310603bce72e9a58e33d3.jpg",
    "ImageHeight":"",
    "ImageWidth":"",
    "ListPrice":"25.0000",
    "OriginalListPrice":"17.7000",
    "SalePrice":"15.0000",
    "OriginalSalePrice":"17.7000",
    "VATRateType":{
      "VATRateTypeCode":1,
      "Name":"Low",
      "Rate":"18.0000"},
      "Brand":{
        "BrandCode":"7",
        "Name":"Brand2"
      },
      "Categories":[
         {
           "CategoryCode":"3",
           "Name":"Maternity"
         }
      ],
      "Attributes":[
         {
           "AttributeCode":"c034",
           "Name":"Red",
           "AttributeTypeCode":"colo
         },
         {
           "AttributeCode":"s23",
           "Name":"XXL",
           "AttributeTypeCode":"size"
         }
       ]
   }
]
ShippingOptions

Returns all available shipping options for the cart information specified either by cartToken or by including all the relevant checkoutCartInfo details.

Method/URL

https://{server_name}/Browsing/ShippingOptions

Parameters

Request

Parameter Name

Type

Description

Mandatory

cartToken

String

Merchants who implement API checkout only, may specify the Cart token returned by the SendCart method preceding the current method call. In this case, all other arguments will be ignored and the information stored in the respective Cart will be used instead

Either cartToken or checkoutCartInfo must be specified.

checkoutCartInfo

Object CheckoutCartInfo

Full cart information.

Either cartToken or checkoutCartInfo must be specified.

Response

Parameter Name

Type

Description

Mandatory

CheckoutShippingOption

List of CheckoutShippingOption

List of shipping options

Example

Request for CheckoutCartInfo

[
  {
        "ProductCode": "1020872",
        "Name": "Lanolin",
        "Description": "Breast%20Feeding%20Ointment",
        "GenericHSCode": "",
        "OriginCountryCode": "",
        "Weight": "1.0000",
        "Height": null,
        "Length": null,
        "Volume": "60",
        "ImageURL": "\/a\/3\/a3c9ef_ece3bec0467310603bce72e9a58e33d3.jpg",
        "ImageHeight": "",
        "ImageWidth": "",
        "ListPrice": "25.0000",
        "OriginalListPrice": "17.7000",
        "SalePrice": "15.0000",
        "OriginalSalePrice": "17.7000",
        "VATRateType": {
            "VATRateTypeCode": 1,
            "Name": "Low",
            "Rate": "18.0000"
        },
        "Brand": {
            "BrandCode": "7",
            "Name": "Brand2"
        },
        "Categories": [{
                "CategoryCode": "3",
                "Name": "Maternity"
            }
        ],
        "OrderedQuantity": 1
    }
]
VATCategoryCountryS

Returns the list of VATCategoryCountry objects for the list of VAT categories specified.

Method/URL

https://{server_name}/Browsing/ProductCountryS

Parameter

Request

Parameter Name

Type

Description

Mandatory

countryCode

String

2-char ISO country code of the end customer’s shipping country

vATCategoryCode

List of VATCategory

List of VATCategory codes (strings) for the VAT Categories involved. If not specified, returns the full list of VATCategoryCountry records for this country.

Response

Parameter Name

Type

Description

Mandatory

VATCategoryCountry

List of VATCategoryCountry

Returns the details for countries for the VAT category specified.