These pages list the exact data fields available to hosted Vascula themes. Add a root name such as product to a section's ctx_needs, then read it directly as product.title in the template. The ctx. prefix shown here identifies the public contract; do not include that prefix in a Vascula expression. Required fields are present whenever their containing object is present. Optional fields may be absent, and nullable fields may be present as null. [] marks an array item and {key} marks a key selected at runtime. Named types such as Price and Media are detailed on Shared data shapes.
ctx.cart#
The current cart. Header use receives counts; rich cart surfaces receive line, price, discount, limit, and shipping data. A line whose product or variant can no longer be bought here (deleted, archived, unpublished, variant removed) is removed from the cart when a rich surface reads it; item_count then counts only the lines shown, and form_notice tells the shopper once. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
Array of object |
Optional |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
String |
Optional |
|
|
Number |
Optional |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Timestamp |
Optional |
|
|
String |
Optional |
|
|
String |
Optional |
|
|
String |
Optional |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Optional |
|
|
String |
Required |
The discount's offer label in the shopper's language: the name shoppers see for it, never the merchant's own discount name. |
|
Decimal string |
Required |
|
|
String |
Optional |
|
|
String |
Optional |
|
|
String |
Required |
|
|
Decimal string |
Optional |
|
|
String |
Required |
|
|
Number |
Optional |
|
|
Object |
Optional |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Money input |
Optional |
|
|
Money input |
Optional |
|
|
Boolean |
Required |
|
|
Integer |
Optional |
max_quantity_enabled only: the most items an order may have (inclusive). |
|
Boolean |
Required |
|
|
Money input |
Optional |
|
|
Boolean |
Required |
|
|
Integer |
Optional |
min_quantity_enabled only: the fewest items an order may have (inclusive). |
|
Boolean |
Required |
|
|
Integer |
Required |
The cart's total item quantity, the figure the quantity limits compare. |
|
Integer |
Optional |
above_maximum_quantity only: how many items to remove. |
|
String |
Optional |
Only when the quantity is outside the limits: the notice in the shopper's language, for example "Orders need at least 5 items. Add 2 more items to check out." Print it as given. |
|
Integer |
Optional |
below_minimum_quantity only: how many more items the cart needs. |
|
Money input |
Optional |
|
|
Boolean |
Required |
Whether the order value (subtotal after discounts) and the item quantity are both within the market's limits. Checkout refuses an order outside them. |
|
Boolean |
Optional |
Rich cart only. Whether checkout can take this cart as it is: it has items, no line has an issue, and the total and item quantity are within the market's checkout limits. Disable the checkout button while false and show what to change (issues, checkout_limits). Checkout applies the same rule. |
|
Array of string |
Optional |
|
|
String |
Optional |
|
|
Array of object |
Optional |
|
|
Object |
Optional |
|
|
Array of object |
Required |
|
|
Cart media or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
True when the shopper must pick a variant first: link to |
|
String |
Required |
|
|
Presented money or null |
Required; may be null |
The variant's price, or the product's lowest variant price when |
|
URL |
Required |
|
|
Integer or null |
Required; may be null |
The exact variant to add; null when the set names a whole product with variants. |
|
Presented money or null |
Required; may be null |
|
|
String |
Required |
|
|
String |
Required |
The discount's offer label in the shopper's language: the name shoppers see for it, never the merchant's own discount name. |
|
String |
Required |
|
|
String |
Required |
|
|
Object |
Optional |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Presented money |
Optional |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
Decimal string |
Required |
Signed displayed discount: subtotal minus discounted total. A tax-rate threshold can make this negative. |
|
String |
Optional |
|
|
Boolean |
Required |
|
|
String |
Optional |
Nonzero effect on the displayed total, including its sign: minus for savings, plus for a tax adjustment. Render directly without adding a sign. |
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
The discount's offer label in the shopper's language: the name shoppers see for it, never the merchant's own discount name. |
|
String |
Optional |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Object |
Optional |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
Money input |
Required |
|
|
Money input |
Required |
|
|
Money input |
Required |
|
|
Array of object |
Optional |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
String |
Required |
The gift discount's offer label in the shopper's language, never the merchant's own discount name. |
|
String |
Required |
|
|
Object or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Cart media or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Object or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Cart media or null |
Required; may be null |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Optional |
Rich cart only. The lines checkout cannot take as they are, in cart order; empty when none. |
|
String |
Required |
The reason in the shopper's language (items[].availability_reason_label). |
|
String |
Required |
The line (items[].line_id) to update or remove. |
|
Integer |
Required |
|
|
Integer |
Required |
The quantity in the cart. |
|
Integer or null |
Optional; may be null |
insufficient_stock only: how many can be bought now; set the line to it to fix the line. Null when stock is not the limit. |
|
String |
Required |
Why checkout cannot take the line: out_of_stock, insufficient_stock or not_at_pickup_location (items[].availability_reason). Lines whose product or variant is gone are removed from the cart instead. |
|
Integer or null |
Optional; may be null |
|
|
Integer |
Required |
|
|
Array of object |
Optional |
|
|
String or null |
Required; may be null |
|
|
String |
Optional |
|
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
Object or null |
Required; may be null |
|
|
Timestamp or null |
Required; may be null |
The scheduled send time (RFC 3339 in the store's timezone with its offset), for machines such as |
|
String or null |
Required; may be null |
deliver_at ready to show: store time with the store's timezone named, in the shopper's language, the way the country they shop from writes dates, such as "Fri, Oct 30, 9:00 AM (Hong Kong Time)"; the year appears when it is not this year. Null when no schedule was chosen. Print it as given. |
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
E.164, for machines (tel: links). Show phone_display. |
|
String |
Optional |
The phone in its country's international format, such as +852 9123 4567; present when phone is set. |
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Presented money or null |
Required; may be null |
|
|
String |
Required |
|
|
Presented money or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Object or null |
Required; may be null |
Never null: a line whose product or variant is gone is removed from the cart before themes see it. |
|
Integer |
Required |
|
|
Cart media or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Line properties or null |
Required; may be null |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
Integer or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
Presented money or null |
Required; may be null |
|
|
Presented money or null |
Required; may be null |
|
|
Boolean |
Required |
False for items that don't need shipping (services, digital goods, tickets, gift cards). |
|
Object |
Optional |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Cart media |
Optional |
|
|
Integer |
Required |
|
|
Money input |
Optional |
|
|
String or null |
Optional; may be null |
|
|
String or null |
Optional; may be null |
|
|
URL |
Optional |
The shopper's own design for a personalised line: an app attached a file to it (a line artifact), and this store-domain address shows that app's preview of it. Show it instead of the product or variant image when present; absent for every other line. The image is private to this shopper's cart: never cache it in a shared place or put it in links. |
|
Presented money or null |
Required; may be null |
|
|
Presented money or null |
Required; may be null |
Null when the item has no price in the cart currency; guard it before | money. |
|
Object or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Cart media or null |
Required; may be null |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
String ( |
Optional |
The cart's shopping mode: the whole cart is delivered, or collected at pickup_location. A line with no stock at the pickup location reports available_for_sale false with availability_reason not_at_pickup_location; a line asking for more than the location holds reports insufficient_stock, with quantity_available giving what it holds. availability_reason_label is the shopper message for either: print it, not the reason code. |
|
String |
Optional |
Rich cart only. The shopper's note for the store; empty when none. Set with the cart_note_update action; checkout places it on the order. |
|
Integer |
Optional |
Rich cart only. The longest note allowed, in characters (Unicode code points): use it as the textarea maxlength. |
|
Array of object |
Optional |
Rich cart only. The enabled optional checkout fees of the cart's current market, in the store's order; empty when it has none. Select with the cart_fee_select action. Checkout prices, taxes and charges them for the delivery market. |
|
Presented money |
Optional |
Fixed fees only: the amount in the cart currency, before tax, per order or per item as apply_per says. |
|
Boolean |
Required |
Whether this cart meets the fee's conditions (chosen products or collections, order subtotal range). When false, show the fee disabled with unavailable_reason, or hide it; a choice already made is kept and charged once the cart meets them. |
|
String ( |
Required |
order: charged once; item: charged for each item in the order. |
|
String |
Required |
The text the shopper saved for this fee; empty when none. |
|
String |
Required |
Fee description set by the store; empty when none. |
|
String ( |
Required |
fixed: a set amount; percent: a share of the order subtotal, worked out at checkout. |
|
String |
Required |
Send as fee_id to the cart_fee_select action. |
|
String |
Required |
Fee name set by the store. |
|
Decimal string |
Optional |
Percent fees only: the percentage as a decimal string, for example "2.5". |
|
Presented money |
Optional |
Percent fees with a maximum only: the most the fee charges, in the cart currency. |
|
Boolean |
Required |
Whether the shopper chose this fee. Checkout starts with the chosen fees selected. |
|
Object |
Optional |
Only for a fee that asks the shopper for text (a gift message): how to ask for it. Send the text with the cart_fee_select action (selected=true and text). |
|
Integer |
Required |
The longest text allowed, in characters (Unicode code points): use it as the input maxlength. |
|
String |
Required |
The field's label in the shopper's language (the store's prompt, or "Message"). |
|
Boolean |
Required |
Whether checkout needs the text before the order can be placed when the fee is chosen. |
|
String |
Optional |
Only when applies is false: why, in the shopper's language, for example "Available on orders of ₹499.00 or more" or "Available for selected products". |
|
Pickup location or null |
Optional; may be null |
The location the cart is collected from in pickup mode; null for delivery. In pickup mode the cart is taxed at this location (as checkout taxes the order) and nothing is shipped: total.tax_display has status exact, and its inclusive amount is the total checkout will charge. No shipping or duty note applies. |
|
Object |
Optional |
Rich cart only. The total's tax and duty notes from the market's setup for the shopper's country, each on its own (null when it does not apply; all null for an empty cart), so the theme shows the ones the merchant chose. Print each as given. |
|
String or null |
Required; may be null |
The duty note: who pays import duties (on delivery, at checkout or included; at checkout only where the destination has an enabled duty rule in the shopper's currency, otherwise on delivery), for example "Import duties and taxes may be due on delivery." Null unless a delivered item ships into the shopper's country from another one, or when the merchant emptied it in storefront text. |
|
String or null |
Required; may be null |
The tax note: what the cart total says about tax (included, estimated, excluded or calculated at checkout), for example "Tax included." Null where no tax is charged on it, or when the merchant emptied it in storefront text. |
|
Object or null |
Optional; may be null |
Rich cart only. What a theme needs to estimate shipping, tax, duties and cash on delivery for the cart before checkout: the countries of the shopper's market and their state and postal code fields. POST the chosen country_code, province_code and postal_code to url (the cart_estimate action) and show its answer. Null when there is nothing to estimate: an empty cart, a cart collected in store (mode pickup), or a market with no countries. |
|
Array of object |
Required |
The countries the shopper's market sells to, in the shopper's language; selected marks the shopper's current country. Only these can be estimated: another country has other prices. |
|
String |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object keyed by name |
Required |
Per country code, the address fields an estimate uses, in the order the country writes them: province_code (with its options) where the country's addresses name a state, and postal_code where it has postal codes. Same shape as customer.address_form.fields_by_country. A country with neither has an empty list. |
|
Array of object |
Dynamic key |
|
|
String |
Required |
The autocomplete token for the input. |
|
String |
Required |
The keyboard to show: text, numeric or tel. |
|
String |
Required |
The address field and the input name to post it under: country_code (always first), then first_name, last_name, company, address1, address2, district, city, province_code, postal_code in the country's order (each only where the country's address has it), then phone. |
|
String |
Required |
The field label in the shopper's language: the store's Storefront Messages text where the store customized it, else the country's own word (Postcode, PIN code, Prefecture...). |
|
Integer |
Required |
The longest value the platform accepts. |
|
Array of object |
Optional |
The only accepted values, when the field is a fixed list (province: value is the ISO 3166-2 code such as IN-HR, label its name in the shopper's language). Post the value; show the label. The country_code field carries no options: build its select from address_form.countries. Changing the country changes the other fields: render that country's list. |
|
String |
Required |
|
|
String |
Required |
|
|
String |
Optional |
A regular expression the whole value must match, when the country has one (postal codes). |
|
String |
Optional |
A placeholder for the input (the postal code field gives an example postal code). |
|
Boolean |
Required |
Whether the address cannot be saved without this field, for this country. |
|
Integer |
Required |
Fields with the same row belong side by side on one line, in the order the country writes an address. |
|
Object |
Required |
The postal code → state lookup, as in customer.address_form: fill the state from a postal code for its countries. |
|
Array of string |
Required |
The countries whose postal codes the lookup knows, among those this storefront sells to. Today only India (IN), from the India Post PIN directory; the list is empty when the storefront does not sell to India. Look up only for these countries. |
|
URL |
Required |
Where to look up the state for a postal code: GET it with country_code and postal_code query parameters. A known code answers 200 with province_code (the ISO 3166-2 code to select in the province_code field) and province_name (its name in the shopper's language); an unknown code answers 404. Fill the state from the answer and leave it for the shopper to change. |
|
URL |
Required |
Where to POST an estimate (the cart_estimate action) with country_code, province_code and postal_code, the CSRF token in the X-CSRF-Token header. The answer is JSON; see the cart_estimate action. |
|
Presented money |
Optional |
|
|
Presented money |
Optional |
|
|
Integer |
Required |
ctx.shopping#
How the shopper is shopping: delivery, or pickup at one store location. In pickup mode every stock figure (product, card, filter, search, cart) is that location's stock, and checkout skips shipping. Switch with the shopping_mode_set action; shop.pickup_locations lists the locations offered to this shopper. A pickup location outside the shopper's market (or one that stopped offering pickup) resets the mode to delivery; on that request notice carries the message to show the shopper, and is null otherwise. In pickup mode catalog_notice names the location the catalog is shown for ("Showing products stocked at …" when pickup_location.stocked_only, else "Showing stock at …"): show it with a way to change the location wherever products are listed; it is null for delivery. Available on every storefront route. Declare it in ctx_needs before reading it.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
String or null |
Required; may be null |
|
|
String ( |
Required |
|
|
String or null |
Required; may be null |
|
|
Boolean |
Required |
|
|
Pickup location or null |
Required; may be null |
ctx.express#
Express checkout (wallet buttons such as Apple Pay and Google Pay) for the purchase on this page: on a product page the routed product's selected variant and quantity (the cart is untouched), on the cart page the cart, and in global chrome (a cart drawer) the cart on every page, refreshed with the drawer. Print ctx.express.slot where the buttons go, typically in an "Express checkout" block under Add to cart or Checkout, and nothing else for it. The slot is platform markup that the platform's own script turns into wallet buttons: themes never contain wallet code and must not restyle, move or remove its children. On a product page the script reads the selected variant and quantity from the page's cart_add form for ctx.product.id, and hides the buttons while a selection cannot use express checkout (variant_reasons, keyed by variant id) or the form carries line properties. When available is false the slot is empty; reason (a code) and reason_label (in the shopper's language) say why, for the theme editor or a short note. The buttons also stay hidden on a device without a wallet. Nothing here varies per visitor beyond market, currency, language and shopping mode, so pages stay cacheable. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
Boolean |
Required |
|
|
String ( |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
HTML |
Required |
|
|
String ( |
Required; may be null |
|
|
Object keyed by name |
Required |
|
|
String ( |
Dynamic key |
|
|
Array of object |
Required |
|
|
String ( |
Required |
|
|
String |
Required |
ctx.wishlist#
The visitor's wishlist state and, for rich surfaces, its sellable product rows. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
Boolean |
Required |
|
|
String or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Array of object |
Optional |
|
|
String or null |
Required; may be null |
|
|
String |
Optional |
|
|
Boolean |
Required |
|
|
String |
Optional |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Presented money |
Optional |
|
|
Object or null |
Required; may be null |
|
|
String or null |
Optional; may be null |
|
|
String or null |
Optional; may be null |
|
|
Boolean |
Optional |
|
|
String or null |
Optional; may be null |
|
|
URL or null |
Optional; may be null |
|
|
Array of object |
Optional |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
URL |
Required |
|
|
Variant or null |
Optional; may be null |
|
|
Object or null |
Optional; may be null |
|
|
String or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
String ( |
Required |
|
|
String |
Optional |
The 3D file's type, on model_3d items only: |
|
URL |
Optional |
On model_3d items only: the platform's |
|
Object or null |
Required; may be null |
|
|
URL |
Required |
|
|
URL |
Required |
|
|
Integer or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Integer |
Optional |
|
|
String |
Optional |
|
|
Boolean |
Optional |
|
|
Object or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
Boolean |
Required |
|
|
URL |
Required |
|
|
Metafields |
Optional |
|
|
Array of card offer |
Optional |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
String or null |
Required; may be null |
|
|
Object or null |
Required; may be null |
The option's image as media (url, alt_text, width, height): for image attributes, so a swatch can carry alt text and reserve the photo's own shape. Null when the option has no image. |
|
String or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
String ( |
Required |
|
|
String |
Optional |
The 3D file's type, on model_3d items only: |
|
URL |
Optional |
On model_3d items only: the platform's |
|
Object or null |
Required; may be null |
|
|
URL |
Required |
|
|
URL |
Required |
|
|
Integer or null |
Required; may be null |
|
|
String or null |
Required; may be null |
The option's image file (image attributes); null when it has none. The same file as image.url. |
|
String |
Required |
|
|
String |
Required |
|
|
Object or null |
Optional; may be null |
|
|
String |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Object or null |
Optional; may be null |
The lowest price paid in the 30 days before the current price took effect ({amount, currency_code}, for the money filter); the current price itself is not counted, so a price that was as low earlier in that window shows that earlier price. Shown next to a price reduction as its reference price, for example "Lowest price in the last 30 days: {{ price.lowest_price_30d | money }}" when on_sale. On product pages (the product and its variants) and on product cards (the price the card shows: its variant's when it shows one, such as the matching variant of a filtered list), read for the whole list at once when a template first uses it; null when no earlier price is recorded. |
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Array of object |
Optional |
The price paid over the last 90 days, oldest first: each point is {date, amount, currency_code}, the price in force from date on (date is RFC 3339 in the store's timezone; amount goes through the money filter like current). The first point is the price in force when the window opened, dated at its start; then every change since, at most 30 points. In the shopper's currency, with the same tax display as current (its primary amount). On product pages only (the product's price and each variant's), read when a template first uses it, in one statement for the whole page; an empty list when no price is recorded. Product cards do not carry it. |
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Timestamp |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
String or null |
Required; may be null |
|
|
Timestamp or null |
Optional; may be null |
When the merchant's scheduled sale ends (RFC 3339 in the store's timezone with its offset); null when the sale has no end date. |
|
Timestamp or null |
Optional; may be null |
When the merchant's scheduled sale starts (RFC 3339 in the store's timezone with its offset); null when the sale has no start date. Use on_sale for whether a sale is running now. |
|
Object |
Optional |
|
|
Object |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Object |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Object |
Optional |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Integer or null |
Optional; may be null |
The variant whose price this is (a variable product's "from" price); null when it is not one variant's price. |
|
Object or null |
Optional; may be null |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Integer or null |
Optional; may be null |
The variant priced at max_amount. |
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Integer or null |
Optional; may be null |
The variant priced at min_amount. |
|
Object |
Optional |
|
|
Object |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Object |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Required |
|
|
Object |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Array of price tier |
Optional |
|
|
Timestamp or null |
Optional; may be null |
|
|
String ( |
Optional |
|
|
Integer or null |
Optional; may be null |
|
|
Object |
Optional |
|
|
Number |
Required |
|
|
Integer |
Required |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Optional |
|
|
Object or null |
Optional; may be null |
|
|
String or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
String ( |
Required |
|
|
String |
Optional |
The 3D file's type, on model_3d items only: |
|
URL |
Optional |
On model_3d items only: the platform's |
|
Object or null |
Required; may be null |
|
|
URL |
Required |
|
|
URL |
Required |
|
|
Integer or null |
Required; may be null |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Variant or null |
Optional; may be null |
|
|
Boolean |
Optional |
|
|
Object |
Optional |
|
|
Object |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Object |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
String or null |
Optional; may be null |
|
|
String or null |
Required; may be null |
|
|
Array of object |
Optional |
|
|
Integer |
Required |
|
|
String |
Required |
The tag's name in the shopper's language (the source name when it has no translation). |
|
String |
Required |
The tag's slug: the same in every language, and the value the tags filter takes (filter.tags= |
|
URL |
Required |
The shop filtered by this tag while the store's tag filter is on; otherwise search results for the tag's name while search returns products, else the shop. |
|
Array of string |
Optional |
|
|
String or null |
Required; may be null |
|
|
String |
Optional |
|
|
URL |
Optional |
|
|
Array of variant matrix row |
Optional |
|
|
Array of object |
Optional |
|
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
Object |
Optional |
|
|
Money input |
Required |
|
|
Boolean |
Required |
|
|
Money input |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Object |
Optional |
|
|
Object |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Object |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
String or null |
Optional; may be null |
|
|
URL or null |
Optional; may be null |
|
|
Integer |
Required |
|
|
Line properties |
Optional |
|
|
String |
Required |
|
|
Object or null |
Required; may be null |
|
|
Integer |
Required |
|
|
Object or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
Boolean |
Required |
|
|
URL |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
Integer or null |
Required; may be null |
|
|
Boolean |
Required |
ctx.reviews#
Product review availability, aggregates, filters, and approved review rows. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
Boolean |
Optional |
Whether this shopper can review this product now, by the rules /reviews/submit applies: reviews on, a signed-in customer or a guest review the store allows, a purchase of the product when the store asks for one (an order invitation counts), and one review per customer (or browser session) per product. Show the review form when true. Absent off product pages, and when it could not be worked out. |
|
String |
Optional |
cannot_review_reason worded for the shopper in their language (the store's own wording when it changed the message). Show it in place of the review form, with a sign-in link for sign_in_required. Absent when can_review is true. |
|
String ( |
Optional |
Why can_review is false: reviews_off (the store has reviews turned off), sign_in_required (the store takes reviews from signed-in customers only), purchase_required (the store takes reviews from buyers of this product only), already_reviewed (this shopper has reviewed this product), session_required (no browser session to hold a guest's review) or unavailable (this product takes no new reviews). Absent when can_review is true. |
|
Boolean |
Required |
|
|
Boolean |
Optional |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
Timestamp |
Required |
|
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Array of object |
Optional |
|
|
Integer |
Required |
|
|
URL |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Optional; may be null |
The shopper's own vote on this review: helpful, unhelpful, or null when they have not voted (a signed-in customer's vote counts on every device; a guest's belongs to their browser session). Show that button pressed after a reload, and post vote=none to /reviews/vote when it is pressed again to take the vote back. Absent only when the shopper's votes could not be read. |
|
Integer |
Required |
|
|
String |
Required |
|
|
Object |
Optional |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Timestamp |
Optional |
|
|
String |
Optional |
|
|
Integer |
Required |
|
|
Integer |
Optional |
|
|
Array of object |
Optional |
The options of the variant the reviewer bought, as {name, value} pairs in the product's option order and the shopper's language, for a line such as "bought S". Absent when the review names no variant or the variant no longer exists. |
|
String |
Required |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Boolean |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
String |
Optional |
|
|
Object |
Optional |
|
|
Number |
Required |
|
|
Integer |
Required |
|
|
Object keyed by name |
Required |
|
|
Integer |
Dynamic key |
|
|
Integer |
Optional |
ctx.store_reviews#
Store-wide approved reviews with product links and pagination. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
Boolean |
Required |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
Timestamp |
Required |
|
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Array of object |
Optional |
|
|
Integer |
Required |
|
|
URL |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Optional; may be null |
The shopper's own vote on this review: helpful, unhelpful, or null when they have not voted (a signed-in customer's vote counts on every device; a guest's belongs to their browser session). Show that button pressed after a reload, and post vote=none to /reviews/vote when it is pressed again to take the vote back. Absent only when the shopper's votes could not be read. |
|
Object |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
URL |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Object |
Optional |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Timestamp |
Optional |
|
|
String |
Optional |
|
|
Integer |
Required |
|
|
Integer |
Optional |
|
|
Array of object |
Optional |
The options of the variant the reviewer bought, as {name, value} pairs in the product's option order and the shopper's language, for a line such as "bought S". Absent when the review names no variant or the variant no longer exists. |
|
String |
Required |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Boolean |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
String |
Optional |
|
|
Object |
Optional |
|
|
Number |
Required |
|
|
Integer |
Required |
|
|
Object keyed by name |
Required |
|
|
Integer |
Dynamic key |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
ctx.review_photos#
The store's newest approved reviews with photos, with product links, for any page. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
Boolean |
Required |
False when the store has reviews turned off; items is then absent. |
|
Array of object |
Optional |
Up to 24 of the store's newest approved reviews of active products that have at least one photo, newest first, each with its product. Narrow them in the template (for example by rating or verified_purchase) and show as many as the design needs. |
|
String |
Required |
|
|
String |
Required |
|
|
Timestamp |
Required |
|
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Array of object |
Optional |
|
|
Integer |
Required |
|
|
URL |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
String ( |
Optional; may be null |
The shopper's own vote on this review: helpful, unhelpful, or null when they have not voted (a signed-in customer's vote counts on every device; a guest's belongs to their browser session). Show that button pressed after a reload, and post vote=none to /reviews/vote when it is pressed again to take the vote back. Absent only when the shopper's votes could not be read. |
|
Object |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
URL |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Object |
Optional |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Timestamp |
Optional |
|
|
String |
Optional |
|
|
Integer |
Required |
|
|
Integer |
Optional |
|
|
Array of object |
Optional |
The options of the variant the reviewer bought, as {name, value} pairs in the product's option order and the shopper's language, for a line such as "bought S". Absent when the review names no variant or the variant no longer exists. |
|
String |
Required |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Boolean |
Required |