Skip to main content
Implement the four merchant endpoints detailed in the following sections. This Implementation is mandatory. We recommend exposing API methods via HTTPS. Optionally, you can implement additional merchant APIs and APIs on the Global‑e Side.

Special Features and Requirements

  • If some of your products have reduced VAT rates (for example, you are a UK merchant with children’s clothing), set the relevant reduced VAT rates for these products in the HTML data attribute. See Reduced VAT Rate Support.
  • If you require support for product country exceptions (for example, restrict browsing before reaching the Global‑e checkout), set the relevant data-countries for these products in the HTML data attribute. See Product-Specific VAT Rates in the EU and Restrictions.
  • If you require the application of price coefficients to specific product classes (for example, on premium items in specific territories), set the relevant data-pc for these products in the HTML data attribute and the ProductClassCode in the GetCheckoutCartInfo (Global-e to Merchant) API.
  • If you require support for existing logistics accounts, call a Global‑e API method to download the international commercial invoice for the specified order.

GetCheckoutCartInfo (Global-e to Merchant)

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)
  • Server-side: For both GET and POST:
    • Cart token - Request URL parameter (required)
    • Custom parameter - Request URL parameter (optional)
    • Custom header (optional)
    • IP whitelist (optional)
    • HTTP Basic Authentication (optional)
    • JWT (optional)
  • 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 Server-side: GET/ POST (sdefault GET). Global-e can configure your preference.

Parameters

Request Requests can contain more parameters than listed. 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.

CheckoutCartInfo

CartUserDetails

AddressDetails

UserIdNumberType

Discounts

KeyValuePair

LoyaltyPoints

Product

Attributes

Brand

Category

MetaData

Attributes

VATCategory

VATRateType

ShippingOption

UserDetails

UserIdNumberType

Examples

Response contains CheckoutCartInfo class

SendOrderToMerchant (Global-e to Merchant)

This API is part of Global-e’s extensions and plug-ins. Merchants do not need to implement this API unless a custom integration is required.
This API posts the new order or updates the existing order on the merchant’s site. When implementing a Global-e extension or plug-in, this method is required to create the customer order in the merchant’s system, clear the user’s basket, and optionally, reserve the inventory.
  • If order.PaymentDetails are provided, this method also performs the payment and returns the currency and amount actually charged in the Merchant.ResponseInfo.
  • If additional shipping documents are required for merchants that are shipping the order themselves, then it is indicated in AdditionalRequiredDocuments . In that case, the merchant should delay the fulfillment until the documents are ready and provided to the merchant in the SendAdditionalRequiredDocumentsToMerchant webhook.
  • Merchant GUID - In request payload (required)
  • Custom header (optional)
  • IP whitelist (optional)
  • HTTP Basic Authentication (optional)
  • JWT (optional)
There is no retry upon a merchant failure response or timeout. The timeout period is 5 minutes but can be adjusted if necessary. Merchant failure responses or timeouts will trigger an alert to the Global-e NOC team for manual review. Requests that fail to initiate from Global-e side will trigger a retry once a minute for up to 3 attempts, after which an alert will trigger for manual review. Method/URL

Parameters

Request Requests can contain more parameters than listed.

Merchant.Order

OrderCreationSource One of the following possible values of OrderCreationSource enumeration denoting a type of discount:

DTBreakdown

Merchant.Customer

Merchant.CustomerDetails

Merchant.Discount

Merchant.InternationalDetails

DTBreakdown

Merchant.Parcel

Merchant.ParcelProduct

Merchant.OriginalOrder

Merchant.Parcel

Merchant.ParcelProduct

Merchant.PaymentDetails

Merchant.Product

DTBreakdown

Merchant.Brand

Merchant.Category

Merchant.CartProductAttribute

Merchant.ProductAttribute

OrderDocument

OrderPaymentMethod

OrderStatusReason

Response
Some values are encoded and require the merchant to decode them, for example URLs, addresses, emails, and phone numbers.

Merchant.ResponseInfo

Examples

Request Request Sample 1
Request Sample 2

UpdateOrderStatus (Global-e to Merchant)

Updates the order status on the merchant’s site. Only order.OrderId and order.StatusCode members are mandatory for this method. This method is required to support order cancellation when initiated on Global-e’s side. It can also be used for reporting other order status updates as they occur in the Global-e’s system, and reflect them in the Merchant’s system.
  • Merchant GUID - In request payload (required)
  • Custom header (optional)
  • IP whfUpdateOrderStatus (Global-e to Merchant)itelist (optional)
  • HTTP Basic Authentication (optional)
  • JWT (optional)
No automatic retries are attempted. A manual retry can be done by the Global-e support team. Method/URL

Parameters

Requests can contain more parameters than listed. Request

Merchant.Order

OrderCreationSource One of the following possible values of OrderCreationSource enumeration denoting a type of discount:

DTBreakdown

Merchant.Customer

Merchant.CustomerDetails

Merchant.Discount

Merchant.InternationalDetails

DTBreakdown

Merchant.Parcel

Merchant.ParcelProduct

Merchant.OriginalOrder

Merchant.Parcel

Merchant.ParcelProduct

Merchant.PaymentDetails

Merchant.Product

DTBreakdown

Merchant.Brand

Merchant.Category

Merchant.CartProductAttribute

Merchant.ProductAttribute

OrderDocument

OrderPaymentMethod

OrderStatusReason

Response
Some values are encoded and require the merchant to decode them, for example URLs, addresses, emails, and phone numbers.

Merchant.ResponseInfo

Request Body

PerformOrderPayment (Global-e to Merchant)

This API is part of Global-e’s extensions and plug-ins. Merchants do not need to implement this API unless a custom integration is required.
Posts order payment details to the Merchant’s site and perform the payment. Only order.OrderId and order.PaymentDetails classes are mandatory for this method. For Mixed orders, “Subs” is mandatory.
  • Merchant GUID - In request payload (required)
  • Custom header (optional)
  • IP whitelist (optional)
  • HTTP Basic Authentication (optional)
  • JWT (optional)
There is no retry upon a merchant failure response or timeout. The timeout period is 5 minutes and this cannot be adjusted. Requests that fail to initiate from Global-e side will trigger an alert to the Global-e NOC team for manual review. Merchant failure responses or timeouts will trigger an alert to the Global-e NOC team for manual review. Requests that fail to initiate from Global-e side will trigger a retry once a minute for up to 3 attempts after which an alert will trigger for manual review. Method/URL

Parameters

Request Requests can contain more parameters than listed.
Some response values are encoded and require the merchant to decode them, for example URLs, addresses, emails, and phone numbers.

Merchant.Order

OrderCreationSource One of the following possible values of OrderCreationSource enumeration denoting a type of discount:

DTBreakdown

Merchant.Customer

Merchant.CustomerDetails

Merchant.Discount

Merchant.InternationalDetails

DTBreakdown

Merchant.Parcel

Merchant.ParcelProduct

Merchant.OriginalOrder

Merchant.Parcel

Merchant.ParcelProduct

Merchant.PaymentDetails

Merchant.Product

DTBreakdown

Merchant.Brand

Merchant.Category

Merchant.CartProductAttribute

Merchant.ProductAttribute

OrderDocument

OrderPaymentMethod

OrderStatusReason

Examples