Skip to main content

What are the variables for 4Escape templates?

Updated over 3 months ago

Most of 4Escape's data (customers, reservations, invoices, etc.) are directly accessible and replaced in your 4Escape models (quotes, invoices, etc.) or on your emailing platform.
However, for documents prepared for 4escape, the codification presented below must be respected.

The variable [?] must be replaced by the main context :

For reservations> [?] = booking
For quotes / orders> [?] = order
For invoices> [?] = invoice
For coupons / gift vouchers> [?] = price
For payments> [?] = payment

ESCAPE data

Name> #{[?].name}

Name displayed on the web> #{[?].display_name}

SIRET> #{[?].national_identification_number}

VAT number> #{[?].vat_number}

Logo link> #{[?].icon}

Website> #{[?].website}

Phone> #{[?].phone}

Email> #{[?].email}

Address> #{[?].address.street}

Postal code> #{[?].address.postal_code}

City> #{[?].address.locality}

FACEBOOK> #{[?].social_networks.facebook.link}

TWITTER> #{[?].social_networks.twitter.link}

LINKEDIN> #{[?].social_networks.linkedin.link}

GOOGLE PLUS> #{[?].social_networks.googleplus.link}

TRIP ADVISOR> #{[?].social_networks.tripadvisor.link}

INSTAGRAM> #{[?].social_networks.instagram.link}


CUSTOMER DATA

Is a corporation? (true, false)> #{[?].is_company}

Is an administration? (true, false)> #{[?].is_public_administration}

Company> #{[?].company.name}

Service> #{[?].customer.company.service}

Company address> #{[?].company.address.street}

Additional address> #{[?].company.address.premise}

Company postcode> #{[?].company.address.postal_code}

Company city> #{[?].company.address.locality}

Civility> #{[?].user.gender}

Name> #{[?].user.name.family_name}

First name> #{[?].user.name.given_name}

Landline phone> #{[?].user.phone}

Mobile phone> #{[?].user.phone_mobile}

Email> #{[?].user.email}

Address> #{[?].user.address.street}

Postal code> #{[?].user.address.postal_code}

City> #{[?].user.address.locality}

Account summary link> #{[?].accountLink}

Account summary link without https> #{[?].accountLinkWithoutProtocol}

ROOM DATA

Name> #{[?].name}

Name displayed on the web> #{[?].display_name}

Description> #{[?].description}

Mission> #{[?].mission}

Number of players min> #{[?].minimum_players}

Max number of players> #{[?].maximum_players}

Duration (min)> #{[?].duration}

Image link> #{[?].icon}

Escape> #{[?].organization. [?]}

BOOKING DATA

Escape> #{[?].organization. [?]}

Room> #{[?].room. [?]}

Team name> #{[?].team_name}

Customer who booked> #{[?].customer. [?]}

Participant> #{[?].player. [?]}

Order> #{[?].order. [?]}

Number of players> #{[?].room_players}

Date slot start> #{__ moment ([?]. Start, 'DD / MM / YYYY')}

Start date of time slot with name of day / month> #{__ moment ([?]. Start, 'dddd DD MMMM YYYY')}

Time slot start> #{__ moment ([?]. Start, 'HH: mm')}

Calculated arrival date>

Arrival date calculated with name of day / month>

Calculated arrival time>

Arrival X minutes before>

End of slot date> #{__ moment ([?]. End, 'DD / MM / YYYY')}

End date of slot with name of day / month> #{__ moment ([?]. End, 'dddd DD MMMM YYYY')}

End of time slot> #{__ moment ([?]. End, 'HH: mm')}

Photo link> #{[?].icon}

Order summary link> #{orderResumeLink}

Order summary link without https> #{orderResumeLinkWithoutProtocol}

Summary link booking> #{bookingResumeLink}

Booking summary link without https> #{bookingResumeLinkWithoutProtocol}

Success> #{[?].session.success}

Score (points)> # {[?].session.score}

Session time (hh: mm: ss)> #{[?].sessionTimeFormatted}

Session time (hours>) #{[?].sessionTimeFormattedHours}

Session time (minutes)> #{[?].sessionTimeFormattedMinutes}

Session time (seconds)> #{[?].sessionTimeFormattedSeconds}

Customer observations when booking> #{[?].order.observations}

CHECKIN code> #{booking.terminalcode}

ORDER / QUOTATION data

Escape> #{[?].prganization. [?]}

Customer> #{[?].customer. [?]}

Reference> #{[?].reference}

Date of quote / order> #{__ moment ([?]. Date, 'DD / MM / YYYY')}

Event date> #{__ moment ([?]. Play_date, 'DD / MM / YYYY')}

Event date with time> #{__ moment ([?]. Play_date, 'DD / MM / YYYY HH: mm')}

Due date> #{__ moment ([?]. Due_date, 'DD / MM / YYYY')}

Number of players order> #{order.room_players}

INVOICE / ASSET DATA

Escape> #{[?].organization. [?]}

Customer> #{[?].customer. [?]}

Order> #{[?].order. [?]}

Reference> #{[?].reference}

Date of invoice / credit note> #{__ moment ([?]. Date, 'DD / MM / YYYY')}

Due date> #{__ moment ([?]. Due_date, 'DD / MM / YYYY')}

PAYMENT DATA

Escape> #{[?].organization. [?]}

Customer> #{[?].customer. [?]}

Order> #{[?].order. [?]}

Payment date> #{__ time ([?]. Date, 'DD / MM / YYYY')}

Payment amount> #{paymentAmountFormatted}

Payment link> #{paymentLink}

Payment link without https> #{paymentLinkWithoutProtocol}

COUPON / GIFT VOUCHER DATA

Escape> #{organization. [?]}

Customer> #{price.customer. [?]}

Code> #{price.reference}

Name> #{price.name}

Description> #{price.description}

Number of players> #{price.room_players}

Amount> #{priceAmountChargedFormatted}

Remaining amount> #{priceAmountChargedRemainingFormatted}

Start date> #{__ moment ([?]. Start, 'DD / MM / YYYY')}

Validity date> #{__ moment ([?]. End, 'DD / MM / YYYY')}

Room> #{price.room. [?]}

Gift voucher summary link> #{priceResumeLink}

Gift voucher summary link without https> #{priceResumeLinkWithoutProtocol}

Shipping address (when sending by mail)> #{price.offered_address.street}

Postal code (when sending by mail)> #{price.offered_address.postal_code}

Shipping city (when sending by mail)> #{price.offered_address.locality}

Name of gift voucher recipient> #{price.offered_name.family_name}

Recipient's first name> {price.offered_name.given_name}

WATERMARK SPECIAL

Logo> {LOGO}

Image> {IMG}

Score> {SCORE}

Time> {TIME}

Team name> {TEAMNAME}

Date (format 08/10/2020)> {DATE}

Date (October 8, 2020 format)> {DATEL}

Did this answer your question?