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 |
---|---|---|---|
| Object | 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 |
---|---|---|---|
| Object | 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 |
---|---|---|---|
| Object | 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 |
---|---|---|---|
| Object | 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 |
---|---|---|---|
| String | 2-char ISO country code. If not specified, all the countries supported by the merchant will be returned | No |
| String | ISO culture code. If specified, the textual properties (for example | No |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| List of | List of supported countries, list of object |
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 |
---|---|---|---|
| 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 |
---|---|---|---|
| List of | 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 |
---|---|---|---|
| String | 3-char ISO currency code. If not specified, all the currencies supported by the Merchant will be returned | No |
| 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 | No |
Request
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| List of | 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 |
---|---|---|---|
| String | 3-char ISO currency code. If not specified, the default Merchant’s currency will be used instead | No |
| 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 |
---|---|---|---|
| List of | List of |
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 |
---|---|---|---|
| string | The shopper's IP address |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| Object | The shopper's city. | |
| Object | The shopper's country. | |
| Object | The shopper's IP range. | |
| Object | 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 |
---|---|---|---|
| String | City code (unique in the respective Region). | No |
| String | 2-char ISO country code. | |
| String | Region code (unique in the respective Country) | No |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| Object | 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 |
---|---|---|---|
| List of | 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 |
---|---|---|---|
| String | 2-char ISO country code of the end customer’s shipping country. | |
| String | ISO culture code. If specified, the textual properties (e.g. | |
| List of SKU | List of SKU codes (strings) for the products involved |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| List of | 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 |
---|---|---|---|
| Decimal | Request identifier |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| List of | List of countries related to products, list of ProductCountry objects | |
| 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 |
---|---|---|---|
| String | 2-char ISO country code. If not specified, all the countries supported by the Merchant will be returned | No |
| 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 | No |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| List of | 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 |
---|---|---|---|
| String | 2-char ISO country code. If not specified, rounding rules for all the countries supported by the Merchant will be returned | No |
| 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 |
---|---|---|---|
| List of | 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 |
---|---|---|---|
| String | End customer’s IP address | |
| String | 2-char ISO country code of the end customer’s shipping country | |
| 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 |
| Int64 |
| |
| 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 |
| 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 |
| Decimal | Rate returned from | |
| List of | List of Product objects (specified in the request body) | |
| Int64 | The |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| List of | 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 |
---|---|---|---|
| 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 |
| 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 |
| List of | List of Product objects (specified in the request body) |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| Object | 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 |
---|---|---|---|
| String | Merchants who implement API checkout only, may specify the Cart token returned by the | Either |
| Object | Full cart information. | Either |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| List of | 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 |
---|---|---|---|
| String | 2-char ISO country code of the end customer’s shipping country | |
| List of | List of |
Response
Parameter Name | Type | Description | Mandatory |
---|---|---|---|
| List of | Returns the details for countries for the VAT category specified. |