Skip to main content

Subi Notification Variables Reference

Learn about the variables you can use to customize your Subi email notification templates.

Updated over 3 weeks ago

Overview

In Subi, you can enable various email notifications to keep both you and your customers informed about their subscriptions and memberships. You can customize these email notifications using HTML coding and variables.


How to Access and Edit Notification Templates

To access and edit your notification templates, navigate to Subi app > Settings > Notifications. Click on the three dots next to the email notification you want to modify and select "Edit Code".


Notification Variables

Variables allow you to dynamically insert subscription and customer data into your email notifications. For example, you can include details such as the customer’s email, subscription contract ID, product name, and more.

The table below lists the available variables and their descriptions. These variables can be used in your HTML code when editing email templates.

Note that not all variables are available for every notification template, so be sure to check the descriptions for availability.

Available Notification Variables:

Variable

Description

contract.id

Subscription contract ID

contract.frequency

Subscription frequency (e.g., "Every 2 months", "Every 1 week", "Every 2 days")

contract.page_link

URL to the subscription contract details page (e.g., "hengamproducts.myshopify.com/admin/apps/subi/subscriptions/123")

contract.subtotal_price_with_currency

Total subscription price before any coupon discounts (e.g., "$330 USD").

Note: Not available for Payment Failure emails.​

contract.subtotal_price_amount

Total subscription price before any coupon discounts (e.g., "330").

Note: Not available for Payment Failure emails.​

contract.created_at

Subscription creation date (e.g., "Aug 4, 2024")

contract.coupon_discount_with_currency

Amount of coupon discount applied, in currency (e.g., "$20 USD").
Note: Not available for Payment Failure emails.​

contract.coupon_discount_amount

Amount of coupon discount applied, in numeric value (e.g., 20).

Note: Not available for Payment Failure emails.​

contract.total_price_amount

Total subscription price after discounts (e.g., 300)

contract.total_price_with_currency

Total subscription price after discounts (e.g., "$300 USD")

contract.lines

A list of line items in the subscription contract. Example:

{% for line in contract.lines %}

{{ line.product_title }} ({{ line.discount }}) : {{ line.price_with_currency }}

{% endfor %}

contract.line.product_title

The name of the product in the subscription contract

contract.line.variant_title

The variant of the product (e.g., "Medium")

contract.line.quantity

Quantity of the product in the subscription contract

contract.line.price_amount

Price of the subscription contract line (e.g., 300)

contract.line.price_with_currency

Price of the subscription contract line (e.g., "$300 USD")

contract.line.discount

Discount applied to the contract line (e.g., "%20", "$100 USD", "$5 USD", "%5")

shop.name

The name of the shop

shop.logo

The shop logo

shop.email

The shop email

shop.merchant_name

The merchant’s name

shop.domain

The domain of the shop (e.g., "hengam-shop.com")

shop.shopify_domain

The Shopify domain of the shop (e.g., "hengam.myshopify.com")

subify_email

The Subi email used for communications (e.g., "[email protected]")

portal_link

The URL to the customer’s Subi portal

customer.name

The customer’s name

customer.email

The customer’s email

billing.payment_failure_reason

Reason for payment failure (e.g., "Your card was declined").

Note: Only available for Payment Failure emails.

billing_settings.dunning_enabled

Indicates if dunning (retrying failed payments) is enabled (True/False).

Note: Not available for Subscription Activation and Cancellation emails.


Need Help?

Feel free to contact our support team. We're here for you anytime:

  • Live Chat: Message us from within the Subi app or your Shopify Admin.

  • Email: Reach us at [email protected].

Did this answer your question?