Docs
STEP 2-6

Email template variables

Email templates come with variables. Use them to generate email content that matches each template.

Every variable can be used in any notification template, but some variables cannot be applied if the data is not yet available when the notification is sent.

※Some variables do not work inside arrays. When using variables inside an array, refer to the "Variables available inside" column in Array variables.

Variables

PropertyDescriptionExample
Recustomer CSSThe CSS defined by Recustomer
Removing it is not recommended (the email layout breaks if you do)
mail_titleThe subject of the email返品申請を受け付けました
customer_full_nameThe shopper's full name佐藤 太郎
brand_nameThe brand name from the customization screenテストブランドストア
brand_logoThe brand logo from the customization screenhttps://test-store.com
return_cancel_portal_urlA link to the return request pagehttps://test.rcrm.com
approval_linkA link to the return approval pagehttps://test.rcrm.com/approval=xxx
current_timeThe current time when the email is sent2023/11/10
sendback_deadline_periodThe return shipping deadline as of when the email is sent30
order_numberThe order numberABC1001
product_nameThe product nameテスト商品
product_imageThe product imagehttps://test-image.png
product_quantityThe product quantity3
currency_symbolThe currency symbol used at purchase$, ¥, €
product_priceThe product price10,000
formatted_priceThe product price formatted with its currency symbol$10.00, ¥1,000
refund_content_nameThe name of a refund line注文時の送料
refund_content_priceThe amount of the corresponding refund line10,000
refund_total_priceThe refund amount10,000
variant_nameThe name of the variant option on the productサイズ
variant_valueThe value of the variant option on the productM サイズ
exchange_variant_valueThe value of the variant option on the exchange productM サイズ
interview_titleThe question text of an interview item返品理由をお教えください。
interview_valueThe answer to the question不良品のため
request_reject_textThe rejection reason when a return request is rejected商品状態が不良ではないため
resolution_methodThe resolution the shopper chose when submitting the return request交換
item_resultThe resolution selected at return approval返金
send_back_methodThe name of the return shipping method佐川集荷
send_back_descriptionThe detailed description of the return shipping method集荷日時:
2024 年 12 月 22 日 9:00〜12:00
集荷先住所:
〒111-111
東京都港区テスト 1-2-3
テストビル 5F
send_back_locationThe name of the return location返送用倉庫
send_back_zipThe postal code of the return location1010000
send_back_address1The return location's prefecture through street address, joined into one string東京都千代田区テスト1ー1
send_back_address2The rest of the return location's addressテストビル5階
send_back_telThe phone number of the return location0300000000
send_back_feeEither 元払い(お客様負担)(prepaid, paid by the shopper) or 着払い(弊社負担)(collect, paid by the store)元払い(お客様負担)
delivery_companyThe carrier registered when the exchange product was shipped佐川急便
tracking_numberThe tracking number registered when the exchange product was shipped100000000000
exchange_reject_textThe reason an exchange was rejected商品が申請時の内容と異なる
refund_reject_textThe reason a refund was rejected商品が申請時の内容と異なる
cancel_reject_textThe reason a cancellation was rejectedすでに出荷してしまった注文のため
cancel_refund_reject_textThe reason a refund for a cancellation was rejectedすでに出荷してしまった注文のため
receive_reject_textThe reason receipt was rejected商品が申請時の内容と異なる
return_line_item_idThe ID of the returned item
payment_collection_urlThe link for paying the price difference of an exchange
total_outstanding_amountThe price difference to be charged (offset against any refund)
exchange_statusThe exchange status
・unexchanged: the exchange product has not shipped
・exchanged: the exchange product has shipped
・rejected: shipping the exchange product was rejected
exchange_typeThe exchange kind
・same_variation: same variant only
・no_price_diff: variant exchange with no price difference
・with_price_diff: variant exchange with a price difference
・unknown: the exchange kind was not recorded

Array variables

Information that can have several entries, such as items and refund lines, is passed as an array. The variables you can use inside an array differ per array.

PropertyDescriptionVariables available inside
request_line_items[]An array holding the items in the return requestproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
return_line_item_id
approval_line_items[]An array holding the approved return itemsproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
return_line_item_id
reject_line_items[]An array holding the rejected return itemsproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
request_reject_text
return_line_item_id
reject_exchange_line_items[]An array holding the items whose exchange was rejectedproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
exchange_reject_text
return_line_item_id
exchange_line_items[]An array holding the exchanged itemsproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
delivery_company
tracking_number
exchange_status
exchange_type
return_line_item_id
receive_reject_line_items[]An array holding the items whose receipt was rejectedproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
receive_reject_text
return_line_item_id
receive_line_items[]An array holding the received itemsproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
return_line_item_id
return_expired_line_items[]An array holding the items whose return shipping deadline has passedproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
return_line_item_id
reship_line_items[]An array holding the reshipped itemsproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
return_line_item_id
cancel_approval_line_items[]An array holding the items whose cancellation was approvedproduct_image
product_name
product_price
variant_options[]
cancel_reject_line_items[]An array holding the items whose cancellation was rejectedproduct_image
product_name
product_quantity
product_price
variant_options[]
refund_contents[]An array holding the refund lines specified for this refundrefund_content_name
refund_content_price
cancel_refund_contents[]An array holding the refund lines specified for this cancellation refundrefund_content_name
refund_content_price
send_back_obj[]An array holding the items that share the same return shipping method, return location, and shipping cost bearersend_back_item[]
send_back_method
send_back_description
send_back_location
send_back_zip
send_back_address1
send_back_address2
send_back_tel
send_back_fee
not_send_back_obj[]An array holding the items that need no return shipping and share the same return shipping method, return location, and shipping cost bearerproduct_image
product_name
product_quantity
product_price
variant_options[]
interviews[]
resolution_method
item_result
remind_send_back_obj[]An array holding the items targeted by a return reminder that share the same return shipping method, return location, and shipping cost bearer
※Available only when sending a reminder email
send_back_item[]
send_back_method
send_back_description
send_back_location
send_back_zip
send_back_address1
send_back_address2
send_back_tel
send_back_fee
variant_options[]An array holding the variant options of the productvariant_name
variant_value
exchange_variant_value
interviews[]An array holding all of the answered questionsinterview_title
interview_value

Switching wording by order tag

order_tags[] is an array holding the values set as order tags in the order metafield. It is meant for switching wording with {% if %} rather than printing the tag values as they are.

Showing wording only for orders tagged ギフト (gift)

{% if "ギフト" in order_tags %}
ギフト注文のお客様向けの文言
{% endif %}

© Recustomer, Inc.