Skip to main content

List of Main System Variables

Variables are used in Email, SMS, Push templates, and trigger communications.
The syntax supports fallback values via the | separator.

Available Variables

VariableDescription
$[partner_name]Name of the store (partner).
$[site_url]Website URL saved in the client profile upon record creation.
$[full_name|Customer]Client's full name. If missing — the value after `
$[first_name|Customer]Client's first name. If missing — the fallback is used.
$[middle_name|Customer]Client's middle name.
$[last_name|Customer]Client's last name.
$[points_confirmed]Number of confirmed points with text (e.g., "bonus points").
$[points_unconfirmed]Number of unconfirmed points with text.
$[points_total]Total number of points (confirmed + unconfirmed).
$[points_spent]Number of points spent over all time.
$[no_plural_points_confirmed]Confirmed points without text.
$[no_plural_points_unconfirmed]Unconfirmed points without text.
$[no_plural_points_total]Total number of points without text.
$[no_plural_points_spent]Spent points without text.
$[custom_vars["custom_var_name"]|default]Client's user variable with a fallback value.
$[target_email]Email of the user who activated the trigger.
$[current_sender_email]Email of the message sender.
$[target_phone]Recipient's phone number.
$[user_id]Sailplay internal client identifier.
$[user["origin_user_id"]|not_user_id]Client's external identifier.
$[gift_coupon_number|000000000]Gift coupon number.
$[gift_name]Gift name.
$[gift_points]Gift cost in points.
$[gift_description]Gift description.
$[gift["category_name"]]Gift category name.
$[dep["reg_points"]]Numeric value of the department parameter.
$[status["name"]]Client status name.
$[status["pic"]]URL of the status image (250×250).
$[user["points"]["total_earned"]]Total number of confirmed earned points.
$[user["purchases"]["count"]]Number of confirmed client purchases.
$[user["register_date"]["years_after"]]Number of full years since registration.
$[user["register_date"]["days_after"]]Number of days since registration.
$[promo_code["group_name"]]Promocode from the specified group (for triggers only).
$[confirmation_code]Confirmation code (e.g., for password reset).
$[email_code]Email confirmation code.
$[order_num]Partner order number.
$[purchase_id]Purchase identifier in Sailplay.
$[date]Current date or future date with formatting parameters.
$[oid_barcode]Generates and displays a barcode by origin_user_id.
$[user["referral_promocode"]]User's referral code.
$[email_activation_url]Link to client subscription when using Double Opt-in.