Line properties and order data
What Luxe adds to cart lines and, if the merchant turns it on, to orders.
Cart line properties
Underscore keys are hidden by themes. Luxe's Functions never trust a property for price: they re-validate every set.
| Key | On | Meaning |
|---|---|---|
_luxe_kit | Build-your-own and Fixed set lines | The set's id |
_luxe_slots | Build-your-own set lines | The shopper's picks, by group, versioned; missing means the default picks |
_luxe_kit_group | Every line of a Collection set, and of a set bought on subscription (Subscription sets) | Set id and a per-build token |
_luxe_gift | Gift lines | The rung that earned it |
_luxe_addon | Checkout offer and upsell lines | The offer or upsell |
_luxe_src | Any Luxe line | Where it was added, for analytics only |
On each component checkout expands: _luxe_kit, _luxe_slot (group and position, or fixed) and _luxe_pick=default for default picks. With analytics consent the cart carries a _luxe_touch attribute with surface codes and timestamps; it is never used for billing.
Changing a line's purchase option in the Luxe cart adds no property: the line keeps its own properties and stays an ordinary line, never a Luxe line (Subscriptions in the cart).
Includes. With "Show picks in the theme cart" on (the default), Build-your-own and Fixed set lines also carry one visible property, named by the Picks label ("Includes" in English), listing the picks and then the fixed components, for theme carts. Collection set lines do not have it. Display only.
Order data for ERPs and 3PLs
Optional and off by default: Settings > Data and integrations > Order data writes the luxe.kit_summary order metafield (merchant namespace, readable by other apps) once at payment, on paid orders with a Luxe set or gift, and can add an order tag (default luxe-kit). Both need the optional write_orders scope.
{
"schemaVersion": 1,
"order": "#1042",
"currency": "USD",
"kits": [
{
"kitId": "ck_sampler",
"type": "slot_kit",
"title": "Coffee sampler",
"quantity": 1,
"variantId": "gid://shopify/ProductVariant/100",
"sku": "SET-COFFEE-6",
"expanded": true,
"total": "12.00",
"lines": [
{
"lineItemId": "gid://shopify/LineItem/9001",
"variantId": "gid://shopify/ProductVariant/301",
"sku": "COF-ETH-250",
"title": "Ethiopia Guji",
"quantity": 1,
"unitPrice": "12.00",
"discount": "0.00",
"total": "12.00",
"role": "pick"
}
]
}
],
"gifts": []
}| Field | Meaning |
|---|---|
type | slot_kit, fixed_bundle, collection_kit, or kit if a Build-your-own or Fixed set was deleted since |
expanded | False when the set product itself is the line |
role | pick or fixed; absent on Collection set lines |
rungId | On gift lines: the rung that earned the gift |
| Amounts | Decimal strings in the shop currency; a set's total is the sum of its lines |
Since v0.6.0 the summary is schemaVersion 2, which only adds fields, so a reader that accepts any schemaVersion of 1 or more keeps working:
| Field (version 2) | Meaning |
|---|---|
kits[].returnPolicy | items (each item can be returned on its own) or whole (the set returns complete), from the set's return policy |
kits[].group | The set on the order: gid://shopify/LineItemGroup/<id> for an expanded Build-your-own or Fixed set, the _luxe_kit_group value for a Collection set build, null for an unexpanded set product |
kits[].lines[].value | The item's own store price per unit, beside total (what it was paid in the set, which is what a refund returns); null when the variant is gone |
gifts[].thresholdType | subtotal, cart_qty or kit_qty, from the rung's ladder |
gifts[].rungThreshold | The rung's threshold: an amount for subtotal, else a count |
Returns tags. Settings > Data and integrations > Order data > Returns tags can also tag paid orders luxe-return-whole-set (the order holds a set whose return policy is Whole set only) and luxe-gift-unearned (a refund left a gift's rung unmet, with Gifts on return set to Tell me). Both are off by default, need the same write_orders scope and are never billing input. Merchant guide: Returns and Luxe sets.
For returns apps
Each bundle set has a return policy: Items one by one (the default: each item can be returned on its own) or Whole set only. Luxe states it to returns apps; it cannot hold Shopify's own customer-account returns to it, and it never changes a refund.
| On the order | What a returns app can do with it |
|---|---|
luxe-return-whole-set order tag | Require the whole set in a return rule. The tag is per order, so an order with a Whole set only set and loose items is tagged too: prefer the app's "items in a bundle" condition where it has one |
kits[].returnPolicy (whole) | Which set on the order is Whole set only |
kits[].group | Which lines belong to that set: the LineItemGroup of an expanded Build-your-own or Fixed set, or the _luxe_kit_group value every line of a Collection set build carries |
kits[].lines[].total | What the item was paid in the set, after every discount: what a refund of it returns |
kits[].lines[].value | The item's own store price per unit, beside what it was paid in the set |
luxe-gift-unearned order tag | A money-returning refund took the order below the rung that earned a gift. Shopify leaves the gift's discount in place and the shopper keeps the gift; what to do is the merchant's policy |
gifts[] (rungId, thresholdType, rungThreshold) | Which rung earned each gift, and its threshold |
- A partial return never re-prices the items kept: Shopify does not recompute a set's discount when another line is refunded.
kit_summaryis a snapshot at payment; refunds never rewrite it. To react to a refund as it happens, use the Shopify Flow triggers Luxe set items returned and Luxe gift no longer earned (Shopify Flow).- Gift lines keep their
_luxe_giftproperty on the order, so a returns rule can recognise them.