Global-e reuses a set of standard object definitions across many API endpoints. This page collects those shared objects in one place so endpoint guides can link to them instead of repeating the definitions. It grows as more endpoints are migrated.
These are shared, cross-endpoint object definitions. An individual endpoint uses only the subset its own request or response references — always check that endpoint’s reference page for the fields it actually accepts or returns.
Attributes
| Field | Type | Required | Description |
|---|
AttributeCode | String | — | Custom attribute code denoting a Merchant-specific attribute such as size, color, etc. (to be mapped on the Global‑e side) |
AttributeTypeCode | String | — | Code 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) |
Name | String | — | Attribute name |
BillingDetails
| Field | Type | Required | Description |
|---|
Address1 | String | No | Address line 1. Length: Unlimited. |
Address2 | String | No | Address line 2. Length: Unlimited. |
City | String | No | City name. Max length: 500 chars. |
CountryCode | String | No | 2-char ISO country code |
CountryName | String | No | Country name. Max length: 255 chars. |
Email | String | No | E-mail address. Max length: 500 chars. |
Fax | String | No | Fax number. Max length: 250 chars. |
FirstName | String | No | Customer’s first name. Max length: 40 chars. No length validation. The rest will be truncated. |
LastName | String | No | Customer’s last name. Max length: 40 chars. No length validation. The rest will be truncated. |
MiddleName | String | No | Middle name. Max length:40 chars. No length validation. The rest will be truncated. |
Phone1 | String | No | Phone #1. Max length: 250 chars. |
Phone2 | String | No | Phone #2. Max length: 250 chars. |
Salutation | String | No | Salutation or title (e.g. Dr., Mr., etc.). Max length: 500 chars. |
StateCode | String | No | State or province ISO code such as AZ for Arizona (if applicable) |
StateOrProvince | String | No | State or province name. Max length: 500 chars. |
UserIdNumber | String | No | User’s personal ID document number |
UserIdNumberType | object (UserIdNumberType) | No | User’s personal ID document type. Includes the following fields: UserIdNumberTypeCode • Name |
UserId | String | No | Internal User identifier on the Merchant site |
Zip | String | No | Zip or postal code. Max length: 250 chars. |
Brand
| Field | Type | Required | Description |
|---|
BrandCode | String | — | Brand code on the Merchant’s site (to be mapped on the Global‑e side) |
Name | String | — | Brand name |
Category
| Field | Type | Required | Description |
|---|
CategoryCode | String | — | Category code on the Merchant site (to be mapped on the Global‑e side) |
Name | String | — | Category name |
DiscountsList
| Field | Type | Required | Description |
|---|
CouponCode | String | No | Merchant CouponCode used for this discount (applicable to coupon-based discounts only) |
Description | String | No | Discount textual description. Length: unlimited. |
DiscountCode | String | No | Discount code used to identify the discount on the Merchant’s site. This property may be optionally specified in the SendCart API only so that the same value can be posted back when creating the order on the Merchant’s site with the SendOrderToMerchant API. |
DiscountType | Decimal | — | One of the following possible values of DiscountTypeOptions enumeration denoting a type of discount: Cart discount • Shipping discount • Loyalty points discount • Duties discount • Checkout Loyalty points discount • Payment charge |
Name | String | Yes | Discount name. Length: unlimited. |
OriginalDiscountValue | Currency | Yes | Discount value in original Merchant currency including the local VAT, before applying any price modifications. This property always denotes the discount value in the default Merchant’s country, regardless of UseCountryVAT for the end customer’s current country. Max length: 18,4. |
ProductCartItemId | String | No | Identifier of the product cart item related to this discount on the Merchant’s site. This property may be optionally specified in the SendCart API only so that the same value can be posted back when creating the order on the Merchant’s site with the SendOrderToMerchant API. Max length: 50 chars. |
ShippingDetails
| Field | Type | Required | Description |
|---|
Address1 | String | No | Address line 1. Unlimited length. |
Address2 | String | No | Address line 2. Unlimited length. |
City | String | No | City name. Max length: 500 chars. |
CountryCode | String | No | 2-char ISO country code |
CountryName | String | No | Country name. Max length: 255 chars. |
Email | String | No | E-mail address. Max length: 500 chars. |
Fax | String | No | Fax number. Max length: 250 chars. |
FirstName | String | No | First name. Max length: 40 chars. No length validation. The rest will be truncated. |
LastName | String | No | Last name. Max length:40 chars. No length validation. The rest will be truncated. |
MiddleName | String | No | Middle name. Max length:40 chars. No length validation. The rest will be truncated. |
Phone1 | String | No | Phone #1. Max length: 250 chars. |
Phone2 | String | No | Phone #2. Max length: 250 chars. |
Salutation | String | No | Salutation or title (e.g. Dr., Mr., etc.). Max length: 500 chars. |
StateCode | String | No | State or province ISO code such as AZ for Arizona (if applicable). 2 chars. |
StateOrProvince | String | No | State or province name. Max length: 500 chars. |
UserId | Decimal | No | Internal User identifier on the Merchant site |
UserIdNumber | String | No | User’s personal ID document number |
UserIdNumberType | String | No | User’s personal ID document type (e.g. Passport, ID card, etc.) |
Zip | String | No | Zip or postal code. Max length: 250 chars. |
UserIdNumberType
| Field | Type | Required | Description |
|---|
Name | String | — | Identification document type name |
UserIdNumberTypeCode | String | — | Code 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) |
VATRateType
| Field | Type | Required | Description |
|---|
Name | String | No | VAT rate type name |
Rate | Decimal | — | VAT rate decimal value |
VATRateTypeCode | String | — | VAT rate type (or class) code on the Merchant’s site (to be mapped on the Global-e side) |