# Variables ## Customer **Usage** ```JSON ${customer.VARIABLE} // Replace VARIABLE with the appropriate field ```
**Definition**
**Description**
**Example**
addressAddition ${customer.addressAddition}
addressFormattedThe default formatting for a customer address.${customer.addressFormatted}
city ${customer.city}
countryThe country of the customer${customer.country}
creationDateDate of the creation of the customer${customer.creationDate?string\["dd.MM.YYYY"\]}
creatorName of the creator of the customer${customer.creator}
email ${customer.email}
firstName ${customer.firstName}
lastName ${customer.lastName}
nameCombination of firstName and lastName${customer.name}
numberThe customer number in advatra (K1000001)${customer.number}
phone ${customer.phone}
state ${customer.state}
street ${customer.street}
website ${customer.website}
zipCode ${customer.zipCode}
## Document **Usage** ```JSON ${document.VARIABLE} // Replace VARIABLE with the appropriate field ```
**Definition**
**Description**
**Example**
travelStartStart of the travel, *only on travel documents*${document.travelStart?string\["dd.MM.YYYY"\]}
travelEndEnd of the travel, *only on travel documents*${document.travelEnd?string\["dd.MM.YYYY"\]}
expirationDateDate until the document is valid${document.expirationDate?string\["dd.MM.YYYY"\]}
numberThe document number (D1000001.101)${document.number}
currencyThe Currency of the document, ISO 4217${document.currency}
note ${document.note}
typeOffer, Confirmation, Invoice, Deposit, Prepayment${document.type}
language ${document.language}
localeCan be used for the translation of the document${document.locale}
date ${document.date?string\["dd.MM.YYYY"\]}
chargedUsed for Deposit and Prepayment. Defines if they have been charged to an invoice.${document.charged}
exportDateDate, when the document have been exported to the accounting system${document.exportDate?string\["dd.MM.YYYY"\]}
cantonLocation${document.canton}
image
daysList of days contained in the offer/confirmation
## Dossier **Usage** ```JSON ${dossier.VARIABLE} // Replace VARIABLE with the appropriate field ```
**Definition**
**Description**
**Example**
name
openingDate
status
employee
responsibleEmployee
travelAgent
number
## Product **Usage** ```JSON [#list products as product] ${product.VARIABLE} // Replace VARIABLE with the appropriate field [#/list] ```
**Definition**
**Description**
**Example**
note
start
end
title
description
voucherRelevant
voucherText
person
images
images3x2
type
travellers[See details here](#bkmrk-guide)
customer[See details here](#bkmrk-customer)
notes
prices[See details here](#bkmrk-price)
guides[See details here](#bkmrk-guide)
drivers[See details here](#bkmrk-driver)
supplierNotes
locationSmallonly available, when a template is linked.
locationMediumonly available, when a template is linked.
locationLargeonly available, when a template is linked.
hasKickbacktrue, if any service has a commission
## Price **Usage** ```JSON [#list products as product] [#list product.prices as price] ${price.VARIABLE} // Replace VARIABLE with the appropriate field [/#list] [#/list] ```
**Definition**
**Description**
**Example**
name
person
quantity
price
type
discount
purchasingPrice
creditorInvoiceReceived
billingText
effectivePurchasingPrice
vatVat Object
kickback
kickbackAmount
kickbackInvoiceCreated
kickbackVat
totalTotalPrice Object
hotelNights
supplier[See details here](#bkmrk-customer)
## TotalPrice **Usage** ```JSON ${totalPrice.VARIABLE} // Replace VARIABLE with the appropriate field ```
**Definition**
**Description**
**Example**
vats
surcharges
priceNetto
priceVat
priceBrutto
totalPriceBrutto
priceNettoFormatted
totalPriceFormatted
## Traveller **Usage** ```JSON [#list travellers as traveller] ${traveller.VARIABLE} // Replace VARIABLE with the appropriate field [#/list] ```
Definition
Description
Example
firstName
lastName
name
phone
email
passportNumber
placeOfIssue
birthday
arrivalType
arrivalDate
arrivalTime
arrivalNumber
arrivalFlightClass
arrivalSeat
departureType
## Guide **Usage** ```JSON [#list guides as guide] ${guide.VARIABLE} // Replace VARIABLE with the appropriate field [#/list] ```
Definition
Description
Example
firstName
lastName
name
phone
email
## Driver **Usage** ```JSON [#list drivers as driver] ${driver.VARIABLE} // Replace VARIABLE with the appropriate field [#/list] ```
Definition
Description
Example
firstName
lastName
name
phone
email