Customer and forms

Customer state, account settings, the Gift Card page, hosted forms, notices, and phone choices.

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

ctx.customer

Object

Declared root

ctx.customer.accepts_marketing

Boolean

Required

ctx.customer.accepts_text_marketing

Boolean

Optional

ctx.customer.account_section

String

Optional

On the account page only, the section the URL asks for: orders (/account and /account/orders), order (/account/orders/, with customer.order), addresses (/account/addresses), details (/account/details), gift_cards (/account/gift-cards), store_credit (/account/store-credit), cases (/account/cases, with customer.cases) or case (/account/cases/, with customer.case). Render that section and link the others with routes.account_orders_url, routes.account_addresses_url, routes.account_details_url, routes.account_gift_cards_url and routes.account_store_credit_url, which are real pages. Show the Store Credit link only while customer.store_credit is set (it is null when the store has Store Credit off or the shopper has none); show the Gift cards link always, with an empty state when customer.gift_cards has no items. Declare the customer.account_section ctx need to render one section per URL: the page then loads customer.addresses only for addresses, customer.orders or customer.order only for the orders sections and customer.gift_cards only for gift_cards; customer.store_credit loads on every section. Without that need every account URL loads every section the theme declares.

ctx.customer.account_url

URL

Required

ctx.customer.address_form

Object

Optional

ctx.customer.address_form.blank

Object

Required

ctx.customer.address_form.blank.address1

String

Required

ctx.customer.address_form.blank.address2

String

Required

ctx.customer.address_form.blank.address_type

String

Required

ctx.customer.address_form.blank.city

String

Required

ctx.customer.address_form.blank.company

String

Required

ctx.customer.address_form.blank.country_code

String

Required

ctx.customer.address_form.blank.district

String

Required

ctx.customer.address_form.blank.first_name

String

Required

ctx.customer.address_form.blank.id

String

Required

ctx.customer.address_form.blank.is_default

Boolean

Required

ctx.customer.address_form.blank.last_name

String

Required

ctx.customer.address_form.blank.phone

String

Required

ctx.customer.address_form.blank.postal_code

String

Required

ctx.customer.address_form.blank.province_code

String

Required

ctx.customer.address_form.countries

Array of object

Required

ctx.customer.address_form.countries[].iso_code

String

Required

ctx.customer.address_form.countries[].name

String

Required

ctx.customer.address_form.countries[].selected

Boolean

Required

ctx.customer.address_form.fields_by_country

Object keyed by name

Required

ctx.customer.address_form.fields_by_country.{key}

Array of object

Dynamic key

ctx.customer.address_form.fields_by_country.{key}[].autocomplete

String

Required

The autocomplete token for the input.

ctx.customer.address_form.fields_by_country.{key}[].input_mode

String

Required

The keyboard to show: text, numeric or tel.

ctx.customer.address_form.fields_by_country.{key}[].key

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.

ctx.customer.address_form.fields_by_country.{key}[].label

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...).

ctx.customer.address_form.fields_by_country.{key}[].max_length

Integer

Required

The longest value the platform accepts.

ctx.customer.address_form.fields_by_country.{key}[].options

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.

ctx.customer.address_form.fields_by_country.{key}[].options[].label

String

Required

ctx.customer.address_form.fields_by_country.{key}[].options[].value

String

Required

ctx.customer.address_form.fields_by_country.{key}[].pattern

String

Optional

A regular expression the whole value must match, when the country has one (postal codes).

ctx.customer.address_form.fields_by_country.{key}[].placeholder

String

Optional

A placeholder for the input (the postal code field gives an example postal code).

ctx.customer.address_form.fields_by_country.{key}[].required

Boolean

Required

Whether the address cannot be saved without this field, for this country.

ctx.customer.address_form.fields_by_country.{key}[].row

Integer

Required

Fields with the same row belong side by side on one line, in the order the country writes an address.

ctx.customer.address_form.postal_lookup

Object

Required

ctx.customer.address_form.postal_lookup.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.

ctx.customer.address_form.postal_lookup.url

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.

ctx.customer.addresses

Object

Optional

ctx.customer.addresses.active

Boolean

Required

ctx.customer.addresses.items

Array of object

Required

ctx.customer.addresses.items[].address1

String

Required

ctx.customer.addresses.items[].address2

String

Required

ctx.customer.addresses.items[].address_type

String

Required

ctx.customer.addresses.items[].city

String

Required

ctx.customer.addresses.items[].company

String

Required

ctx.customer.addresses.items[].country_code

String

Required

ctx.customer.addresses.items[].country_name

String

Required

ctx.customer.addresses.items[].district

String

Required

ctx.customer.addresses.items[].first_name

String

Required

ctx.customer.addresses.items[].id

String

Required

ctx.customer.addresses.items[].is_default

Boolean

Required

ctx.customer.addresses.items[].last_name

String

Required

ctx.customer.addresses.items[].name

String

Required

ctx.customer.addresses.items[].phone

String

Required

ctx.customer.addresses.items[].phone_display

String

Optional

ctx.customer.addresses.items[].postal_code

String

Required

ctx.customer.addresses.items[].province_code

String

Required

ctx.customer.addresses.items[].province_name

String

Required

ctx.customer.addresses.next_url

String

Required

ctx.customer.addresses.page

Integer

Required

ctx.customer.addresses.page_size

Integer

Required

ctx.customer.addresses.pages

Integer

Required

ctx.customer.addresses.prev_url

String

Required

ctx.customer.addresses.query

String

Required

ctx.customer.addresses.search

Object

Required

ctx.customer.addresses.search.action

URL

Required

ctx.customer.addresses.search.hidden_fields

Array of object

Required

ctx.customer.addresses.search.hidden_fields[].name

String

Required

ctx.customer.addresses.search.hidden_fields[].value

String

Required

ctx.customer.addresses.search.query_param

String

Required

ctx.customer.addresses.total

Integer

Required

ctx.customer.addresses.type

String

Required

ctx.customer.addresses.types

Array of object

Required

ctx.customer.addresses.types[].selected

Boolean

Required

ctx.customer.addresses.types[].url

URL

Required

ctx.customer.addresses.types[].value

String

Required

ctx.customer.case

Object or null

Optional; may be null

On /account/cases/ only (customer.account_section is case), with the customer.cases ctx need: that case with its messages; null when the shopper has no case with that number.

ctx.customer.case.body_max_length

Integer

Required

The longest message the platform takes (characters). Bind it to the textarea's maxlength.

ctx.customer.case.can_reply

Boolean

Required

Whether the shopper can write in this case now (always true; a solved case reopens when they write).

ctx.customer.case.created_at

String

Required

ctx.customer.case.created_at_iso

Timestamp

Required

ctx.customer.case.messages

Array of object

Required

The case's messages the shopper can see, oldest first (at most the latest 200).

ctx.customer.case.messages[].author_kind

String (shopper, staff, assistant)

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.

ctx.customer.case.messages[].author_name

String

Required

The team member's first name for staff, the store's assistant's name for assistant; blank for the shopper.

ctx.customer.case.messages[].body

String

Required

Plain text; keep its line breaks (white-space: pre-line).

ctx.customer.case.messages[].created_at

String

Required

ctx.customer.case.messages[].created_at_iso

Timestamp

Required

ctx.customer.case.messages[].id

String

Required

ctx.customer.case.number

Integer

Required

ctx.customer.case.orders

Array of object

Required

Orders the case is about.

ctx.customer.case.orders[].id

String

Required

ctx.customer.case.orders[].number

String

Required

ctx.customer.case.orders[].url

URL

Required

The order on the account page (/account/orders/).

ctx.customer.case.reference

String

Required

ctx.customer.case.reply_url

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.

ctx.customer.case.status

String (open, waiting_on_customer, solved)

Required

ctx.customer.case.subject

String

Required

ctx.customer.case.updated_at

String

Required

ctx.customer.case.updated_at_iso

Timestamp

Required

ctx.customer.cases

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.

ctx.customer.cases.items

Array of object

Required

One page of cases (20), most recently updated first. Empty when the shopper has none.

ctx.customer.cases.items[].number

Integer

Required

The case number in the store, such as 1042.

ctx.customer.cases.items[].order_number

String

Optional

The first order linked to the case, such as #1015.

ctx.customer.cases.items[].preview

String

Required

The latest message the shopper can see, shortened.

ctx.customer.cases.items[].reference

String

Required

How the case is written: C-1042. The store's emails about the case quote it.

ctx.customer.cases.items[].status

String (open, waiting_on_customer, solved)

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).

ctx.customer.cases.items[].subject

String

Required

What the case is about: the subject the shopper or store gave, else the first words of the first message.

ctx.customer.cases.items[].updated_at

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.

ctx.customer.cases.items[].updated_at_iso

Timestamp

Required

When the case last changed (RFC 3339 in the store's timezone).

ctx.customer.cases.items[].url

URL

Required

The case's page on the account (/account/cases/). Render it as given.

ctx.customer.cases.next_url

URL

Required

The next page's URL; empty on the last page. Render it as given.

ctx.customer.cases.page

Integer

Required

ctx.customer.cases.pages

Integer

Required

ctx.customer.cases.prev_url

URL

Required

The previous page's URL; empty on the first page. Render it as given.

ctx.customer.cases.total

Integer

Required

How many cases the shopper has.

ctx.customer.created_at

Timestamp

Required

When the shopper's account was created (RFC 3339 in the store's timezone with its offset).

ctx.customer.date_of_birth

String

Optional

ctx.customer.display_name

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.

ctx.customer.email

String

Required

The account email, blank when the account has none. It can be added but not yet confirmed: read email_verified.

ctx.customer.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.

ctx.customer.first_name

String

Required

First name, blank until the shopper gives one.

ctx.customer.gift_cards

Object

Optional

ctx.customer.gift_cards.active

Boolean

Required

True when the shopper has paged into the list; open the Gift Cards panel then.

ctx.customer.gift_cards.first_url

String

Required

The first page.

ctx.customer.gift_cards.items

Array of object

Required

ctx.customer.gift_cards.items[].balance

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.

ctx.customer.gift_cards.items[].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.

ctx.customer.gift_cards.items[].code_masked

String or null

Required; may be null

Received cards: the last four code characters after a mask. Null on sent cards.

ctx.customer.gift_cards.items[].delivery_status

String (scheduled, sending, sent, not_sent) or null

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.

ctx.customer.gift_cards.items[].delivery_status_label

String or null

Required; may be null

delivery_status in the shopper's language; null on received cards.

ctx.customer.gift_cards.items[].expires_at

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.

ctx.customer.gift_cards.items[].expires_at_label

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.

ctx.customer.gift_cards.items[].id

String

Required

ctx.customer.gift_cards.items[].initial_value

Presented money

Required

ctx.customer.gift_cards.items[].kind

String (received, sent)

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.

ctx.customer.gift_cards.items[].kind_label

String

Required

kind in the shopper's language.

ctx.customer.gift_cards.items[].recipient_name

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.

ctx.customer.gift_cards.items[].scheduled_at

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.

ctx.customer.gift_cards.items[].scheduled_at_display

String or null

Required; may be null

scheduled_at ready to show, written like sent_at_display; null when scheduled_at is.

ctx.customer.gift_cards.items[].sent_at

Timestamp or null

Required; may be null

Sent cards: when the card was sent (RFC 3339 store time); null until then.

ctx.customer.gift_cards.items[].sent_at_display

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.

ctx.customer.gift_cards.items[].status

String (active, used, expired, disabled, cancelled) or null

Required; may be null

Received cards: as ctx.gift_card.status. Null on sent cards.

ctx.customer.gift_cards.items[].status_label

String or null

Required; may be null

status in the shopper's language; null on sent cards.

ctx.customer.gift_cards.next_url

String

Required

The next (older) page; empty on the last page.

ctx.customer.gift_cards.page_size

Integer

Required

Cards per page, fixed by the platform.

ctx.customer.id

String

Required

ctx.customer.last_name

String

Required

Last name, blank until the shopper gives one.

ctx.customer.logged_in

Boolean

Required

ctx.customer.logout_url

URL

Required

ctx.customer.order

Object

Optional

ctx.customer.order.allow_returns_portal

Boolean

Required

True when this order's channel allows customer-initiated returns and exchanges on the storefront and the store has returns enabled.

ctx.customer.order.billing_address

Address or null

Required; may be null

ctx.customer.order.can_cancel

Boolean

Required

ctx.customer.order.cancel_url

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.

ctx.customer.order.channel_type

String

Required

ctx.customer.order.contact

Object

Required

ctx.customer.order.contact.email

String

Required

ctx.customer.order.contact.phone

String

Required

ctx.customer.order.contact.phone_display

String

Optional

ctx.customer.order.created_at

Timestamp

Required

ctx.customer.order.delivery_issue_status

String

Required

Current non-closed delivery issue status on this order (open, answered, handle_with_courier), or empty when none.

ctx.customer.order.delivery_url

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.

ctx.customer.order.financial_status

String

Required

ctx.customer.order.financial_status_display

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.

ctx.customer.order.fulfillment_status

String

Required

ctx.customer.order.fulfillment_status_display

String

Required

ctx.customer.order.fulfillments

Array of object

Required

ctx.customer.order.fulfillments[].carrier

String

Required

ctx.customer.order.fulfillments[].created_at

Timestamp

Required

ctx.customer.order.fulfillments[].delivered_at

Timestamp

Optional

ctx.customer.order.fulfillments[].display_id

String

Required

ctx.customer.order.fulfillments[].events

Array of object

Required

ctx.customer.order.fulfillments[].events[].description

String

Required

ctx.customer.order.fulfillments[].events[].happened_at

Timestamp

Required

ctx.customer.order.fulfillments[].events[].happened_at_display

String

Required

ctx.customer.order.fulfillments[].events[].location

String

Required

ctx.customer.order.fulfillments[].events[].status

String

Required

ctx.customer.order.fulfillments[].events[].status_display

String

Required

ctx.customer.order.fulfillments[].id

String

Required

ctx.customer.order.fulfillments[].items

Array of object

Required

ctx.customer.order.fulfillments[].items[].order_item_id

String

Required

ctx.customer.order.fulfillments[].items[].quantity

Integer

Required

ctx.customer.order.fulfillments[].picked_up_at

Timestamp

Optional

ctx.customer.order.fulfillments[].pickup_code

String

Optional

ctx.customer.order.fulfillments[].ready_for_pickup_at

Timestamp

Optional

ctx.customer.order.fulfillments[].shipped_at

Timestamp

Optional

ctx.customer.order.fulfillments[].status

String

Required

ctx.customer.order.fulfillments[].status_display

String

Required

ctx.customer.order.fulfillments[].tracking_number

String

Required

ctx.customer.order.fulfillments[].tracking_url

String

Required

ctx.customer.order.id

String

Required

ctx.customer.order.items

Array of object

Required

ctx.customer.order.items[].compare_at_price

Presented money

Optional

ctx.customer.order.items[].discount_amount

Presented money

Required

ctx.customer.order.items[].duty_amount

Presented money

Required

ctx.customer.order.items[].exchange

Object

Optional

ctx.customer.order.items[].exchange.replaces_order_item_id

String

Required

ctx.customer.order.items[].exchange.return_number

String

Required

ctx.customer.order.items[].fulfilled_quantity

Integer

Required

ctx.customer.order.items[].fulfillment_status

String

Required

ctx.customer.order.items[].fulfillment_status_display

String

Required

ctx.customer.order.items[].gift_card_recipient

Object or null

Required; may be null

ctx.customer.order.items[].gift_card_recipient.deliver_at

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

ctx.customer.order.items[].gift_card_recipient.deliver_at_display

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.

ctx.customer.order.items[].gift_card_recipient.email

String

Required

ctx.customer.order.items[].gift_card_recipient.message

String

Required

ctx.customer.order.items[].gift_card_recipient.name

String

Required

ctx.customer.order.items[].gift_card_recipient.phone

String

Required

E.164, for machines (tel: links). Show phone_display.

ctx.customer.order.items[].gift_card_recipient.phone_display

String

Optional

The phone in its country's international format, such as +852 9123 4567; present when phone is set.

ctx.customer.order.items[].has_tax

Boolean

Required

ctx.customer.order.items[].id

String

Required

ctx.customer.order.items[].image_url

String

Required

ctx.customer.order.items[].links

Array of object

Optional

ctx.customer.order.items[].links[].label

String

Required

ctx.customer.order.items[].links[].url

String

Required

ctx.customer.order.items[].product_id

Integer or null

Required; may be null

ctx.customer.order.items[].proof_image_url

URL

Optional

ctx.customer.order.items[].properties

Line properties or null

Required; may be null

ctx.customer.order.items[].property_list

Array of object

Required

ctx.customer.order.items[].property_list[].display_value

String

Required

ctx.customer.order.items[].property_list[].key

String

Required

ctx.customer.order.items[].property_list[].name

String

Required

ctx.customer.order.items[].property_list[].value

String

Required

ctx.customer.order.items[].quantity

Integer

Required

ctx.customer.order.items[].refunded_quantity

Integer

Required

ctx.customer.order.items[].requires_shipping

Boolean

Required

ctx.customer.order.items[].series

Object

Optional

ctx.customer.order.items[].series.count

Integer

Required

ctx.customer.order.items[].series.has_tax

Boolean

Required

ctx.customer.order.items[].series.index

Integer

Required

ctx.customer.order.items[].series.key

String

Required

ctx.customer.order.items[].series.quantity

Integer

Required

ctx.customer.order.items[].series.subtotal

Presented money

Required

ctx.customer.order.items[].series.tax_amount

Presented money

Required

ctx.customer.order.items[].sku

String

Required

ctx.customer.order.items[].tax_amount

Presented money

Required

ctx.customer.order.items[].tax_lines

Array of object

Required

ctx.customer.order.items[].tax_lines[].amount

Presented money

Required

ctx.customer.order.items[].tax_lines[].compounded

Boolean

Required

ctx.customer.order.items[].tax_lines[].name

String

Required

ctx.customer.order.items[].tax_lines[].rate

Decimal string

Required

ctx.customer.order.items[].title

String

Required

ctx.customer.order.items[].total

Presented money

Required

ctx.customer.order.items[].unit_price

Presented money

Required

ctx.customer.order.items[].variant_id

Integer or null

Required; may be null

ctx.customer.order.items[].variant_title

String

Required

ctx.customer.order.order_number

String

Required

ctx.customer.order.payment

Object

Required

ctx.customer.order.payment.due

Presented money

Required

The rest of the total still owed; zero once the order is cancelled.

ctx.customer.order.payment.due_at_pickup

Boolean

Required

The amount due is collected in cash when the pickup order is collected.

ctx.customer.order.payment.due_label

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.

ctx.customer.order.payment.due_on_delivery

Boolean

Required

The amount due is collected in cash on delivery.

ctx.customer.order.payment.gift_card

Presented money

Required

ctx.customer.order.payment.gift_card_label

String

Required

Gift card payment row label in the shopper's storefront language, honouring Storefront Messages.

ctx.customer.order.payment.has_due

Boolean

Required

ctx.customer.order.payment.has_gift_card

Boolean

Required

ctx.customer.order.payment.has_paid

Boolean

Required

ctx.customer.order.payment.has_refunded

Boolean

Required

ctx.customer.order.payment.has_store_credit

Boolean

Required

ctx.customer.order.payment.lines

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.

ctx.customer.order.payment.lines[].amount

Presented money

Required

ctx.customer.order.payment.lines[].label

String

Required

ctx.customer.order.payment.lines[].method

String

Required

ctx.customer.order.payment.lines[].paid_at

Timestamp or null

Required; may be null

ctx.customer.order.payment.lines[].status

String

Required

ctx.customer.order.payment.lines[].status_label

String

Required

ctx.customer.order.payment.lines[].transaction_id

String

Required

ctx.customer.order.payment.net

Presented money

Required

The order total less what was refunded (never below zero): the Net row under Refunded.

ctx.customer.order.payment.other

Presented money

Required

ctx.customer.order.payment.other_label

String

Required

Other payments row label in the shopper's storefront language, honouring Storefront Messages.

ctx.customer.order.payment.paid

Presented money

Required

Everything received for the order: Store Credit, gift cards and other payments.

ctx.customer.order.payment.paid_label

String

Required

Amount paid row label in the shopper's storefront language, honouring Storefront Messages.

ctx.customer.order.payment.refunded

Presented money

Required

ctx.customer.order.payment.refunded_label

String

Required

Refunded row label in the shopper's storefront language, honouring Storefront Messages.

ctx.customer.order.payment.refunds

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.

ctx.customer.order.payment.refunds[].amount

Presented money

Required

ctx.customer.order.payment.refunds[].created_at

Timestamp

Required

ctx.customer.order.payment.refunds[].label

String

Required

ctx.customer.order.payment.refunds[].method

String

Required

ctx.customer.order.payment.refunds[].reason

String

Required

ctx.customer.order.payment.refunds[].refund_id

String

Required

ctx.customer.order.payment.refunds[].status

String

Required

ctx.customer.order.payment.refunds[].status_label

String

Required

ctx.customer.order.payment.store_credit

Presented money

Required

ctx.customer.order.payment.store_credit_label

String

Required

Store Credit payment row label in the shopper's storefront language, honouring Storefront Messages.

ctx.customer.order.pickup_location

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".

ctx.customer.order.pickup_location.address_lines

Array of string

Required

ctx.customer.order.pickup_location.hours

String or null

Required; may be null

ctx.customer.order.pickup_location.instructions

String or null

Required; may be null

ctx.customer.order.pickup_location.name

String

Required

ctx.customer.order.pickup_location.phone

String

Required

ctx.customer.order.pickup_location.phone_display

String

Required

ctx.customer.order.pickup_location.ready_in_label

String

Required

ctx.customer.order.pricing

Object

Required

ctx.customer.order.pricing.checkout_fee_total

Presented money

Required

ctx.customer.order.pricing.checkout_fees

Array of object

Required

ctx.customer.order.pricing.checkout_fees[].amount

Presented money

Required

ctx.customer.order.pricing.checkout_fees[].calculation

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.

ctx.customer.order.pricing.checkout_fees[].customer_text

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.

ctx.customer.order.pricing.checkout_fees[].has_tax

Boolean

Required

ctx.customer.order.pricing.checkout_fees[].id

String

Required

ctx.customer.order.pricing.checkout_fees[].name

String

Required

ctx.customer.order.pricing.checkout_fees[].source

String

Required

ctx.customer.order.pricing.checkout_fees[].tax_lines

Array of object

Required

ctx.customer.order.pricing.checkout_fees[].tax_lines[].amount

Presented money

Required

ctx.customer.order.pricing.checkout_fees[].tax_lines[].compounded

Boolean

Required

ctx.customer.order.pricing.checkout_fees[].tax_lines[].name

String

Required

ctx.customer.order.pricing.checkout_fees[].tax_lines[].rate

Decimal string

Required

ctx.customer.order.pricing.checkout_fees[].text_prompt

String

Optional

The label the shopper saw for customer_text (for example Gift message); absent when the fee asks for no text.

ctx.customer.order.pricing.cod

Object

Required

ctx.customer.order.pricing.cod.amount

Presented money

Required

ctx.customer.order.pricing.cod.has_amount

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.

ctx.customer.order.pricing.cod.has_tax

Boolean

Required

ctx.customer.order.pricing.cod.tax_lines

Array of object

Required

ctx.customer.order.pricing.cod.tax_lines[].amount

Presented money

Required

ctx.customer.order.pricing.cod.tax_lines[].compounded

Boolean

Required

ctx.customer.order.pricing.cod.tax_lines[].name

String

Required

ctx.customer.order.pricing.cod.tax_lines[].rate

Decimal string

Required

ctx.customer.order.pricing.discount_total

Presented money

Required

ctx.customer.order.pricing.discounts

Array of object

Required

ctx.customer.order.pricing.discounts[].allocations

Array of object

Required

ctx.customer.order.pricing.discounts[].allocations[].amount

Presented money

Required

ctx.customer.order.pricing.discounts[].allocations[].is_free

Boolean

Required

ctx.customer.order.pricing.discounts[].allocations[].order_item_id

String

Required

ctx.customer.order.pricing.discounts[].allocations[].per_unit_amount

Presented money

Required

ctx.customer.order.pricing.discounts[].allocations[].product_id

Integer

Required

ctx.customer.order.pricing.discounts[].allocations[].quantity

Integer

Required

ctx.customer.order.pricing.discounts[].allocations[].variant_id

Integer or null

Required; may be null

ctx.customer.order.pricing.discounts[].amount

Presented money

Required

ctx.customer.order.pricing.discounts[].code

String or null

Required; may be null

ctx.customer.order.pricing.discounts[].id

String

Required

ctx.customer.order.pricing.discounts[].name

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.

ctx.customer.order.pricing.discounts[].source

String

Required

ctx.customer.order.pricing.discounts[].type

String

Required

ctx.customer.order.pricing.duty

Object

Required

ctx.customer.order.pricing.duty.collection_mode

String

Required

collect_at_checkout, pay_on_delivery or included_in_price; empty for an order with no import duties.

ctx.customer.order.pricing.duty.de_minimis_applied

Boolean

Required

ctx.customer.order.pricing.duty.eligible

Boolean

Required

ctx.customer.order.pricing.duty.has_amount

Boolean

Required

True only when duties were collected at checkout and are in grand_total: the one case for a Duties totals row.

ctx.customer.order.pricing.duty.lines

Array of object

Required

ctx.customer.order.pricing.duty.lines[].amount

Presented money

Required

ctx.customer.order.pricing.duty.lines[].country_of_origin

String

Required

ctx.customer.order.pricing.duty.lines[].customs_value

Presented money

Required

ctx.customer.order.pricing.duty.lines[].dutiable

Boolean

Required

ctx.customer.order.pricing.duty.lines[].exclusion_reason

String

Required

ctx.customer.order.pricing.duty.lines[].harmonized_code

String

Required

ctx.customer.order.pricing.duty.lines[].matched_hs_code

String

Required

ctx.customer.order.pricing.duty.lines[].matched_origin

String

Required

ctx.customer.order.pricing.duty.lines[].product_id

Integer

Required

ctx.customer.order.pricing.duty.lines[].quantity

Integer

Required

ctx.customer.order.pricing.duty.lines[].rate_description

String

Required

ctx.customer.order.pricing.duty.lines[].variant_id

Integer or null

Required; may be null

ctx.customer.order.pricing.duty.note

String

Required

The order's duty statement, finished and in the shopper's language, to print below the total. Empty when there is none.

ctx.customer.order.pricing.duty.overridden

Boolean

Required

ctx.customer.order.pricing.duty.tax_estimate

Presented money

Required

Estimated import tax on duties that were not collected.

ctx.customer.order.pricing.duty.total

Presented money

Required

Import duties on the order. Part of grand_total only when has_amount is true.

ctx.customer.order.pricing.grand_total

Presented money

Required

ctx.customer.order.pricing.shipping

Object

Required

ctx.customer.order.pricing.shipping.amount

Presented money

Required

ctx.customer.order.pricing.shipping.has_amount

Boolean

Required

True when the order charged for shipping.

ctx.customer.order.pricing.shipping.has_tax

Boolean

Required

ctx.customer.order.pricing.shipping.is_free

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.

ctx.customer.order.pricing.shipping.method_id

String

Required

ctx.customer.order.pricing.shipping.name

String

Required

ctx.customer.order.pricing.shipping.tax_lines

Array of object

Required

ctx.customer.order.pricing.shipping.tax_lines[].amount

Presented money

Required

ctx.customer.order.pricing.shipping.tax_lines[].compounded

Boolean

Required

ctx.customer.order.pricing.shipping.tax_lines[].name

String

Required

ctx.customer.order.pricing.shipping.tax_lines[].rate

Decimal string

Required

ctx.customer.order.pricing.subtotal

Presented money

Required

ctx.customer.order.pricing.tax

Object

Required

ctx.customer.order.pricing.tax.address_missing

Boolean

Required

ctx.customer.order.pricing.tax.basis_applied

String

Required

ctx.customer.order.pricing.tax.checkout_fee_breakdowns

Array of object

Required

ctx.customer.order.pricing.tax.checkout_fee_breakdowns[].name

String

Required

ctx.customer.order.pricing.tax.checkout_fee_breakdowns[].tax_lines

Array of object

Required

ctx.customer.order.pricing.tax.checkout_fee_breakdowns[].tax_lines[].amount

Presented money

Required

ctx.customer.order.pricing.tax.checkout_fee_breakdowns[].tax_lines[].compounded

Boolean

Required

ctx.customer.order.pricing.tax.checkout_fee_breakdowns[].tax_lines[].name

String

Required

ctx.customer.order.pricing.tax.checkout_fee_breakdowns[].tax_lines[].rate

Decimal string

Required

ctx.customer.order.pricing.tax.cod_lines

Array of object

Required

ctx.customer.order.pricing.tax.cod_lines[].amount

Presented money

Required

ctx.customer.order.pricing.tax.cod_lines[].compounded

Boolean

Required

ctx.customer.order.pricing.tax.cod_lines[].name

String

Required

ctx.customer.order.pricing.tax.cod_lines[].rate

Decimal string

Required

ctx.customer.order.pricing.tax.exempt

Boolean

Required

ctx.customer.order.pricing.tax.has_tax

Boolean

Required

ctx.customer.order.pricing.tax.included

Boolean

Required

ctx.customer.order.pricing.tax.invoice_only

Boolean

Required

ctx.customer.order.pricing.tax.lines

Array of object

Required

ctx.customer.order.pricing.tax.lines[].amount

Presented money

Required

ctx.customer.order.pricing.tax.lines[].compounded

Boolean

Required

ctx.customer.order.pricing.tax.lines[].name

String

Required

ctx.customer.order.pricing.tax.lines[].rate

Decimal string

Required

ctx.customer.order.pricing.tax.shipping_lines

Array of object

Required

ctx.customer.order.pricing.tax.shipping_lines[].amount

Presented money

Required

ctx.customer.order.pricing.tax.shipping_lines[].compounded

Boolean

Required

ctx.customer.order.pricing.tax.shipping_lines[].name

String

Required

ctx.customer.order.pricing.tax.shipping_lines[].rate

Decimal string

Required

ctx.customer.order.pricing.tax.total

Presented money

Required

ctx.customer.order.pricing.tax.zone_unmatched

Boolean

Required

ctx.customer.order.remaining

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.

ctx.customer.order.remaining[].image_url

String

Required

ctx.customer.order.remaining[].order_item_id

String

Required

ctx.customer.order.remaining[].quantity

Integer

Required

ctx.customer.order.remaining[].title

String

Required

ctx.customer.order.remaining[].variant_title

String

Required

ctx.customer.order.requires_shipping

Boolean

Required

ctx.customer.order.reship_count

Integer

Required

Number of shipments on this order that were reopened to reship after returning undelivered (0 when none).

ctx.customer.order.return_kind

String

Required

Kind of the latest return on this order (return or exchange), or empty when none.

ctx.customer.order.return_shipping_mode

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.

ctx.customer.order.return_status

String

Required

Latest customer return or exchange status on this order (requested, approved, in_transit, received, closed, declined, cancelled), or empty when none.

ctx.customer.order.returned_shipment_url

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.

ctx.customer.order.returns_url

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.

ctx.customer.order.rto_status

String

Required

Latest returned-to-origin shipment status on this order (returning, awaiting_decision, resolved), or empty when none.

ctx.customer.order.shipping_address

Address or null

Required; may be null

ctx.customer.order.status

String

Required

ctx.customer.order.status_name

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.

ctx.customer.order.tenders

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.

ctx.customer.order.tenders[].amount

Presented money

Required

ctx.customer.order.tenders[].kind

String

Required

ctx.customer.order.tenders[].label

String

Required

ctx.customer.order.total_items

Integer

Required

ctx.customer.order.undelivered_url

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.

ctx.customer.orders

Object

Optional

ctx.customer.orders.active

Boolean

Required

ctx.customer.orders.items

Array of object

Required

ctx.customer.orders.items[].channel_type

String

Required

ctx.customer.orders.items[].created_at

Timestamp

Required

ctx.customer.orders.items[].delivery_issue_status

String

Required

Current non-closed delivery issue status on this order (open, answered, handle_with_courier), or empty when none.

ctx.customer.orders.items[].duty_estimate

Object

Optional

ctx.customer.orders.items[].duty_estimate.amount

Presented money

Required

ctx.customer.orders.items[].duty_estimate.collection_mode

String

Required

ctx.customer.orders.items[].duty_estimate.tax_estimate

Presented money

Required

ctx.customer.orders.items[].financial_status

String

Required

ctx.customer.orders.items[].financial_status_display

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.

ctx.customer.orders.items[].fulfillment_status

String

Required

ctx.customer.orders.items[].fulfillment_status_display

String

Required

ctx.customer.orders.items[].id

String

Required

ctx.customer.orders.items[].order_number

String

Required

ctx.customer.orders.items[].reship_count

Integer

Required

Number of shipments on this order that were reopened to reship after returning undelivered (0 when none).

ctx.customer.orders.items[].return_kind

String

Required

Kind of the latest return on this order (return or exchange), or empty when none.

ctx.customer.orders.items[].return_status

String

Required

Latest customer return or exchange status on this order (requested, approved, in_transit, received, closed, declined, cancelled), or empty when none.

ctx.customer.orders.items[].rto_status

String

Required

Latest returned-to-origin shipment status on this order (returning, awaiting_decision, resolved), or empty when none.

ctx.customer.orders.items[].status

String

Required

ctx.customer.orders.items[].status_label

Object

Required

ctx.customer.orders.items[].status_label.name

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.

ctx.customer.orders.items[].status_label.slug

String

Required

The order status slug, the same in every language.

ctx.customer.orders.items[].total

Presented money

Required

ctx.customer.orders.items[].total_items

Integer

Required

ctx.customer.orders.next_url

String

Required

ctx.customer.orders.page

Integer

Required

ctx.customer.orders.page_links

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.

ctx.customer.orders.page_links[].current

Boolean

Required

True on the page being shown.

ctx.customer.orders.page_links[].gap

Boolean

Required

True on a marker standing for skipped pages: print an ellipsis, not a link.

ctx.customer.orders.page_links[].number

Integer

Required

The page number; 0 on a gap.

ctx.customer.orders.page_links[].url

URL

Required

The URL of that page, keeping the search and filters; empty on a gap.

ctx.customer.orders.page_size

Integer

Required

ctx.customer.orders.pages

Integer

Required

ctx.customer.orders.payment_status

String

Required

The payment status the list is narrowed to; empty for all.

ctx.customer.orders.payment_statuses

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.

ctx.customer.orders.payment_statuses[].count

Integer

Required

ctx.customer.orders.payment_statuses[].name

String

Required

The payment status in the shopper's storefront language; empty for All, whose label is the theme's own.

ctx.customer.orders.payment_statuses[].selected

Boolean

Required

ctx.customer.orders.payment_statuses[].slug

String

Required

The payment status code (unpaid, partially_paid, paid, partially_refunded, refunded, authorized); empty for All.

ctx.customer.orders.payment_statuses[].url

URL

Required

ctx.customer.orders.prev_url

String

Required

ctx.customer.orders.query

String

Required

ctx.customer.orders.search

Object

Required

ctx.customer.orders.search.action

URL

Required

ctx.customer.orders.search.hidden_fields

Array of object

Required

ctx.customer.orders.search.hidden_fields[].name

String

Required

ctx.customer.orders.search.hidden_fields[].value

String

Required

ctx.customer.orders.search.query_param

String

Required

ctx.customer.orders.status

String

Required

ctx.customer.orders.statuses

Array of object

Required

ctx.customer.orders.statuses[].count

Integer

Required

ctx.customer.orders.statuses[].name

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.

ctx.customer.orders.statuses[].selected

Boolean

Required

ctx.customer.orders.statuses[].slug

String

Required

ctx.customer.orders.statuses[].url

URL

Required

ctx.customer.orders.total

Integer

Required

ctx.customer.orders_count

Integer

Required

ctx.customer.phone

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.

ctx.customer.phone_display

String

Optional

phone formatted for display in international format, such as +66 93 364 8073.

ctx.customer.phone_verified

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.

ctx.customer.store_credit

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.

ctx.customer.store_credit.balance

Presented money

Required

What the shopper can spend at checkout.

ctx.customer.store_credit.currency

String

Required

The currency the Store Credit is held in (ISO 4217): the store's base currency.

ctx.customer.store_credit.history

Array of object

Required

One page of movements (20), newest first. The merchant's notes are never included.

ctx.customer.store_credit.history[].amount

Presented money

Required

The signed amount: positive when credit was added, negative when used or removed.

ctx.customer.store_credit.history[].created_at

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.

ctx.customer.store_credit.history[].created_at_iso

Timestamp

Required

When (RFC 3339 in the store's timezone).

ctx.customer.store_credit.history[].kind

String

Required

What happened: grant, revoke, redeem, refund_credit, redemption_reversal or adjustment.

ctx.customer.store_credit.history[].label

String

Required

What happened, in the shopper's language (Added, Removed, Used, Refund, Returned, Adjusted).

ctx.customer.store_credit.history[].order_id

String

Optional

The shopper's order the movement belongs to, when there is one; link it as {{ routes.account_url }}/orders/{{ order_id }}.

ctx.customer.store_credit.history[].order_number

String

Optional

That order's number, such as #1015.

ctx.customer.store_credit.history_next_url

URL

Required

The next page's URL; empty on the last page. Render it as given.

ctx.customer.store_credit.history_page

Integer

Required

The page shown (1-based).

ctx.customer.store_credit.history_pages

Integer

Required

How many pages there are.

ctx.customer.store_credit.history_prev_url

URL

Required

The previous page's URL; empty on the first page. Render it as given.

ctx.customer.store_credit.history_total

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

ctx.customer_settings

Object

Declared root

ctx.customer_settings.account_mode

String

Required

required: shoppers sign in to check out; optional: they can also check out as a guest.

ctx.customer_settings.account_url

URL

Required

ctx.customer_settings.collect_checkout_marketing_consent

Boolean

Required

ctx.customer_settings.collect_marketing_consent

Boolean

Required

ctx.customer_settings.collect_text_marketing_consent

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.

ctx.customer_settings.default_phone_country

String

Required

ctx.customer_settings.email_login_available

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.

ctx.customer_settings.email_otp_enabled

Boolean

Required

ctx.customer_settings.guest_cart_duration_days

Integer

Required

ctx.customer_settings.guest_checkout_available

Boolean

Required

True when the store lets shoppers check out without signing in (account_mode optional).

ctx.customer_settings.guest_wishlist_duration_days

Integer

Required

ctx.customer_settings.guest_wishlist_enabled

Boolean

Required

ctx.customer_settings.login_url

URL

Required

ctx.customer_settings.phone_add_available

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.

ctx.customer_settings.phone_login_available

Boolean

Required

ctx.customer_settings.phone_otp_enabled

Boolean

Required

ctx.customer_settings.phone_registration_available

Boolean

Required

ctx.customer_settings.preferred_auth_method

String

Required

ctx.customer_settings.privacy_request_url

URL

Required

ctx.customer_settings.register_url

URL

Required

ctx.customer_settings.registration_enabled

Boolean

Required

ctx.customer_settings.registration_fields

Array of object

Required

ctx.customer_settings.registration_fields[].field

String

Required

ctx.customer_settings.registration_fields[].required

Boolean

Required

ctx.customer_settings.registration_fields[].shown

Boolean

Optional

ctx.customer_settings.require_newsletter_double_opt_in

Boolean

Required

ctx.customer_settings.text_marketing_consent_label

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.

ctx.customer_settings.wishlist_enabled

Boolean

Required

ctx.customer_settings.wishlist_max_items

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

ctx.gift_card

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

ctx.phone_countries

Array of object

Declared root

ctx.phone_countries[].dial_code

String

Required

ctx.phone_countries[].example

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.

ctx.phone_countries[].flag

String

Required

ctx.phone_countries[].iso_code

String

Required

ctx.phone_countries[].max_digits

Integer

Optional

ctx.phone_countries[].min_digits

Integer

Optional

ctx.phone_countries[].name

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

ctx.forms

Object

Declared root

ctx.forms.buy_now

Object

Required

ctx.forms.buy_now.gift_card_recipient_email

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.

ctx.forms.buy_now.gift_card_recipient_email.available

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.

ctx.forms.buy_now.gift_card_recipient_email.max_length

Integer

Optional

ctx.forms.buy_now.gift_card_recipient_email.min_length

Integer

Optional

ctx.forms.buy_now.gift_card_recipient_email.required

Boolean

Required

ctx.forms.buy_now.gift_card_recipient_message

Object

Required

max_length: the longest message the platform accepts (characters). Bind it to the textarea's maxlength and any character counter.

ctx.forms.buy_now.gift_card_recipient_message.max_length

Integer

Optional

ctx.forms.buy_now.gift_card_recipient_message.min_length

Integer

Optional

ctx.forms.buy_now.gift_card_recipient_message.required

Boolean

Required

ctx.forms.buy_now.gift_card_recipient_name

Object

Required

max_length: the longest recipient name the platform accepts (characters). Bind it to the input's maxlength.

ctx.forms.buy_now.gift_card_recipient_name.max_length

Integer

Optional

ctx.forms.buy_now.gift_card_recipient_name.min_length

Integer

Optional

ctx.forms.buy_now.gift_card_recipient_name.required

Boolean

Required

ctx.forms.buy_now.gift_card_recipient_phone

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.

ctx.forms.buy_now.gift_card_recipient_phone.available

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.

ctx.forms.buy_now.gift_card_recipient_phone.max_length

Integer

Optional

ctx.forms.buy_now.gift_card_recipient_phone.min_length

Integer

Optional

ctx.forms.buy_now.gift_card_recipient_phone.required

Boolean

Required

ctx.forms.cart_add

Object

Required

ctx.forms.cart_add.gift_card_recipient_email

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.

ctx.forms.cart_add.gift_card_recipient_email.available

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.

ctx.forms.cart_add.gift_card_recipient_email.max_length

Integer

Optional

ctx.forms.cart_add.gift_card_recipient_email.min_length

Integer

Optional

ctx.forms.cart_add.gift_card_recipient_email.required

Boolean

Required

ctx.forms.cart_add.gift_card_recipient_message

Object

Required

max_length: the longest message the platform accepts (characters). Bind it to the textarea's maxlength and any character counter.

ctx.forms.cart_add.gift_card_recipient_message.max_length

Integer

Optional

ctx.forms.cart_add.gift_card_recipient_message.min_length

Integer

Optional

ctx.forms.cart_add.gift_card_recipient_message.required

Boolean

Required

ctx.forms.cart_add.gift_card_recipient_name

Object

Required

max_length: the longest recipient name the platform accepts (characters). Bind it to the input's maxlength.

ctx.forms.cart_add.gift_card_recipient_name.max_length

Integer

Optional

ctx.forms.cart_add.gift_card_recipient_name.min_length

Integer

Optional

ctx.forms.cart_add.gift_card_recipient_name.required

Boolean

Required

ctx.forms.cart_add.gift_card_recipient_phone

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.

ctx.forms.cart_add.gift_card_recipient_phone.available

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.

ctx.forms.cart_add.gift_card_recipient_phone.max_length

Integer

Optional

ctx.forms.cart_add.gift_card_recipient_phone.min_length

Integer

Optional

ctx.forms.cart_add.gift_card_recipient_phone.required

Boolean

Required

ctx.forms.comment

Object

Required

ctx.forms.comment.author_email

Object

Required

ctx.forms.comment.author_email.max_length

Integer

Optional

ctx.forms.comment.author_email.min_length

Integer

Optional

ctx.forms.comment.author_email.required

Boolean

Required

ctx.forms.comment.author_name

Object

Required

ctx.forms.comment.author_name.max_length

Integer

Optional

ctx.forms.comment.author_name.min_length

Integer

Optional

ctx.forms.comment.author_name.required

Boolean

Required

ctx.forms.comment.content

Object

Required

ctx.forms.comment.content.max_length

Integer

Optional

ctx.forms.comment.content.min_length

Integer

Optional

ctx.forms.comment.content.required

Boolean

Required

ctx.forms.contact

Object

Required

ctx.forms.contact.body

Object

Required

ctx.forms.contact.body.max_length

Integer

Optional

ctx.forms.contact.body.min_length

Integer

Optional

ctx.forms.contact.body.required

Boolean

Required

ctx.forms.contact.email

Object

Required

ctx.forms.contact.email.max_length

Integer

Optional

ctx.forms.contact.email.min_length

Integer

Optional

ctx.forms.contact.email.required

Boolean

Required

ctx.forms.contact.name

Object

Required

ctx.forms.contact.name.max_length

Integer

Optional

ctx.forms.contact.name.min_length

Integer

Optional

ctx.forms.contact.name.required

Boolean

Required

ctx.forms.contact.phone

Object

Required

ctx.forms.contact.phone.max_length

Integer

Optional

ctx.forms.contact.phone.min_length

Integer

Optional

ctx.forms.contact.phone.required

Boolean

Required

ctx.forms.contact.subject

Object

Required

ctx.forms.contact.subject.max_length

Integer

Optional

ctx.forms.contact.subject.min_length

Integer

Optional

ctx.forms.contact.subject.required

Boolean

Required

ctx.forms.gift_card

Object

Required

ctx.forms.gift_card.code

Object

Required

ctx.forms.gift_card.code.max_length

Integer

Optional

ctx.forms.gift_card.code.min_length

Integer

Optional

ctx.forms.gift_card.code.required

Boolean

Required

ctx.forms.newsletter

Object

Required

ctx.forms.newsletter.email

Object

Required

ctx.forms.newsletter.email.max_length

Integer

Optional

ctx.forms.newsletter.email.min_length

Integer

Optional

ctx.forms.newsletter.email.required

Boolean

Required

ctx.forms.review

Object

Required

ctx.forms.review.allow_images

Boolean

Optional

ctx.forms.review.content

Object

Required

ctx.forms.review.content.max_length

Integer

Optional

ctx.forms.review.content.min_length

Integer

Optional

ctx.forms.review.content.required

Boolean

Required

ctx.forms.review.guests_allowed

Boolean

Optional

ctx.forms.review.max_images

Integer

Optional

ctx.forms.review.purchase_required

Boolean

Optional

ctx.forms.review.reviewer_email

Object

Required

ctx.forms.review.reviewer_email.max_length

Integer

Optional

ctx.forms.review.reviewer_email.min_length

Integer

Optional

ctx.forms.review.reviewer_email.required

Boolean

Required

ctx.forms.review.reviewer_name

Object

Required

ctx.forms.review.reviewer_name.max_length

Integer

Optional

ctx.forms.review.reviewer_name.min_length

Integer

Optional

ctx.forms.review.reviewer_name.required

Boolean

Required

ctx.forms.review.title

Object

Required

ctx.forms.review.title.max_length

Integer

Optional

ctx.forms.review.title.min_length

Integer

Optional

ctx.forms.review.title.required

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

ctx.auth_form

Object

Declared root

ctx.auth_form.email

String

Optional

ctx.auth_form.otp_step

String

Optional

ctx.auth_form.phone_method

String

Optional

ctx.auth_form.phone_number

String

Optional

ctx.auth_form.provider

String

Optional

ctx.auth_form.purpose

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

ctx.form_error

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

ctx.auth_notice

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

ctx.form_notice

Object

Declared root

ctx.form_notice.code

String

Required

ctx.form_notice.message

String

Required

ctx.form_notice.success

Boolean

Required