> For the complete documentation index, see [llms.txt](https://developer.firmhouse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.firmhouse.com/liquid/available-tags.md).

# Available tags

## applied\_promotion

Applied promotion

| Properties                                       |                                                                                                                                      |
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| active                                           | Indicates if this applied promotion is active                                                                                        |
| amount\_used\_including\_tax\_cents              | Indicates if the amount used including tax                                                                                           |
| created\_at                                      | The date and time when the applied promotion was created.                                                                            |
| deactivate\_after\_amount\_including\_tax\_cents | The amount after which the promotion should get deactivated on a customer                                                            |
| deactivate\_after\_times                         | After how many times this promotion is "used up" for a customer                                                                      |
| deactivation\_strategy                           | Which mechanism will be used to deactivate the applied promotion                                                                     |
| discount\_code                                   | The discount code that applied this promotion                                                                                        |
| id                                               | ID of the applied promotion                                                                                                          |
| next\_order\_discount\_percentage                | <p>The effective percentage discount for the subscription's next order.<br>Only available for applied order discount promotions.</p> |
| promotion                                        |                                                                                                                                      |
| promotion\_id                                    | The promotion ID that the applied promotion is related to                                                                            |
| subscription\_id                                 | The subscription ID that the applied promotion is related to.                                                                        |
| times\_used                                      | Indicates how many times this promotion was used                                                                                     |
| updated\_at                                      | The date and time when the applied promotion was updated.                                                                            |

## asset

An asset representing a physical device, product, or something else that can be in the possession of a subscription.

| Properties                    |                                                                                                                        |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| external\_number              | The external number of the asset.                                                                                      |
| id                            | The ID of the asset.                                                                                                   |
| internal\_number              | The internal number of the asset.                                                                                      |
| notes                         | Notes recorded about the asset.                                                                                        |
| product ([product](#product)) |                                                                                                                        |
| purchase\_price               | The current purchase price to the customer will pay to purchase the asset.                                             |
| status                        | <p>Status of the asset. Possible values: available, in\_refurbishment, at\_customer,<br>purchased, scrapped, lost.</p> |

## asset\_ownership

An ownership record for an asset assigned to a subscription.

| Properties              |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| asset ([asset](#asset)) |                                                                         |
| asset\_description      | The human-readable asset description.                                   |
| asset\_ownership        |                                                                         |
| asset\_ownership\_id    | The ID of the asset ownership.                                          |
| purchase\_offer\_url    | The URL that creates an asset purchase offer and continues to checkout. |
| purchase\_price         | The purchase price formatted with currency symbol.                      |
| purchase\_price\_cents  | The purchase price in cents.                                            |

## churn\_request

A cancellation or pause request and how it was resolved.

| Properties          |                                                                                                                                                           |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| created\_at         | The date and time the churn request was created.                                                                                                          |
| feedback            | The free-text feedback the customer left, if any.                                                                                                         |
| flow                | Whether the request was raised while cancelling or pausing. Possible values: cancellation, pause.                                                         |
| follow\_up\_action  | <p>The follow-up action (win-back offer) chosen by the customer.<br>Possible values: pause\_subscription, skip\_next\_order, offer\_discount, cancel.</p> |
| id                  | The ID of the churn request.                                                                                                                              |
| reason\_description | The customer-facing text configured for the recorded reason, if any.                                                                                      |
| reason\_title       | The title of the recorded reason, if any.                                                                                                                 |
| status              | The status of the churn request. Possible values: initiated, prevented, completed.                                                                        |
| updated\_at         | The date and time the churn request was last updated.                                                                                                     |

## collection\_case

A collection case.

| Properties                         |                                                                   |
| ---------------------------------- | ----------------------------------------------------------------- |
| case\_number                       | The case number of the collection case.                           |
| case\_type                         | The collection case type. Possible values: intrum, manual.        |
| created\_at                        | The date and time the collection case was created.                |
| id                                 | ID of the collection case.                                        |
| invoices ([\[invoice\]](#invoice)) |                                                                   |
| project\_id                        | The project id of the collection case.                            |
| status                             | The status of the collection case. Possible values: open, closed. |
| updated\_at                        | The date and time the collection case was last updated.           |

## contract\_term\_event

A contract term event.

| Properties       |                                                                |
| ---------------- | -------------------------------------------------------------- |
| consumed\_at     | The date when this contract term event was consumed.           |
| event\_type      | The contract term event type.                                  |
| invoice          | The invoice processed at this contract term event.             |
| subscribed\_plan | The subscribed plan for which this contract term is generated. |

## customer\_feedback

Customer feedback.

| Properties       |                                                                                              |
| ---------------- | -------------------------------------------------------------------------------------------- |
| comments         | The given feedback.                                                                          |
| created\_at      | The date and time when the feedback was given.                                               |
| feedback\_type   | The type of customer feedback. Possible values: cancellation, other, customer\_satisfaction. |
| id               | ID of the customer feedback.                                                                 |
| subscription\_id | The subscription ID that the feedback is related to.                                         |
| updated\_at      | The date and time when the feedback was updated.                                             |

## discount\_code

A discount code that can be used at signup

| Properties  |                                                       |
| ----------- | ----------------------------------------------------- |
| code        | The code of the discount code.                        |
| created\_at | The date and time when the discount code was created. |
| id          | The ID of the discount code.                          |
| updated\_at | The date and time when the discount code was updated. |

## extra\_field\_answer

Extra field answer details.

| Properties          |                                                |
| ------------------- | ---------------------------------------------- |
| extra\_field\_id    | The ID of the extra field.                     |
| formatted\_value    | The formatted value of the extra field answer. |
| id                  | The ID of the extra field answer.              |
| name                | The name of the extra field.                   |
| parameterized\_name | The parameterized name of the extra field.     |

## invoice

An invoice.

| Properties                                                           |                                                                                                                                                                                                                 |
| -------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| amount                                                               | Total amount including taxes.                                                                                                                                                                                   |
| amount\_price                                                        | The total amount including taxes with currency symbol. Example: €12,50.                                                                                                                                         |
| amount\_price\_cents                                                 | The total amount including taxes in cents.                                                                                                                                                                      |
| collection\_case                                                     | An optional collection case attached to this invoice.                                                                                                                                                           |
| created\_at                                                          | DateTime the invoice was created at.                                                                                                                                                                            |
| credited\_invoice\_id                                                | ID of the invoice this invoice serves as a credit invoice for.                                                                                                                                                  |
| currency                                                             | Currency of the invoice.                                                                                                                                                                                        |
| currency\_symbol                                                     | The currency symbol for the invoice.                                                                                                                                                                            |
| description                                                          | The description of the invoice.                                                                                                                                                                                 |
| id (`integer`)                                                       |                                                                                                                                                                                                                 |
| invoice\_line\_items ([\[invoice\_line\_item\]](#invoice_line_item)) |                                                                                                                                                                                                                 |
| invoiced\_at                                                         | DateTime the invoice was invoiced at.                                                                                                                                                                           |
| locale                                                               |                                                                                                                                                                                                                 |
| number                                                               | The formatted financial sequential number of the invoice.                                                                                                                                                       |
| order\_id                                                            | Id of the order this invoice is related to.                                                                                                                                                                     |
| original\_invoice ([invoice](#invoice))                              |                                                                                                                                                                                                                 |
| original\_invoice\_id                                                | ID of the invoice this invoice serves as a credit invoice for.                                                                                                                                                  |
| overdue                                                              | Whether the invoice is overdue.                                                                                                                                                                                 |
| pay\_now\_url                                                        | The URL to the page where the customer can view and immediately pay for this invoice.                                                                                                                           |
| pay\_now\_url\_for\_invoice                                          |                                                                                                                                                                                                                 |
| payment ([payment](#payment))                                        |                                                                                                                                                                                                                 |
| pending\_retries?                                                    | If there are currently any payments in progress for this invoice.                                                                                                                                               |
| pending\_retries\_for\_invoice?                                      |                                                                                                                                                                                                                 |
| project                                                              |                                                                                                                                                                                                                 |
| shopify\_order\_id                                                   | The Shopify order ID associated with this invoice.                                                                                                                                                              |
| shopify\_subscription\_billing\_attempt\_id                          | The Shopify subscription billing attempt ID associated with this invoice.                                                                                                                                       |
| status                                                               | <p>The invoice payment status as human-readable friendly string. Possible values: Open, Cancelled,<br>Pending, Expired, Paid, Paid Out, Failed, Charged back, Refunded, Partially Refunded, Partially Paid.</p> |
| status\_code                                                         | <p>The invoice payment status as underscored string. Possible values: open, cancelled, pending, expired<br>paid, paidout, failed, charged\_back, refunded, partially\_refunded, partially\_paid.</p>            |
| status\_translated                                                   | The invoice payment status as localized string. Useful for easy display in emails and other communication.                                                                                                      |
| subscription                                                         |                                                                                                                                                                                                                 |

## invoice\_line\_item

A line item on an invoice.

| Properties                                      |                                                                                                                                                                                   |
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| amount\_excluding\_tax\_cents                   | The amount of the line item excluding taxes, in cents.                                                                                                                            |
| amount\_including\_tax\_cents                   | The amount of the line item including taxes, in cents.                                                                                                                            |
| billing\_period\_ends\_at                       | The end date and time of the billing period of the invoice line item.                                                                                                             |
| billing\_period\_starts\_at                     | The start date and time of the billing period of the invoice line item.                                                                                                           |
| description                                     | The description or text on the line item.                                                                                                                                         |
| effective\_amount\_excluding\_tax               | Effective unit price excluding tax, corrected based on invoice discount                                                                                                           |
| effective\_amount\_excluding\_tax\_cents        | Effective unit price excluding tax cents, corrected based on invoice discount                                                                                                     |
| effective\_amount\_including\_tax               | Effective unit price including tax, corrected based on invoice discount                                                                                                           |
| effective\_amount\_including\_tax\_cents        | Effective unit price including tax cents, corrected based on invoice discount                                                                                                     |
| id                                              | ID of the line item.                                                                                                                                                              |
| invoice\_line\_item                             |                                                                                                                                                                                   |
| line\_item\_type                                | <p>The line item type of the invoice line item. Possible values: subscription, product,<br>shipping, discount, credit, manual\_invoice, promotion:, initial, asset\_purchase.</p> |
| locale                                          |                                                                                                                                                                                   |
| metadata                                        | Metadata on the invoice line item in key-value pairs.                                                                                                                             |
| product ([product](#product))                   |                                                                                                                                                                                   |
| quantity                                        | The quantity of the line item.                                                                                                                                                    |
| tax\_percentage                                 | The tax percentage of the line item.                                                                                                                                              |
| total\_amount\_excluding\_tax                   | The total amount of the line item excluding taxes.                                                                                                                                |
| total\_amount\_excluding\_tax\_cents            | The total amount of the line item excluding taxes, in cents.                                                                                                                      |
| total\_amount\_including\_tax                   | The total amount of the line item including taxes. Example: €12,20                                                                                                                |
| total\_amount\_including\_tax\_cents            | The total amount of the line item including tax, in cents. Example: 1220                                                                                                          |
| total\_effective\_amount\_excluding\_tax\_cents | Total effective amount excluding tax, corrected based on invoice discount                                                                                                         |
| total\_effective\_amount\_including\_tax\_cents | Total effective amount including tax, corrected based on invoice discount                                                                                                         |
| total\_tax\_amount                              | The total tax amount of the line item.                                                                                                                                            |
| total\_tax\_amount\_cents                       | The total tax amount of the line item, in cents.                                                                                                                                  |

## invoice\_reminder

An invoice reminder

| Properties       |                                 |
| ---------------- | ------------------------------- |
| final\_reminder  | The final invoice reminder      |
| reminder\_number | The number of invoice reminder. |

## klaviyo\_profile

Klaviyo profile data for the subscription email address. Requires the Firmhouse Klaviyo app to be connected with OAuth.

| Properties                  |   |
| --------------------------- | - |
| properties (`hash`)         |   |
| segment\_ids (`[string]`)   |   |
| segment\_names (`[string]`) |   |
| segments (`[hash]`)         |   |

## offer

An offer.

| Properties                    |                                                                                                |
| ----------------------------- | ---------------------------------------------------------------------------------------------- |
| accept\_url                   | The URL to directly accept and immediately pay for the offer.                                  |
| created\_at                   | DateTime the offer was created at.                                                             |
| details\_url                  | The URL to the page where the customer can view and pay for the offer.                         |
| expires\_at                   | DateTime the offer expires at.                                                                 |
| failure\_url                  | An optional URL to redirect the customer if offer has expired"                                 |
| id                            | The ID of the offer.                                                                           |
| invoice ([invoice](#invoice)) |                                                                                                |
| invoice\_id                   | Id of the invoice associated with this offer.                                                  |
| locale                        |                                                                                                |
| offer\_type                   | The offer type as underscored string. Possible values: general, asset\_purchase, plan\_switch. |
| plan ([plan](#plan))          |                                                                                                |
| status                        | The offer status as underscored string. Possible values: pending, completed.                   |
| subscription                  |                                                                                                |
| subscription\_id              | Id of the subscription this offer is made for.                                                 |
| success\_url                  | An optional URL to redirect the customer after successful payment."                            |

## order

An order.

| Properties                                                         |                                                                                                                                                                 |
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| address                                                            | Shipping address line on the order.                                                                                                                             |
| amount                                                             | The total amount of the order.                                                                                                                                  |
| amount\_cents                                                      | Total amount of the order, in cents.                                                                                                                            |
| amount\_currency                                                   | Currency of the amount on the order.                                                                                                                            |
| applied\_promotions ([\[applied\_promotion\]](#applied_promotion)) |                                                                                                                                                                 |
| cancel\_url                                                        | URL where the customer can cancel the order.                                                                                                                    |
| city                                                               | Shipping city on the order.                                                                                                                                     |
| company\_name                                                      | Shipping company name on the order.                                                                                                                             |
| confirm\_url                                                       | URL where the customer can confirm the order.                                                                                                                   |
| country                                                            | Shipping country on the order.                                                                                                                                  |
| created\_at                                                        | Date and time when the order was created.                                                                                                                       |
| discount                                                           | The total discount on the order, including taxes.                                                                                                               |
| discount\_cents                                                    | The discount on the order, in cents.                                                                                                                            |
| discount\_currency                                                 | The currency of the discount on the order.                                                                                                                      |
| discount\_excl\_tax                                                | The total discount on the order, excluding taxes.                                                                                                               |
| district                                                           | Shipping district on the order.                                                                                                                                 |
| empty\_track\_and\_trace\_sent\_at                                 |                                                                                                                                                                 |
| from\_address                                                      | From address of the merchant on the order.                                                                                                                      |
| fulfilled\_at                                                      | The date and time on which the order was fulfilled                                                                                                              |
| house\_number                                                      | Shipping house number on the order.                                                                                                                             |
| id (`integer`)                                                     |                                                                                                                                                                 |
| invoice ([invoice](#invoice))                                      |                                                                                                                                                                 |
| invoice\_id                                                        | The ID of the invoice that was generated for the order.                                                                                                         |
| last\_name                                                         | Shipping last name on the order.                                                                                                                                |
| minimum\_order\_amount\_reached?                                   | Whether the configured minimum amount is reached for the order.                                                                                                 |
| name                                                               | Shipping first name on the order.                                                                                                                               |
| order\_announcement\_sent\_at                                      | The date and time when the order announcement was sent to the customer.                                                                                         |
| order\_confirmation\_sent\_at                                      | The date and time when the order confirmation was sent to the customer.                                                                                         |
| order\_lines ([\[order\_line\]](#order_line))                      |                                                                                                                                                                 |
| payment\_id                                                        | ID of the first payment that was used to pay for the order.                                                                                                     |
| phone\_number                                                      | Shipping phone number on the order.                                                                                                                             |
| products ([\[product\]](#product))                                 |                                                                                                                                                                 |
| reminder\_sent\_at                                                 | The date and time when the most recent order reminder was sent.                                                                                                 |
| self\_service\_url                                                 | URL to view this order in the self-service center.                                                                                                              |
| send\_reminder\_on                                                 | The date when the a reminder for confirming the order will be sent.                                                                                             |
| shipment\_date                                                     | The date when the order was generated.                                                                                                                          |
| shipping\_costs                                                    | The shipping costs on the order, including taxes.                                                                                                               |
| shipping\_costs\_cents                                             | The shipping costs on the order, in cents.                                                                                                                      |
| shipping\_costs\_currency                                          | The currency of the shipping costs on the order.                                                                                                                |
| shipping\_costs\_excl\_tax                                         | The shipping costs on the order, excluding taxes.                                                                                                               |
| shipping\_costs\_excl\_tax\_cents                                  | The shipping costs on the order, excluding taxes in cents.                                                                                                      |
| shopify\_fulfillment\_order\_id                                    | The Shopify fulfillment order ID associated with this order.                                                                                                    |
| shopify\_id                                                        | The Shopify order ID associated with this order.                                                                                                                |
| shopify\_order\_status\_page\_url                                  | <p>URL to view the order on the customer's Shopify order status page.<br>Fetches the URL from the Shopify API. Cached for 1 hour. Times out after 1 second.</p> |
| snooze\_url                                                        | URL where the customer can snooze the order.                                                                                                                    |
| state                                                              | Shipping state on the order.                                                                                                                                    |
| status                                                             | <p>The status of the order. Possible values: pending, confirmed, snoozed,<br>cancelled, fulfilled, draft.</p>                                                   |
| subscription\_id                                                   | ID of the subscription that the order was generated for.                                                                                                        |
| subtotal                                                           | The sum of the order lines on the order, including taxes.                                                                                                       |
| subtotal\_excl\_tax                                                | The sum of the order lines on the order, excluding taxes.                                                                                                       |
| total\_tax                                                         | The total amount of tax on the order.                                                                                                                           |
| track\_and\_trace\_code                                            | The track and trace code for the order.                                                                                                                         |
| tracking\_codes                                                    | An array of all tracking codes for the order.                                                                                                                   |
| updated\_at                                                        | Date and time when the order was last updated.                                                                                                                  |
| zipcode                                                            | Shipping zipcode or postal code on the order.                                                                                                                   |

## order\_line

A line on an order.

| Properties                                              |                                                          |
| ------------------------------------------------------- | -------------------------------------------------------- |
| amount\_excluding\_tax                                  | Amount excluding tax per each unit                       |
| amount\_excluding\_tax\_cents                           | Amount excluding tax per each unit, in cents             |
| amount\_including\_tax                                  | Amount including tax per each unit                       |
| amount\_including\_tax\_cents                           | Amount including tax per each unit, in cents             |
| locale                                                  |                                                          |
| metadata                                                | Metadata on the order line line item in key-value pairs. |
| ordered\_product ([ordered\_product](#ordered_product)) |                                                          |
| product ([product](#product))                           |                                                          |
| product\_id                                             |                                                          |
| product\_sku                                            | The product SKU.                                         |
| product\_title                                          | The product title.                                       |
| product\_type                                           | The product type.                                        |
| quantity                                                | The quantity of the order line.                          |
| shopify\_product\_id                                    |                                                          |
| shopify\_variant\_id                                    |                                                          |
| tax\_percentage                                         | The tax percentage of the order line                     |
| total\_amount\_excluding\_tax                           | Total amount excluding tax                               |
| total\_amount\_excluding\_tax\_cents                    | Total amount excluding tax, in cents                     |
| total\_amount\_including\_tax                           | Total amount including tax                               |
| total\_amount\_including\_tax\_cents                    | Total amount including tax, in cents                     |
| total\_tax\_amount                                      | Total tax amount                                         |
| total\_tax\_amount\_cents                               | Total tax amount, in cents                               |

## ordered\_product

Information about a product that is or was on a subscription.

| Properties                                          |                                                                                                                                                                                                                                              |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| custom\_price\_cents                                | The custom price in the currency's smallest subunit if a different price is set for this customer.                                                                                                                                           |
| firmhouse\_metadata\_url                            | URL to read and update allowlisted Firmhouse metadata for this ordered product.                                                                                                                                                              |
| grace\_cancellation\_ends\_at                       | The date and time at which the grace cancellation period ends.                                                                                                                                                                               |
| grace\_cancellation\_period                         | The grace cancellation period of the ordered product in grace cancellation period units.                                                                                                                                                     |
| grace\_cancellation\_unit                           | <p>The grance cancellation period unit of the ordered product.<br>Possible values: days, weeks, months, years</p>                                                                                                                            |
| id                                                  | The ID of the ordered product.                                                                                                                                                                                                               |
| in\_grace\_cancellation                             | Wether the ordered product is in the grace cancellation period.                                                                                                                                                                              |
| in\_maximum\_commitment                             | Wether the ordered product is in the maximum commitment period.                                                                                                                                                                              |
| in\_minimum\_commitment                             | Whether the ordered product is in the minimum commitment period.                                                                                                                                                                             |
| instalment\_current\_number                         | The current Shopify based instalment number for the ordered product.                                                                                                                                                                         |
| instalment\_original\_product ([product](#product)) |                                                                                                                                                                                                                                              |
| instalment\_total\_count                            | The total number of instalments for the ordered product.                                                                                                                                                                                     |
| interval                                            | <p>The interval in interval unit of measure at which the ordered product is shipped.<br>The product interval is used if this is empty.</p>                                                                                                   |
| interval\_unit\_of\_measure                         | <p>The unit of measure for the interval at which the ordered product is shipped.<br>Possible values: default (take unit from associated product), days, weeks, months.<br>The product unit of measure is used if this is set to default.</p> |
| localized\_title                                    | The localized title of the product subscribed via the ordered product.                                                                                                                                                                       |
| maximum\_commitment\_ends\_at                       | The date and time at which the maximum commitment of the ordered product ends.                                                                                                                                                               |
| maximum\_commitment\_period                         | The maximum commitment period of the ordered product in maximum commitment units.                                                                                                                                                            |
| maximum\_commitment\_unit                           | <p>The maximum commitment unit of the ordered product in which the maximum commitment period is counted.<br>Possible values: days, weeks, months, years, billing\_cycles</p>                                                                 |
| metadata                                            | Metadata on the ordered product in key-value pairs.                                                                                                                                                                                          |
| minimum\_commitment\_ends\_at                       | The date and time at which the minimum commitment of the ordered product ends.                                                                                                                                                               |
| minimum\_commitment\_period                         | The minimum commitment period of the ordered product in minimum commitment units.                                                                                                                                                            |
| minimum\_commitment\_unit                           | <p>The minimum commitment unit of the ordered product in which the minimum commitment period is counted.<br>Possible values: days, weeks, months, years, billing\_cycles</p>                                                                 |
| out\_of\_stock                                      | <p>Whether the ordered product is out of stock. Only true when the project enforces Shopify stock<br>and the underlying product is out of stock. Themes can use this to render an "Out of stock" badge.</p>                                  |
| plan ([plan](#plan))                                |                                                                                                                                                                                                                                              |
| price                                               | The price of the ordered product formatted with currency symbol.                                                                                                                                                                             |
| price\_cents                                        | The price of the ordered product in the currency's smallest subunit.                                                                                                                                                                         |
| product ([product](#product))                       |                                                                                                                                                                                                                                              |
| product\_id                                         | The ID of the product that is subscribed to via the ordered product.                                                                                                                                                                         |
| quantity                                            | The quantity of the ordered product.                                                                                                                                                                                                         |
| recurring (`boolean`)                               |                                                                                                                                                                                                                                              |
| replace\_url (`string`)                             | <p>URL where the customer can replace this ordered product with another product in the customer portal.<br>Apply the ssc\_hotlink filter in customer email to open this page without requiring a full login.</p>                             |
| shipment\_date                                      | The next date an order will be generated with this ordered product.                                                                                                                                                                          |
| shopify\_subscription\_line\_id                     | The Shopify subscription line ID associated with this ordered product (only for native subscriptions).                                                                                                                                       |
| status (`string`)                                   |                                                                                                                                                                                                                                              |
| swap\_variant\_url                                  | URL where the customer can swap this ordered product for another variant in the customer portal.                                                                                                                                             |
| title                                               | The title of the product subscribed via the ordered product.                                                                                                                                                                                 |
| total\_ordered                                      |                                                                                                                                                                                                                                              |

## payment

A payment.

| Properties                                  |                                                                                                           |
| ------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| amount\_cents                               |                                                                                                           |
| amount\_price                               |                                                                                                           |
| attempts\_count                             |                                                                                                           |
| currency                                    |                                                                                                           |
| description                                 |                                                                                                           |
| failure\_reason                             |                                                                                                           |
| failure\_reason\_translated                 |                                                                                                           |
| id (`integer`)                              |                                                                                                           |
| invoice                                     |                                                                                                           |
| most\_recent\_attempt                       |                                                                                                           |
| pay\_now\_url                               |                                                                                                           |
| payment                                     |                                                                                                           |
| payment\_id                                 |                                                                                                           |
| payment\_type                               |                                                                                                           |
| payment\_type\_translated                   |                                                                                                           |
| refunds                                     |                                                                                                           |
| retry\_attempt                              |                                                                                                           |
| retry\_attempt?                             |                                                                                                           |
| retry\_payment\_url                         |                                                                                                           |
| scheduled\_retry\_on                        |                                                                                                           |
| shopify\_subscription\_billing\_attempt\_id | The Shopify subscription billing attempt ID associated with this payment (only for native subscriptions). |
| status                                      |                                                                                                           |
| status\_translated                          |                                                                                                           |
| token (`string`)                            |                                                                                                           |

## pickup\_point

A pickup point for delivery.

| Properties    |                                                            |
| ------------- | ---------------------------------------------------------- |
| address       | The street address of the pickup point.                    |
| city          | The city of the pickup point.                              |
| country       | The country code of the pickup point.                      |
| created\_at   | The date and time when this pickup point was created.      |
| district      | The district of the pickup point.                          |
| house\_number | The house number of the pickup point.                      |
| id            | The database ID of the pickup point.                       |
| name          | The name of the pickup point.                              |
| phone\_number | The phone number of the pickup point.                      |
| provider      | The provider of this pickup point (e.g., metapack).        |
| provider\_id  | The provider's unique identifier for this pickup point.    |
| updated\_at   | The date and time when this pickup point was last updated. |
| zipcode       | The postal code of the pickup point.                       |

## plan

A plan customers can subscribe to.

| Properties     |                                          |
| -------------- | ---------------------------------------- |
| id             |                                          |
| image\_url     |                                          |
| initial\_price |                                          |
| instalments    |                                          |
| metadata       | Metadata on the plan in key-value pairs. |
| monthly\_price |                                          |
| name           |                                          |
| plan           |                                          |
| slug           |                                          |
| subscription   |                                          |

## product

A product.

| Properties                                              |                                                                          |
| ------------------------------------------------------- | ------------------------------------------------------------------------ |
| available                                               |                                                                          |
| cost\_per\_item                                         |                                                                          |
| cost\_per\_item\_cents                                  |                                                                          |
| cost\_per\_item\_excl\_tax                              |                                                                          |
| created\_at                                             |                                                                          |
| id                                                      |                                                                          |
| image\_file\_name                                       |                                                                          |
| in\_stock                                               |                                                                          |
| initial\_shipment\_delay                                |                                                                          |
| initial\_shipment\_delay\_unit\_of\_measure             |                                                                          |
| initial\_shipment\_delay\_unit\_of\_measure\_translated |                                                                          |
| interval                                                |                                                                          |
| interval\_unit\_of\_measure                             |                                                                          |
| interval\_unit\_of\_measure\_translated                 |                                                                          |
| localized\_public\_name                                 |                                                                          |
| localized\_title                                        |                                                                          |
| mandatory                                               |                                                                          |
| metadata                                                |                                                                          |
| nth\_product\_free                                      |                                                                          |
| price                                                   |                                                                          |
| price\_cents                                            | The price including tax in the subscription currency's smallest subunit. |
| price\_excl\_tax                                        |                                                                          |
| price\_excl\_tax\_cents                                 | The price excluding tax in the subscription currency's smallest subunit. |
| product                                                 |                                                                          |
| product\_image\_url                                     |                                                                          |
| project\_id                                             |                                                                          |
| ship\_on\_signup                                        |                                                                          |
| shopify\_product\_id                                    |                                                                          |
| shopify\_product\_title                                 |                                                                          |
| shopify\_product\_url                                   |                                                                          |
| shopify\_public\_product\_url                           |                                                                          |
| shopify\_variant\_id                                    |                                                                          |
| shopify\_variant\_title                                 |                                                                          |
| sku                                                     |                                                                          |
| slug                                                    |                                                                          |
| stock                                                   |                                                                          |
| subscription                                            |                                                                          |
| supplier                                                |                                                                          |
| title                                                   |                                                                          |
| updated\_at                                             |                                                                          |

## promotion

Promotion

| Properties                                       |                                                                           |
| ------------------------------------------------ | ------------------------------------------------------------------------- |
| activated                                        | If the promotion is activated                                             |
| amount\_cents                                    | The amount cents to be discounted                                         |
| auto\_apply                                      | If the promotion is automatically applied on signup                       |
| created\_at                                      | The date and time when the promotion was created.                         |
| deactivate\_after\_amount\_including\_tax\_cents | The amount after which the promotion should get deactivated on a customer |
| deactivate\_after\_times                         | After how many times this promotion is "used up" for a customer           |
| deactivation\_strategy                           | Which mechanism will be used to deactivate the promotion                  |
| discount\_type                                   | The discount type either \`percent\` or \`amount\`                        |
| discountable\_product\_ids (`[integer]`)         |                                                                           |
| ends\_at                                         | The promotion is active until                                             |
| id                                               | ID of the promotion                                                       |
| localized\_public\_name                          | The public name shown to the customer in the current rendering locale     |
| percent\_discount                                | The percent discount to be applied                                        |
| public\_name                                     | The public name shown to the customer                                     |
| starts\_at                                       | The promotion is active from                                              |
| title                                            | Title of the given promotion                                              |
| updated\_at                                      | The date and time when the promotion was updated.                         |

## promotional\_offer

A currently eligible promotional offer available to a subscription.

| Properties         |                                                                                               |
| ------------------ | --------------------------------------------------------------------------------------------- |
| accent\_color      | The merchant-selected accent color for this offer's presentation.                             |
| accent\_foreground | A high-contrast foreground color for content placed on the accent color.                      |
| accept\_url        | The public URL where the customer can review and accept the offer.                            |
| accepted           |                                                                                               |
| benefit\_label     | The localized description of what the customer receives.                                      |
| commitment         |                                                                                               |
| commitment?        | Whether accepting the offer requires a commitment from the customer.                          |
| commitment\_label  | The localized description of the customer's commitment, when present.                         |
| declined           |                                                                                               |
| description        | The localized customer-facing offer description.                                              |
| expires\_at        | The date and time at which the offer expires.                                                 |
| id                 | The Firmhouse ID of an issued offer, or a stable definition reference for an in-memory offer. |
| priority           | The offer's matching priority. Lower numbers have a higher priority.                          |
| product            | The single product featured by this offer, when one is involved.                              |
| status             | The current status. Eligible promotional offers have the pending status.                      |
| title              | The localized customer-facing offer title.                                                    |

## referral\_candy

ReferralCandy data for a subscription.

| Properties                 |   |
| -------------------------- | - |
| advocate\_reward\_discount |   |
| code                       |   |
| url                        |   |

## refund

A refund.

| Properties    |   |
| ------------- | - |
| amount\_cents |   |
| amount\_price |   |
| id            |   |
| payment       |   |
| reason        |   |
| refund        |   |
| refunded\_at  |   |
| status        |   |

## return\_order

A return order.

| Properties               |   |
| ------------------------ | - |
| desired\_return\_date    |   |
| external\_reference      |   |
| external\_status         |   |
| external\_url            |   |
| id                       |   |
| reason                   |   |
| return\_label\_file\_url |   |
| return\_order            |   |
| return\_order\_products  |   |
| returned\_on             |   |
| status                   |   |
| tracking\_code           |   |
| tracking\_url            |   |

## service\_channel

A service channel.

| Properties       |   |
| ---------------- | - |
| address          |   |
| name             |   |
| service\_channel |   |
| slug             |   |

## subscribed\_plan

Object that represents how a subscription is subscribed to a plan.

| Properties                               |                                                                                                                                                                           |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| activated\_at                            | The date and time the plan subscription was activated.                                                                                                                    |
| billing\_cycle\_interval                 |                                                                                                                                                                           |
| billing\_cycle\_interval\_period         | The billing cycle interval in the billing cycle interval unit.                                                                                                            |
| billing\_cycle\_interval\_unit           | The unit in which the billing cycle interval is measured.                                                                                                                 |
| deliveries\_in\_billing\_cycle           | The number of deliveries within one billing cycle. Returns 1 for non-prepaid plans.                                                                                       |
| delivery\_cycle\_interval\_period        | The delivery cycle interval in the delivery cycle interval unit.                                                                                                          |
| delivery\_cycle\_interval\_unit          | The unit in which the delivery cycle interval is measured.                                                                                                                |
| fixed\_commitment\_ends\_at              | The date and time at which the fixed commitment ends.                                                                                                                     |
| fixed\_commitment\_period                | The fixed commitment period of the subscription in the fixed commitment period unit.                                                                                      |
| fixed\_commitment\_unit                  | <p>The fixed commitment period unit of the subscription.<br>Possible values: days, weeks, months, years</p>                                                               |
| grace\_cancellation\_ends\_at            | The date and time at which the grace cancellation period ends.                                                                                                            |
| grace\_cancellation\_period              | The grace cancellation period of the subscription in grace cancellation period units.                                                                                     |
| grace\_cancellation\_unit                | <p>The grace cancellation period unit of the ordered product.<br>Possible values: days, weeks, months, years</p>                                                          |
| id                                       | The ID of the subscribed plan object.                                                                                                                                     |
| in\_fixed\_commitment\_term              | Wether the subscription is its fixed commitment term.                                                                                                                     |
| in\_grace\_cancellation                  | Wether the subscription is in the grace cancellation period.                                                                                                              |
| in\_maximum\_commitment                  | Whether the subscription is in the maximum commitment period.                                                                                                             |
| in\_minimum\_commitment                  | Whether the subscription is in the minimum commitment period.                                                                                                             |
| maximum\_commitment\_ends\_at            | The date and time at which the maximum commitment of the subscription product ends.                                                                                       |
| maximum\_commitment\_period              | The maximum commitment period of the subscription in maximum commitment units.                                                                                            |
| maximum\_commitment\_unit                | <p>The maximum commitment unit of the subscription in which the maximum commitment period is counted.<br>Possible values: days, weeks, months, years, billing\_cycles</p> |
| minimum\_commitment\_ends\_at            | The date and time at which the minimum commitment of the subscription product ends.                                                                                       |
| minimum\_commitment\_period              | The minimum commitment period of the subscription in minimum commitment units.                                                                                            |
| minimum\_commitment\_unit                | <p>The minimum commitment unit of the subscription in which the minimum commitment period is counted.<br>Possible values: days, weeks, months, years</p>                  |
| subscribed\_plan                         |                                                                                                                                                                           |
| unconsumed\_contract\_term\_event\_count | The number of unconsumed prepaid billing cycles.                                                                                                                          |

## subscription

A subscription.

| Properties                                                                                               |                                                                                                                                                                                                   |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active\_plan ([plan](#plan))                                                                             |                                                                                                                                                                                                   |
| address                                                                                                  | Primary or shipping address line.                                                                                                                                                                 |
| address2                                                                                                 | Primary or shipping address additional address information (apartment, floor, etc.).                                                                                                              |
| allowed\_to\_cancel?                                                                                     | Whether the subscription can be cancelled.                                                                                                                                                        |
| allowed\_to\_pause?                                                                                      | Whether the subscription can be paused.                                                                                                                                                           |
| allowed\_to\_resume?                                                                                     | Whether the subscription can be resumed.                                                                                                                                                          |
| allowed\_to\_skip?                                                                                       | Whether the upcoming order can be skipped for this subscription.                                                                                                                                  |
| allowed\_to\_snooze?                                                                                     | Whether the upcoming order can be snoozed for this subscription.                                                                                                                                  |
| allowed\_to\_switch\_plan?                                                                               | Whether the subscription can switch to another plan.                                                                                                                                              |
| applied\_promotions ([\[applied\_promotion\]](#applied_promotion))                                       |                                                                                                                                                                                                   |
| asset\_ownerships ([\[asset\_ownership\]](#asset_ownership))                                             |                                                                                                                                                                                                   |
| asset\_purchase\_offers\_blocked\_by\_outstanding\_invoices                                              | Whether asset purchase offers are blocked because the subscription has outstanding invoices.                                                                                                      |
| assets ([\[asset\]](#asset))                                                                             |                                                                                                                                                                                                   |
| bill\_to\_address                                                                                        | <p>Billing address line.<br>Returns the shipping address if different\_billing\_address is false.</p>                                                                                             |
| bill\_to\_address2                                                                                       | <p>Billing address additional address information (apartment, floor, etc.).<br>Returns the shipping address2 if different\_billing\_address is false.</p>                                         |
| bill\_to\_city                                                                                           | <p>Billing address city.<br>Returns the shipping address city if different\_billing\_address is false.</p>                                                                                        |
| bill\_to\_company\_name                                                                                  | <p>Billing address Company name of the customer.<br>Returns the shipping address company name if different\_billing\_address is false.</p>                                                        |
| bill\_to\_country                                                                                        | <p>Billing address country. Two-letter country code.<br>Returns the shipping address country if different\_billing\_address is false.</p>                                                         |
| bill\_to\_full\_address                                                                                  | <p>Billing address field where address line and house number are combined.<br>Returns the shipping address full address if different\_billing\_address is false.</p>                              |
| bill\_to\_full\_name                                                                                     | <p>Billing address Full name of the customer. First name and last name merged into a single attribute.<br>Returns the shipping address full name if different\_billing\_address is false.</p>     |
| bill\_to\_house\_number                                                                                  | <p>Billing address house number.<br>Returns the shipping address house number if different\_billing\_address is false.</p>                                                                        |
| bill\_to\_last\_name                                                                                     | <p>Billing address Last name of the customer.<br>Returns the shipping address last name if different\_billing\_address is false.</p>                                                              |
| bill\_to\_name                                                                                           | <p>Billing address First name of the customer.<br>Returns the shipping address name if different\_billing\_address is false.</p>                                                                  |
| bill\_to\_phone\_number                                                                                  | <p>Billing address phone number.<br>Returns the shipping address phone number if different\_billing\_address is false.</p>                                                                        |
| bill\_to\_salutation                                                                                     | <p>Billing address Salutation of the customer. Sometimes used as gender. Possible values: mr, ms, mx.<br>Returns the shipping address salutation if different\_billing\_address is false.</p>     |
| bill\_to\_state                                                                                          | <p>Billing address state.<br>Returns the shipping address state if different\_billing\_address is false.</p>                                                                                      |
| bill\_to\_zipcode                                                                                        | <p>Billing address zipcode or postal code.<br>Returns the shipping address zipcode if different\_billing\_address is false.</p>                                                                   |
| cancel\_subscription\_url                                                                                | URL where the customer can cancel their subscription in the self-service center.                                                                                                                  |
| cancellation\_churn\_request ([churn\_request](#churn_request))                                          |                                                                                                                                                                                                   |
| cancellation\_context                                                                                    | <p>The context in which the subscription was cancelled. Possible values: normal, in\_grace\_cancellation\_period<br>forced\_in\_miminum\_commitment, end\_of\_subscription, purchased\_device</p> |
| cancellation\_reason                                                                                     | The cancellation reason title selected by the customer when cancelling.                                                                                                                           |
| cancellation\_started\_at                                                                                | The date and time the cancellation for this subscription was initiated.                                                                                                                           |
| cancellation\_url                                                                                        | URL where the customer can cancel their subscription.                                                                                                                                             |
| cancelled\_at                                                                                            | The date and time the subscription was cancelled.                                                                                                                                                 |
| city                                                                                                     | Primary or shipping address city.                                                                                                                                                                 |
| collection\_cases ([\[collection\_case\]](#collection_case))                                             |                                                                                                                                                                                                   |
| company\_name                                                                                            | Company name of the customer.                                                                                                                                                                     |
| complete\_churn\_request\_url                                                                            | URL where a custom customer portal can POST a known reason to complete a churn request.                                                                                                           |
| complete\_your\_signup\_url                                                                              | URL where the customer can complete their signup and initial payment, in case of a two-step signup flow.                                                                                          |
| confirmed\_and\_fulfilled\_orders\_count                                                                 | The number of confirmed and fulfilled orders for the subscription.                                                                                                                                |
| country                                                                                                  | Primary or shipping address country. Two-letter country code.                                                                                                                                     |
| currency                                                                                                 | The three-letter currency the subscription is billed in. Example: EUR or USD.                                                                                                                     |
| currency\_subunit\_to\_unit                                                                              | The number of smallest currency subunits in one unit. Example: 100 for EUR and 1 for HUF.                                                                                                         |
| currency\_symbol                                                                                         | The currency symbol the subscription is billed in. Example: € or $.                                                                                                                               |
| customer\_feedbacks ([\[customer\_feedback\]](#customer_feedback))                                       |                                                                                                                                                                                                   |
| customer\_id                                                                                             |                                                                                                                                                                                                   |
| customer\_reference                                                                                      | Your reference field for this subscription.                                                                                                                                                       |
| delivery\_method                                                                                         | The delivery method for this subscription (shipping or pickup\_point).                                                                                                                            |
| different\_billing\_address                                                                              | Whether the subscription has a different billing address than the shipping address.                                                                                                               |
| edit\_subscription\_details\_url                                                                         | URL where the customer can edit their subscription details (address, payment method, etc.).                                                                                                       |
| eligible\_promotional\_offers ([\[promotional\_offer\]](#promotional_offer))                             |                                                                                                                                                                                                   |
| email                                                                                                    | The email address of the subscription.                                                                                                                                                            |
| extra\_fields                                                                                            | Array of extra fields for this subscription.                                                                                                                                                      |
| extra\_fields\_v2 ([\[extra\_field\_answer\]](#extra_field_answer))                                      |                                                                                                                                                                                                   |
| files (`[file]`)                                                                                         |                                                                                                                                                                                                   |
| full\_address                                                                                            | Primary or shipping address field where address line and house number are combined.                                                                                                               |
| full\_name                                                                                               | Full name of the customer. First name and last name merged into a single attribute.                                                                                                               |
| house\_number                                                                                            | Primary or shipping address house number.                                                                                                                                                         |
| id (`integer`)                                                                                           |                                                                                                                                                                                                   |
| imported\_subscription\_id                                                                               | Your reference field back to an ID from a system where this subscription was imported from.                                                                                                       |
| initial\_invoice ([invoice](#invoice))                                                                   |                                                                                                                                                                                                   |
| initial\_or\_recurring\_invoices\_count                                                                  | The number of initial and recurring invoices that were invoiced so far for this subscription.                                                                                                     |
| invoices ([\[invoice\]](#invoice))                                                                       |                                                                                                                                                                                                   |
| invoices\_url                                                                                            | URL where the customer can view their invoices.                                                                                                                                                   |
| klaviyo\_profile ([klaviyo\_profile](#klaviyo_profile))                                                  |                                                                                                                                                                                                   |
| last\_name                                                                                               | Last name of the customer.                                                                                                                                                                        |
| last\_order\_id                                                                                          | The ID of the most recently created order for this subscription.                                                                                                                                  |
| latest\_churn\_request ([churn\_request](#churn_request))                                                |                                                                                                                                                                                                   |
| latest\_five\_orders ([\[order\]](#order))                                                               |                                                                                                                                                                                                   |
| locale                                                                                                   | The two-letter code of the language of the subscription.                                                                                                                                          |
| login\_url                                                                                               | The URL that customers can go to to log into their self service center.                                                                                                                           |
| mandate\_url                                                                                             | URL where the customer can find evidence of their SEPA Direct Debit mandate. (Only on Stripe)                                                                                                     |
| marked\_as\_non\_paying?                                                                                 | Whether the customer currently has problems with their payment method and is marked as non-paying.                                                                                                |
| marketing\_opt\_in\_accepted?                                                                            | Whether the subscription accepted your marketing opt-in or not.                                                                                                                                   |
| metadata                                                                                                 | Metadata on the subscription in key-value pairs.                                                                                                                                                  |
| monthly\_amount                                                                                          | The monthly or recurring amount that was last calculated for the subscription. Example: €12,10.                                                                                                   |
| monthly\_amount\_cents                                                                                   | The monthly or recurring amount in the currency's smallest subunit. Example: 1210 for EUR 12.10.                                                                                                  |
| name                                                                                                     | First name of the customer.                                                                                                                                                                       |
| next\_billing\_date                                                                                      | The upcoming date the customer will be billed on. Only on plan-based projects.                                                                                                                    |
| next\_order\_preview ([order](#order))                                                                   |                                                                                                                                                                                                   |
| next\_payment\_shopify\_instalment?                                                                      | Whether the upcoming/next payment is in a Shopify instalment cycle.                                                                                                                               |
| next\_upcoming\_products ([\[ordered\_product\]](#ordered_product))                                      |                                                                                                                                                                                                   |
| not\_purchased\_asset\_ownership\_ids                                                                    | An array of asset\_ownership IDs that are not yet purchased.                                                                                                                                      |
| on\_prepaid\_plan?                                                                                       | Whether the subscription is currently on a prepaid plan.                                                                                                                                          |
| ordered\_products ([\[ordered\_product\]](#ordered_product))                                             |                                                                                                                                                                                                   |
| outstanding\_amount                                                                                      | The total outstanding amount for this subscription.                                                                                                                                               |
| pause\_churn\_request ([churn\_request](#churn_request))                                                 |                                                                                                                                                                                                   |
| pause\_reason                                                                                            | The pause reason title recorded in the most recent finalized pause request.                                                                                                                       |
| pause\_subscription\_url                                                                                 | URL where the subscription can be paused.                                                                                                                                                         |
| paused\_at                                                                                               | The date and time the subscription was paused.                                                                                                                                                    |
| paused\_until                                                                                            | <p>The date until which the subscription is paused for a fixed period (for example, a win-back offer).<br>Blank when the subscription is paused indefinitely.</p>                                 |
| payment\_method                                                                                          | The payment method currently active on the subscription.                                                                                                                                          |
| payment\_method\_summary                                                                                 | The payment method currently active on the subscription.                                                                                                                                          |
| pending\_cancellation\_final\_order\_date                                                                | <p>The estimated shipment date of the final order before a pending cancellation completes.<br>Blank when the pending-cancellation timeline is unavailable or no orders remain.</p>                |
| pending\_cancellation\_remaining\_orders\_count                                                          | <p>The number of orders that will ship before a pending cancellation completes.<br>Blank when the pending-cancellation timeline is unavailable.</p>                                               |
| phone\_number                                                                                            | Primary or shipping address phone number.                                                                                                                                                         |
| pickup\_point ([pickup\_point](#pickup_point))                                                           |                                                                                                                                                                                                   |
| planned\_cancellation\_date                                                                              | The date the subscription is planned to be cancelled.                                                                                                                                             |
| products ([\[product\]](#product))                                                                       |                                                                                                                                                                                                   |
| purchasable\_asset\_ownerships ([\[asset\_ownership\]](#asset_ownership))                                |                                                                                                                                                                                                   |
| referral\_candy ([referral\_candy](#referral_candy))                                                     |                                                                                                                                                                                                   |
| referral\_code                                                                                           | The referral code for this subscription.                                                                                                                                                          |
| rejected\_at                                                                                             | The date and time the subscription was rejected.                                                                                                                                                  |
| resume\_subscription\_url                                                                                | URL where the subscription can be resumed.                                                                                                                                                        |
| salutation                                                                                               | Salutation of the customer. Sometimes used as gender. Possible values: mr, ms, mx.                                                                                                                |
| scheduled\_orders\_count                                                                                 | The number of scheduled future orders for the subscription.                                                                                                                                       |
| segments ([\[subscription\_segment\]](#subscription_segment))                                            |                                                                                                                                                                                                   |
| shipping\_notes                                                                                          | Primary or shipping address delivery instructions.                                                                                                                                                |
| shopify\_customer\_id                                                                                    | The Shopify customer ID associated with this subscription.                                                                                                                                        |
| shopify\_subscription\_contract\_id                                                                      | The Shopify subscription contract ID associated with this subscription.                                                                                                                           |
| signup\_completed\_at                                                                                    | The date and time the subscription completed their signup and initial payment.                                                                                                                    |
| skip\_upcoming\_order\_url                                                                               | URL where the customer can skip their upcoming order, if they have an upcoming order.                                                                                                             |
| snooze\_upcoming\_order\_url                                                                             | URL where the customer can snooze their upcoming order, if they have an upcoming order.                                                                                                           |
| state                                                                                                    | Primary or shipping address state.                                                                                                                                                                |
| status                                                                                                   | <p>The status of the subscription. Possible values: inactive, activated, cancelled,<br>cancellation\_in\_progress, draft, rejected, pending\_customer\_completion, paused, stopped.</p>           |
| stopped\_at                                                                                              | The date and time the subscription was stopped.                                                                                                                                                   |
| subscribed\_plan ([subscribed\_plan](#subscribed_plan))                                                  |                                                                                                                                                                                                   |
| subscription\_acceptance\_checks ([\[subscription\_acceptance\_check\]](#subscription_acceptance_check)) |                                                                                                                                                                                                   |
| subscription\_account ([subscription\_account](#subscription_account))                                   |                                                                                                                                                                                                   |
| subscription\_selection\_url                                                                             | URL where the customer can switch between their subscriptions (multi-subscription view).                                                                                                          |
| subscription\_started\_at                                                                                | The date and time the subscription was activated and started.                                                                                                                                     |
| switch\_plan\_url                                                                                        | URL where the subscription can switch to another plan.                                                                                                                                            |
| token (`string`)                                                                                         |                                                                                                                                                                                                   |
| track\_and\_trace\_code                                                                                  |                                                                                                                                                                                                   |
| update\_payment\_method\_url                                                                             | URL where the customer can update their payment method.                                                                                                                                           |
| vat\_number                                                                                              | The VAT number of the customer.                                                                                                                                                                   |
| veriff\_identification\_url                                                                              | URL where the customer can verify their identity.                                                                                                                                                 |
| zipcode                                                                                                  | Primary or shipping address zipcode or postal code.                                                                                                                                               |

## subscription\_acceptance\_check

A Subsription acceptance check.

| Properties                      |                                                                                                |
| ------------------------------- | ---------------------------------------------------------------------------------------------- |
| id                              | The ID of the subscription acceptance check.                                                   |
| name                            | The name of the subscription acceptance check.                                                 |
| status                          | The status of the subscription acceptance check. Possible values: pending, accepted, rejected. |
| subscription\_acceptance\_check |                                                                                                |
| veriff\_session\_id             | The current Veriff session ID for Veriff identity verification acceptance checks.              |

## subscription\_account

A subscription account.

| Properties                        |   |
| --------------------------------- | - |
| id                                |   |
| subscription\_account             |   |
| subscriptions (`[subscriptions]`) |   |

## subscription\_segment

The segment a subscription was added to.

| Properties   |                                     |
| ------------ | ----------------------------------- |
| external\_id | The segment ID at its source.       |
| id           | The ID of the subscription segment. |
| name         | The segment name.                   |
| source       | The segment source.                 |

## Filters

### `json_escape`

Serializes a value as JSON. Use it without surrounding quotes when interpolating JSON templates.

**Returns:** `string`

**Example:**

```liquid
{"subscriptionId": {{ subscription.id | json_escape }}}
```

| Parameter | Required |
| --------- | -------- |
| `input`   | Yes      |

### `json_get`

Reads one top-level value from a JSON object string.

**Returns:** `object`

**Example:**

```liquid
{{ metadata_json | json_get: "campaign" }}
```

| Parameter  | Required |
| ---------- | -------- |
| `json_str` | Yes      |
| `key`      | Yes      |

### `payment_method_name`

Formats a payment method for display in customer-facing content.

**Returns:** `string`

**Example:**

```liquid
{{ payment.payment_method | payment_method_name }}
```

| Parameter        | Required |
| ---------------- | -------- |
| `payment_method` | Yes      |

### `ssc_hotlink`

Creates a signed Customer Portal link for the current subscription. Hotlink access is supported by\
product replacement, upcoming-order skip, and upcoming-order snooze actions. Other Customer Portal\
pages require a full-access login. The optional validity is an ISO 8601 duration and defaults to one week.

**Returns:** `string`

**Example:**

```liquid
{{ replacement_url | ssc_hotlink: "P1D" }}
```

| Parameter  | Required |
| ---------- | -------- |
| `url`      | Yes      |
| `validity` | No       |

### `with_veriff_return_url`

Adds a signed return URL to a Veriff verification URL.

**Returns:** `string`

**Example:**

```liquid
{{ verification_url | with_veriff_return_url: return_url }}
```

| Parameter          | Required |
| ------------------ | -------- |
| `verification_url` | Yes      |
| `return_url`       | Yes      |
