Postscript - Template variables

A list & description of the variables that are sent to Postscript in Junip events

Stuart Arsenault avatar
Written by Stuart Arsenault
Updated over a week ago

Events

  • Junip - Review request

  • Junip - Review request by campaign

  • Junip - Review submitted

  • Junip - Review confirmation required

Order Event Variables

This refers to the "Review request" and "Review request by campaign" events

  • first_name - the first name of the customer that placed the order

  • last_name - the last name of the customer that placed the order

  • order_line_item_1_name - the name of the line item

  • order_line_item_1_review_url - the authorized URL that allows a customer to leave a review on this product before the other products in this order

  • order_review_url - the authorized URL that the customer can use to leave a review on products from the order

Note that an event can contain up to 2 line items. For example, you can access the name of the 2nd line item using the `order_line_item_2_name` variable.

Review Event Variables

This refers to the "Review submitted" and "Review confirmation required" events

  • first_name - the first name of the customer that wrote the review

  • last_name - the last name of the customer that wrote the review

  • review_body - the main content of the review

  • review_rating - the rating out of 5

  • review_state - the state of the review (pending, approved, or rejected)

  • review_title - the title of the review

  • review_target_title - the target of the review, either the store name or the product name + variant information

  • review_has_media - whether there was a picture/video submitted with the review (true or false)

  • product_id - the ID of the product the review was left on

  • product_title - the title of the product the review was left on

If there's a reward associated with the review

  • reward_code - the discount code

  • reward_name - the reward's description (e.g. "Free shipping" or "10% off")

  • reward_lowercase_name - an all lowercase version of the reward's description

  • store_url - the URL of the store the reward is for

Did this answer your question?