The formats and examples shown in the tables below are indicative only. They are meant to illustrate which values must correspond to one another across entities (e.g. a
product_id in the Order table must match the product_id in the Product table). The actual format of each reference (IDs, SKUs, etc.) is specific to your shop’s own system and may differ from the examples provided.1. Product
We differentiate Products and Variants:- A Product is a piece of clothing available in different sizes. For instance: the “White T-shirt”
- A Variant refers to a Product’s specific size. For instance: the “White T-shirt in size M”
Catalog Data Fields
Catalog Data Fields
Prices, Stocks & Titles translations
Our solution Similar Products uses prices, stocks, and titles. The best option is to expose a single /product-info endpoint that returns all this information live. It takesproduct_id and market (ISO 3166) as input, and returns for each variant its stock quantity, along with the product’s price_amount (float), price_currency (str), price_discounted_amount (float, empty if not relevant), and the translated title for the requested market language.
Without this endpoint, Similar Products may display out-of-stock sizes, will not show prices, and will always use the same language.
Example response:
2. Order
We define Orders and Order Items:- An Order is the group of Variants a customer buys. For instance: “White T-shirt in size M” + “Pink Dress in size L”
- An Order Item refers to a specific Variant belonging to an order. For instance, from the order above: “Pink Dress in size L” is an Order Item
Order Data Fields
Order Data Fields
3. Return
We define Returns and Return Items in the exact same logic as above.Return Data Fields
Return Data Fields
Global-e returns
Global-e returns
All identifiers refer to the ones used by the Shopify internal order management system:
- order_id: please provide the Shopify order id, not the Global-e order id. This id is notably present at the end of the Shopify order URL (e.g.
https://admin.shopify.com/store/xyz/orders/5781203157062). It should look like5781203157062 - order_line_id must be the Shopify order line item id (see Shopify API documentation). This is not the id of the related variant but the id of the order line that was returned. It should look like
13993313828934. → This might be calledCart item idin the Global-e system
- return_id: if the associated return exists in Shopify (see API documentation), it should look like
14246216007 - return_line_id is analogous to the order line item id, but refers to a line of the return (see API documentation). It looks like
24174166343
- the variant_id is the id of the product variant in the Shopify system (so a product and its size), not the product id. It should look like
42172613361734
Notes
Structure and naming
As a reminder, we enforce some naming and file structure conventions in our SFTP space. Please refer to the SFTP Data Structure Documentation.Best Practices
- Consistency — Maintain consistent field names and formats across all exports
- Completeness — Include all required fields in every export, including out-of-stock variants
- Validation — Validate data before export to ensure quality
- Incremental Updates — Use the
last_modified_datefield to enable efficient processing and ensure fastest updates - Deduplication — Our system handles duplicate records automatically, processing only the most recent version
Questions? If you need clarification on any field requirements or have specific data constraints, please contact our integration team.
