Template Objects
Listed below are the SparkLayer objects available to use in templates and content zones. The objects available will depend on the themes template, refer to this documentation to see which objects are available for specific templates.
Key | Type | Description | Example(s) |
---|---|---|---|
name | string | - | - |
company | string | - | - |
address_line_1 | string | - | - |
address_line_2 | string | - | - |
city | string | - | - |
region_code | string | - | - |
postal_code | string | - | - |
country_code | string | - | - |
phone | string | - | - |
Key | Type | Description | Example(s) |
---|---|---|---|
id | string | - | - |
title | string | - | - |
first_name | string | - | - |
last_name | string | - | - |
string | - | - | |
company_name | string | - | - |
external_id | string | - | - |
accounting_id | string | - | - |
Content zones can be configured as part of the invoicing feature
Note: Content zones may be configured to contain liquid variables and should be handled in templates accordingly
Key | Type | Description | Example(s) |
---|---|---|---|
title | string | - | - |
content | string | - | - |
Key | Type | Description | Example(s) |
---|---|---|---|
content_zones.zone_1 | ContentZone | - | - |
content_zones.zone_2 | ContentZone | - | - |
content_zones.zone_3 | ContentZone | - | - |
Merchant details
Key | Type | Description | Example(s) |
---|---|---|---|
address1 | string,null | The address line 1 associated to the merchants store address | - |
address2 | string,null | The address line 2 associated to the merchants store address | - |
base_currency | string,null | The base currency used by the store | USD,GBP |
city | string,null | The city associated to the merchants store address | - |
region | string,null | The region code associated to the merchants store address | - |
country | string,null | The country code associated to the merchants store address | GB |
string,null | The email associated to the merchant | - | |
phone | string,null | The phone number associated to the merchants store | - |
postcode | string,null | The postcode associated to the merchants store address | - |
store_name | string,null | The connected platforms store name | - |
timezone | string,null | - | - |
url | string,null | - | - |
locale | string,null | The default locale of the store | en,fr |
Represents a monetary value
Key | Type | Description | Example(s) |
---|---|---|---|
amount | string | - | - |
currency_code | string | - | GBP,USD |
Key | Type | Description | Example(s) |
---|---|---|---|
billing_address | Address | - | - |
customers.sparklayer | Customer | - | - |
custom_fields.[].name | string | - | - |
custom_fields.[].value | string,null | - | - |
customer_reference | string,null | - | - |
dates.created_at | string | - | - |
dates.updated_at | string | - | - |
dates.placed_at | string,null | - | - |
dates.calculated_submitted_at | string,null | - | - |
identifiers.visible | string | - | - |
packages | array of Package | - | - |
line_items | array of LineItem | - | - |
subtotal | Money | - | - |
tax | Money | - | - |
shipping_cost | Money | - | - |
calculated_total | Money | - | - |
Note: This documentation is in beta and may not be accurate, please contact support if you have any issues or questions