Digital Gift Messages – Email Templates
When configuring Giftship’s email templates, dynamic data can be outputted in the emails by referencing object variables using Liquid syntax. Depending on the final use case of the email template, different objects can be referenced.
For digital gift message emails, the following objects can be accessed:
The Shop and Order objects are Shopify liquid objects so please refer to their documentation on the available fields.
In this article, we will cover the Delivery object, which includes information pertaining to the digital gift message such as the message details, delivery date, and more.
Delivery Object
The delivery object include the following properties:
# customer_email (string) The email of the person who sent the gift # customer_name (string) The name of the person who sent the gift # customer_phone (string) The phone number of the person who sent the gift # `deduplication_key` (string) A unique identifier of for the delivery used for creating the storefront link (see example below) # `delivery_date` (string) The scheduled delivery date in Y-m-d format # `id` (number) The ID of the delivery # `message_details` (object) Contains the personal gift message information # `order_is_fulfilled` (boolean) Whether the associated Shopify order has been fulfilled # recipient_email (string) The email address of the gift recipient # recipient_phone (string) The phone number of the gift recipient # video_hash (string) A unique identifier of for the video message
The delivery message_details object includes the following properties:
# from (string) The gift message from field # message (string) The gift message # to (string) The gift message to field
Delivery Object Example
The below is an example of a delivery object:
"delivery": {
"customer_email": "jane@gmail.com",
"customer_name": "Jane",
"customer_phone": null,
"deduplication_key": "12345-56789"
"delivery_date": "October 20, 2025",
"id": 1,
"message_details": {
"from": "Jane",
"message": "Happy birthday! I hope you have a great day.",
"to": "John"
}
"order_is_fulfilled": false,
"recipient_email": "john@gmail.com",
"recipient_phone": "+1(555)123-4567",
"video_hash": null
}
Delivery Object Example Usage
The below shows examples of referencing delivery object variables in an email template:
<h2>
Hi, {{ delivery.customer_name }}!
</h2>
<p class="delivery-gift-message">
{{ delivery.message_details.message }}
</p>
{% if delivery.delivery_date %}
<span>
Your gift will ship on {{ delivery.delivery_date | date: "%B %d, %Y" }}.
</span>
{% endif %}
<a
href="https://{{ shop.domain }}/a/gs/delivery/{{ delivery.deduplication_key }}"
>
Link to storefront landing page
</a>