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.customer#
The signed-in shopper and, when requested, their account addresses, orders, Gift Cards, and routed receipt. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
Boolean |
Required |
|
|
Boolean |
Optional |
|
|
String |
Optional |
On the account page only, the section the URL asks for: orders (/account and /account/orders), order (/account/orders/ |
|
URL |
Required |
|
|
Object |
Optional |
|
|
Object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Object keyed by name |
Required |
|
|
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 |
|
|
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. |
|
Object |
Optional |
|
|
Boolean |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Object |
Required |
|
|
URL |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
Boolean |
Required |
|
|
URL |
Required |
|
|
String |
Required |
|
|
Object or null |
Optional; may be null |
On /account/cases/ |
|
Integer |
Required |
The longest message the platform takes (characters). Bind it to the textarea's maxlength. |
|
Boolean |
Required |
Whether the shopper can write in this case now (always true; a solved case reopens when they write). |
|
String |
Required |
|
|
Timestamp |
Required |
|
|
Array of object |
Required |
The case's messages the shopper can see, oldest first (at most the latest 200). |
|
String ( |
Required |
Who wrote it: shopper (the signed-in shopper), staff (the store's team) or assistant (the store's assistant). Notes the team keeps for itself are never shown. |
|
String |
Required |
The team member's first name for staff, the store's assistant's name for assistant; blank for the shopper. |
|
String |
Required |
Plain text; keep its line breaks (white-space: pre-line). |
|
String |
Required |
|
|
Timestamp |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Array of object |
Required |
Orders the case is about. |
|
String |
Required |
|
|
String |
Required |
|
|
URL |
Required |
The order on the account page (/account/orders/ |
|
String |
Required |
|
|
URL |
Required |
Where the page posts a reply: POST JSON {body} with the shopper's session (same origin) to this Shopper API URL; it answers the updated case. A message sets the case back to open. |
|
String ( |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Timestamp |
Required |
|
|
Object |
Optional |
The shopper's help requests (cases), with the customer.cases ctx need: one page of 20, the most recently updated first. A case is an Inbox conversation the store's team treats as a case: opened by the shopper (Get help with an order, Talk to a person in Live Chat) or by the store. Open one or reply with the Shopper API (/api/shop/2026-11/cases), from the store's own pages with the shopper's session. |
|
Array of object |
Required |
One page of cases (20), most recently updated first. Empty when the shopper has none. |
|
Integer |
Required |
The case number in the store, such as 1042. |
|
String |
Optional |
The first order linked to the case, such as #1015. |
|
String |
Required |
The latest message the shopper can see, shortened. |
|
String |
Required |
How the case is written: C-1042. The store's emails about the case quote it. |
|
String ( |
Required |
open (the store is on it), waiting_on_customer (the store answered and waits for the shopper) or solved. A message from the shopper sets a waiting or solved case back to open; a case waiting on the shopper for 7 days is solved. Word it in the theme's own translations (for example Open, Waiting for your reply, Solved). |
|
String |
Required |
What the case is about: the subject the shopper or store gave, else the first words of the first message. |
|
String |
Required |
When the case last changed, as a date in the shopper's language, the way the country they shop from writes dates, in the store's timezone. |
|
Timestamp |
Required |
When the case last changed (RFC 3339 in the store's timezone). |
|
URL |
Required |
The case's page on the account (/account/cases/ |
|
URL |
Required |
The next page's URL; empty on the last page. Render it as given. |
|
Integer |
Required |
|
|
Integer |
Required |
|
|
URL |
Required |
The previous page's URL; empty on the first page. Render it as given. |
|
Integer |
Required |
How many cases the shopper has. |
|
Timestamp |
Required |
When the shopper's account was created (RFC 3339 in the store's timezone with its offset). |
|
String |
Optional |
|
|
String |
Required |
The name to greet the shopper by: their first and last name; without a name, their email once it is confirmed, else their phone number in international format, else their email. |
|
String |
Required |
The account email, blank when the account has none. It can be added but not yet confirmed: read email_verified. |
|
Boolean |
Required |
True once the shopper has confirmed the email with a one-time code. While false, posting email_add with the account's own email emails a confirmation code (requires_verification), and posting it again with the code confirms the email; this works whether or not email sign-in is on. |
|
String |
Required |
First name, blank until the shopper gives one. |
|
Object |
Optional |
|
|
Boolean |
Required |
True when the shopper has paged into the list; open the Gift Cards panel then. |
|
String |
Required |
The first page. |
|
Array of object |
Required |
|
|
Presented money or null |
Required; may be null |
Received cards: what is left to spend. Null on sent cards to keep the balance private. Recipient details do not restrict who can redeem the code. |
|
String or null |
Required; may be null |
Received cards: the full code; null when the store no longer has it (cards issued before codes were kept) and on sent cards. Never print it when it is null. |
|
String or null |
Required; may be null |
Received cards: the last four code characters after a mask. Null on sent cards. |
|
String ( |
Required; may be null |
Sent cards: scheduled (waiting for the chosen delivery time), sending, sent (handed off for delivery; the store does not track whether it reached the recipient) or not_sent (it could not be sent). Null on received cards. |
|
String or null |
Required; may be null |
delivery_status in the shopper's language; null on received cards. |
|
Timestamp or null |
Required; may be null |
Received cards: RFC 3339 in the store's timezone with its offset, null when the card never expires. Null on sent cards. |
|
String or null |
Required; may be null |
Received cards: the expiry in the shopper's language, with the time and the store's timezone; null when it never expires and on sent cards. |
|
String |
Required |
|
|
Presented money |
Required |
|
|
String ( |
Required |
received: a card issued to the shopper's customer account, one sent to their confirmed email or phone, or one they bought for themselves; sent: a card they bought for someone else. Each card is listed once. |
|
String |
Required |
kind in the shopper's language. |
|
String or null |
Required; may be null |
Sent cards: the recipient's name as the shopper entered it; null when none was given and on received cards. |
|
Timestamp or null |
Required; may be null |
Sent cards: the delivery time the shopper chose (RFC 3339 store time); null when it was sent right away. |
|
String or null |
Required; may be null |
scheduled_at ready to show, written like sent_at_display; null when scheduled_at is. |
|
Timestamp or null |
Required; may be null |
Sent cards: when the card was sent (RFC 3339 store time); null until then. |
|
String or null |
Required; may be null |
sent_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)"; null when sent_at is. |
|
String ( |
Required; may be null |
Received cards: as ctx.gift_card.status. Null on sent cards. |
|
String or null |
Required; may be null |
status in the shopper's language; null on sent cards. |
|
String |
Required |
The next (older) page; empty on the last page. |
|
Integer |
Required |
Cards per page, fixed by the platform. |
|
String |
Required |
|
|
String |
Required |
Last name, blank until the shopper gives one. |
|
Boolean |
Required |
|
|
URL |
Required |
|
|
Object |
Optional |
|
|
Boolean |
Required |
True when this order's channel allows customer-initiated returns and exchanges on the storefront and the store has returns enabled. |
|
Address or null |
Required; may be null |
|
|
Boolean |
Required |
|
|
URL or null |
Required; may be null |
Where the customer cancels this order (the order status page's Cancel order form). Null unless the store's cancellation rules let the customer cancel it now: show a Cancel order link only when it is set. |
|
String |
Required |
|
|
Object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Optional |
|
|
Timestamp |
Required |
|
|
String |
Required |
Current non-closed delivery issue status on this order (open, answered, handle_with_courier), or empty when none. |
|
URL or null |
Required; may be null |
Where the customer answers a failed delivery attempt of this order (the Delivery portal). Null unless a failed delivery waits for the customer: show a Fix delivery link only when it is set. |
|
String |
Required |
|
|
String |
Required |
The payment status in the shopper's storefront language (Unpaid, Partially paid, Paid, Partially refunded, Refunded, Authorized): Tringify's wording in every storefront language. Print it next to the order status, for example Completed · Refunded; financial_status is the code. |
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
Timestamp |
Required |
|
|
Timestamp |
Optional |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
Timestamp |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Timestamp |
Optional |
|
|
String |
Optional |
|
|
Timestamp |
Optional |
|
|
Timestamp |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Optional |
|
|
Presented money |
Required |
|
|
Presented money |
Required |
|
|
Object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
String |
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 |
|
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Optional |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer or null |
Required; may be null |
|
|
URL |
Optional |
|
|
Line properties or null |
Required; may be null |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
Object |
Optional |
|
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Presented money |
Required |
|
|
Presented money |
Required |
|
|
String |
Required |
|
|
Presented money |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
String |
Required |
|
|
Presented money |
Required |
|
|
Presented money |
Required |
|
|
Integer or null |
Required; may be null |
|
|
String |
Required |
|
|
String |
Required |
|
|
Object |
Required |
|
|
Presented money |
Required |
The rest of the total still owed; zero once the order is cancelled. |
|
Boolean |
Required |
The amount due is collected in cash when the pickup order is collected. |
|
String |
Required |
Amount due row label in the shopper's storefront language (Due, To pay on delivery, or To pay at pickup), honouring Storefront Messages. |
|
Boolean |
Required |
The amount due is collected in cash on delivery. |
|
Presented money |
Required |
|
|
String |
Required |
Gift card payment row label in the shopper's storefront language, honouring Storefront Messages. |
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Array of object |
Required |
The order's payments one by one, oldest first (failed attempts left out). label is what it was paid with in the shopper's storefront language (the payment method's checkout name, Gift card, Store Credit, Cash on delivery or Pay at pickup); status is captured, authorized, pending, partially_refunded or refunded and status_label its wording (Paid, Authorized, Pending, Partially refunded, Refunded); paid_at is null while pending; transaction_id is the payment provider's ID of the transaction that took it, empty for gift cards, Store Credit and cash. |
|
Presented money |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Timestamp or null |
Required; may be null |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Presented money |
Required |
The order total less what was refunded (never below zero): the Net row under Refunded. |
|
Presented money |
Required |
|
|
String |
Required |
Other payments row label in the shopper's storefront language, honouring Storefront Messages. |
|
Presented money |
Required |
Everything received for the order: Store Credit, gift cards and other payments. |
|
String |
Required |
Amount paid row label in the shopper's storefront language, honouring Storefront Messages. |
|
Presented money |
Required |
|
|
String |
Required |
Refunded row label in the shopper's storefront language, honouring Storefront Messages. |
|
Array of object |
Required |
The order's refunds, oldest first. method is original_payment, gift_card, store_credit or manual (paid back by the store outside Tringify); label names where it went in the shopper's storefront language (a gift card's shows its last four characters); status is processing, completed or failed (a failed refund is being retried or refunded another way by the store) and status_label its wording (Processing, Completed, Failed); reason is the refund's reason as the store gave it (empty when none); refund_id is the payment provider's ID of the refund (empty for gift cards, Store Credit and refunds made outside Tringify); created_at is when it was made. |
|
Presented money |
Required |
|
|
Timestamp |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Presented money |
Required |
|
|
String |
Required |
Store Credit payment row label in the shopper's storefront language, honouring Storefront Messages. |
|
Object or null |
Required; may be null |
Where a pickup order is collected, as the shopper chose it at checkout, in the shopper's language when the store translated it: name, address_lines (laid out the way its country writes it), phone, ready_in_label (for example Usually ready in 2 hours), instructions and hours (null when not set). Null for a delivery order. A pickup order's fulfillments carry ready_for_pickup_at and picked_up_at once the store marks them: show those as the pickup timeline (Order placed, Ready for pickup, Picked up) instead of shipping and tracking. While a pickup is ready for pickup its fulfillment also carries pickup_code, the 6-digit code the customer shows when collecting: show it prominently, for example "Show this code when you collect". |
|
Array of string |
Required |
|
|
String or null |
Required; may be null |
|
|
String or null |
Required; may be null |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Object |
Required |
|
|
Presented money |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
String or null |
Required; may be null |
How checkout worked the fee out, as the shopper read it under the fee name (for example ₹100.00 per item × 3, or 5% of ₹1,000.00); null when the fee showed none. |
|
String |
Optional |
What the shopper wrote for a fee that asks for text (a gift message); absent when none. Show it under the fee name as text_prompt: customer_text. |
|
Boolean |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
String |
Optional |
The label the shopper saw for customer_text (for example Gift message); absent when the fee asks for no text. |
|
Object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
True when the order charged a cash-on-delivery fee. Every order carries cod, so show the fee line only when this is true. |
|
Boolean |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Presented money |
Required |
|
|
Array of object |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Presented money |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
Integer or null |
Required; may be null |
|
|
Presented money |
Required |
|
|
String or null |
Required; may be null |
|
|
String |
Required |
|
|
String |
Required |
What the shopper saw for the discount when the order was placed, in the order's language: its offer label (a manual discount's name). Editing the discount later never changes it. |
|
String |
Required |
|
|
String |
Required |
|
|
Object |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
True only when duties were collected at checkout and are in |
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
String |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Integer or null |
Required; may be null |
|
|
String |
Required |
The order's duty statement, finished and in the shopper's language, to print below the total. Empty when there is none. |
|
Boolean |
Required |
|
|
Presented money |
Required |
Estimated import tax on duties that were not collected. |
|
Presented money |
Required |
Import duties on the order. Part of |
|
Presented money |
Required |
|
|
Object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
True when the order charged for shipping. |
|
Boolean |
Required |
|
|
Boolean |
Required |
True when the order is delivered to an address and shipping cost nothing: show the line as Free. A pickup order or an order of only digital or gift-card lines has neither flag, so show no shipping line. |
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Presented money |
Required |
|
|
Object |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Array of object |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
Decimal string |
Required |
|
|
Presented money |
Required |
|
|
Boolean |
Required |
|
|
Array of object |
Required |
Units not yet in any active shipment (empty once fulfilled, refunded, or cancelled): order_item_id, title, variant_title, image_url and quantity. |
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Integer |
Required |
Number of shipments on this order that were reopened to reship after returning undelivered (0 when none). |
|
String |
Required |
Kind of the latest return on this order (return or exchange), or empty when none. |
|
String or null |
Required; may be null |
How the items of a new return of this order would travel back: pickup (the shipping app's courier collects them), return_label (the customer prints the shipping app's prepaid label), or self_ship; null when returns are not available. |
|
String |
Required |
Latest customer return or exchange status on this order (requested, approved, in_transit, received, closed, declined, cancelled), or empty when none. |
|
URL or null |
Required; may be null |
Where the customer chooses what happens to a shipment that is coming back, or came back, to the store undelivered: sent again or refunded (the Returned shipment portal). Null unless such a shipment waits for the customer. |
|
URL or null |
Required; may be null |
Where the customer requests or views a return or exchange for this order. Null unless returns are available for this order. |
|
String |
Required |
Latest returned-to-origin shipment status on this order (returning, awaiting_decision, resolved), or empty when none. |
|
Address or null |
Required; may be null |
|
|
String |
Required |
|
|
String |
Required |
The order status in the shopper's storefront language: Tringify's wording for the seven system statuses (pending, processing, partially_processed, processed, partially_completed, completed, cancelled) in every storefront language; for the store's own statuses, the store's translation into that language, else the store's own name. |
|
Array of object |
Required |
Stored value that paid part of the order: kind (gift_card, store_credit), label (its name in the shopper's storefront language) and amount. |
|
Presented money |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
URL or null |
Required; may be null |
Where the customer chooses what happens to a shipment lost, damaged or destroyed on its way: sent again or refunded (the Undelivered portal). Null unless such a shipment waits for the customer. |
|
Object |
Optional |
|
|
Boolean |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
Timestamp |
Required |
|
|
String |
Required |
Current non-closed delivery issue status on this order (open, answered, handle_with_courier), or empty when none. |
|
Object |
Optional |
|
|
Presented money |
Required |
|
|
String |
Required |
|
|
Presented money |
Required |
|
|
String |
Required |
|
|
String |
Required |
The payment status in the shopper's storefront language (Unpaid, Partially paid, Paid, Partially refunded, Refunded, Authorized): Tringify's wording in every storefront language. Print it next to the order status, for example Completed · Refunded; financial_status is the code. |
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
Number of shipments on this order that were reopened to reship after returning undelivered (0 when none). |
|
String |
Required |
Kind of the latest return on this order (return or exchange), or empty when none. |
|
String |
Required |
Latest customer return or exchange status on this order (requested, approved, in_transit, received, closed, declined, cancelled), or empty when none. |
|
String |
Required |
Latest returned-to-origin shipment status on this order (returning, awaiting_decision, resolved), or empty when none. |
|
String |
Required |
|
|
Object |
Required |
|
|
String |
Required |
The status in the shopper's storefront language: Tringify's wording for the seven system statuses (pending, processing, partially_processed, processed, partially_completed, completed, cancelled) in every storefront language; for the store's own statuses, the store's translation into that language, else the store's own name. Print it, not the slug. |
|
String |
Required |
The order status slug, the same in every language. |
|
Presented money |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
|
|
Integer |
Required |
|
|
Array of object |
Required |
The page numbers to print, in order: the first page, the last page and up to two pages either side of the current one, with a gap marker wherever pages are skipped (1 … 4 5 6 7 8 … 100). Print each as given; never build page URLs. |
|
Boolean |
Required |
True on the page being shown. |
|
Boolean |
Required |
True on a marker standing for skipped pages: print an ellipsis, not a link. |
|
Integer |
Required |
The page number; 0 on a gap. |
|
URL |
Required |
The URL of that page, keeping the search and filters; empty on a gap. |
|
Integer |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
The payment status the list is narrowed to; empty for all. |
|
Array of object |
Required |
The payment filter: All first, then each payment status this customer's orders are in (within the search and the chosen order status), with how many and the URL that selects it. It works alongside statuses; a theme may show either filter or both. |
|
Integer |
Required |
|
|
String |
Required |
The payment status in the shopper's storefront language; empty for All, whose label is the theme's own. |
|
Boolean |
Required |
|
|
String |
Required |
The payment status code (unpaid, partially_paid, paid, partially_refunded, refunded, authorized); empty for All. |
|
URL |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Object |
Required |
|
|
URL |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
String |
Required |
|
|
Array of object |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
The status in the shopper's storefront language: Tringify's wording for the seven system statuses (pending, processing, partially_processed, processed, partially_completed, completed, cancelled) in every storefront language; for the store's own statuses, the store's translation into that language, else the store's own name. Print it, not the slug. |
|
Boolean |
Required |
|
|
String |
Required |
|
|
URL |
Required |
|
|
Integer |
Required |
|
|
Integer |
Required |
|
|
String |
Required |
The account phone number in E.164 (+ and digits), blank when the account has none. Read phone_verified before treating it as confirmed. |
|
String |
Optional |
phone formatted for display in international format, such as +66 93 364 8073. |
|
Boolean |
Required |
True once the shopper has confirmed the phone number with a one-time code. While false and customer_settings.phone_add_available is true, posting phone_add with the account's own number texts a confirmation code, and posting it again with the code confirms it. |
|
Object or null |
Optional; may be null |
The shopper's Store Credit, with the customer.store_credit ctx need; null when the store has Store Credit off or the shopper has none. Show a Store Credit panel only when it is not null. |
|
Presented money |
Required |
What the shopper can spend at checkout. |
|
String |
Required |
The currency the Store Credit is held in (ISO 4217): the store's base currency. |
|
Array of object |
Required |
One page of movements (20), newest first. The merchant's notes are never included. |
|
Presented money |
Required |
The signed amount: positive when credit was added, negative when used or removed. |
|
String |
Required |
When, as a date in the shopper's language, the way the country they shop from writes dates, in the store's timezone. |
|
Timestamp |
Required |
When (RFC 3339 in the store's timezone). |
|
String |
Required |
What happened: grant, revoke, redeem, refund_credit, redemption_reversal or adjustment. |
|
String |
Required |
What happened, in the shopper's language (Added, Removed, Used, Refund, Returned, Adjusted). |
|
String |
Optional |
The shopper's order the movement belongs to, when there is one; link it as {{ routes.account_url }}/orders/{{ order_id }}. |
|
String |
Optional |
That order's number, such as #1015. |
|
URL |
Required |
The next page's URL; empty on the last page. Render it as given. |
|
Integer |
Required |
The page shown (1-based). |
|
Integer |
Required |
How many pages there are. |
|
URL |
Required |
The previous page's URL; empty on the first page. Render it as given. |
|
Integer |
Required |
How many movements the account has in all. |
ctx.customer_settings#
Storefront-safe account, sign-in, registration, consent, and customer feature settings. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
String |
Required |
required: shoppers sign in to check out; optional: they can also check out as a guest. |
|
URL |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
True when the store collects SMS and WhatsApp marketing consent on storefront registration and newsletter sign-ups (regardless of whether a messaging provider is connected): offer the phone field and unticked consent box on sign-up forms. The account page always offers the switch when customer.phone is set. |
|
String |
Required |
|
|
Boolean |
Required |
True when shoppers can sign in with a code emailed to them. It does not govern confirming an account email: a signed-in customer whose email is not confirmed (customer.email_verified false) can always confirm it with email_add. |
|
Boolean |
Required |
|
|
Integer |
Required |
|
|
Boolean |
Required |
True when the store lets shoppers check out without signing in (account_mode optional). |
|
Integer |
Required |
|
|
Boolean |
Required |
|
|
URL |
Required |
|
|
Boolean |
Required |
True when the store can text the confirmation code phone_add sends, whether or not phone sign-in is on: a signed-in customer without a phone number can add one on the account page, and one whose number is not confirmed (customer.phone_verified false) can confirm it by posting phone_add with that number. The number is added or confirmed only after the customer enters the code. When phone_login_available is false the number is for order updates and text messages; say that it also signs them in only when phone_login_available is true. |
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Required |
|
|
String |
Required |
|
|
URL |
Required |
|
|
URL |
Required |
|
|
Boolean |
Required |
|
|
Array of object |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |
|
|
Boolean |
Optional |
|
|
Boolean |
Required |
|
|
String |
Optional |
The store's own wording for the SMS and WhatsApp marketing box, in the shopper's language. Show it exactly as given next to an unticked box. |
|
Boolean |
Required |
|
|
Integer |
Required |
ctx.gift_card#
One Gift Card on the store's Gift Card page: null until a balance check succeeds in this request, or filled from the card's view link with its full code. After a failed check, or for a view link that opens nothing, it is null and ctx.form_error carries one message to show as given. Available on Gift card routes when declared in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Gift card or null |
Declared root |
ctx.phone_countries#
Localized phone country options allowed by the store's customer settings, sorted by name. min_digits and max_digits bound the national number (digits after the dial code); the server refuses any number that is not valid for its country. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Array of object |
Declared root |
|
|
String |
Required |
|
|
String |
Required |
A sample mobile number as the shopper types it after the dial code, without a trunk prefix (India "81234 56789", United Kingdom "7400 123456"). Use it as the field's placeholder next to dial_code. |
|
String |
Required |
|
|
String |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
String |
Required |
ctx.forms#
Hosted-action field requirements and length or media limits. Loaded when a section declares it in ctx_needs.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
Object |
Required |
|
|
Object |
Required |
max_length: the longest recipient email the platform accepts. available: true when the store can email a Gift Card to the recipient now (an active Gift Card delivery email template and a ready sender); hide the field when false. When neither this nor gift_card_recipient_phone.available is true, the store cannot send a card to a recipient: hide the whole "Send as a gift" option. |
|
Boolean |
Required |
true when the store can deliver a Gift Card by email now. Show the field only when true. Worked out only when a template reads it, once per request. |
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
max_length: the longest message the platform accepts (characters). Bind it to the textarea's maxlength and any character counter. |
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
max_length: the longest recipient name the platform accepts (characters). Bind it to the input's maxlength. |
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
max_length: the longest recipient phone the platform accepts, as typed. available: true when the store can text a Gift Card to the recipient now (the Gift Card delivery message sends on SMS or WhatsApp); hide the field when false. When both are available and the shopper fills both, the card is sent by email. |
|
Boolean |
Required |
true when the store can deliver a Gift Card by text message (SMS or WhatsApp) now. Show the field only when true. Worked out only when a template reads it, once per request. |
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Object |
Required |
max_length: the longest recipient email the platform accepts. available: true when the store can email a Gift Card to the recipient now (an active Gift Card delivery email template and a ready sender); hide the field when false. When neither this nor gift_card_recipient_phone.available is true, the store cannot send a card to a recipient: hide the whole "Send as a gift" option. |
|
Boolean |
Required |
true when the store can deliver a Gift Card by email now. Show the field only when true. Worked out only when a template reads it, once per request. |
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
max_length: the longest message the platform accepts (characters). Bind it to the textarea's maxlength and any character counter. |
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
max_length: the longest recipient name the platform accepts (characters). Bind it to the input's maxlength. |
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
max_length: the longest recipient phone the platform accepts, as typed. available: true when the store can text a Gift Card to the recipient now (the Gift Card delivery message sends on SMS or WhatsApp); hide the field when false. When both are available and the shopper fills both, the card is sent by email. |
|
Boolean |
Required |
true when the store can deliver a Gift Card by text message (SMS or WhatsApp) now. Show the field only when true. Worked out only when a template reads it, once per request. |
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Boolean |
Optional |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Boolean |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Optional |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
|
|
Object |
Required |
|
|
Integer |
Optional |
|
|
Integer |
Optional |
|
|
Boolean |
Required |
ctx.auth_form#
Safe hosted-auth form replay state after a submission. Available after the related hosted action redirects back with a result. Declare it in ctx_needs before reading it.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
String |
Optional |
|
|
String |
Optional |
|
|
String |
Optional |
|
|
String |
Optional |
|
|
String |
Optional |
|
|
String |
Optional |
ctx.form_error#
A localized validation error returned by a hosted form. Available after the related hosted action redirects back with a result. Declare it in ctx_needs before reading it.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Message |
Declared root |
ctx.auth_notice#
A localized sign-in or registration status message. Available after the related hosted action redirects back with a result. Declare it in ctx_needs before reading it.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Message |
Declared root |
ctx.form_notice#
A localized post-redirect result from a hosted storefront action. Available after the related hosted action redirects back with a result. Declare it in ctx_needs before reading it.
Field |
Type |
Requirement |
Description |
|---|---|---|---|
|
Object |
Declared root |
|
|
String |
Required |
|
|
String |
Required |
|
|
Boolean |
Required |