Receipt
costs object[]
Array [
idstring
namestring
basisOfCalculationstring
paymentTimestring
typestring
pricePerUnit object
amountnumber
currencystring
unitsSelectedinteger<int32>
totalPrice object
amountnumber
currencystring
]
discount object
discountIdinteger<int64>
providerDiscountIdstring
namestring
discountTypestring
Possible values: [EARLY_BIRD, LAST_MINUTE, LONG_STAY, DEVICE_SPECIFIC, NEW_LISTING, LOYALTY, OFFER]
percentagenumber
conditions object
daysBeforeCheckIninteger<int32>
Number of days before checkin the booking has to be made
Example:
60minStayinteger<int32>
Minimum Stay (days) if required to get the discount
Example:
5bookingSeason object[]
Booking date must be in seasons for the discount to apply
Array [
onlyApplicableFromstring<date>
Only applicable from date
Example:
2020-08-01onlyApplicableUntilstring<date>
Only applicable until date
Example:
2021-04-30]
travelSeason object[]
Stay must be within seasons for the discount to apply
Array [
onlyApplicableFromstring<date>
Only applicable from date
Example:
2020-08-01onlyApplicableUntilstring<date>
Only applicable until date
Example:
2021-04-30]
deviceTypestring
If the discount is applicable only for specific device.
Possible values: [MOBILE, DESKTOP]
userTypestring
If discount is applicable based on user type.
Possible values: [USER_AUTHENTICATED]
amount object
amountnumber
currencystring
bareRentalPrice object
amountnumber
currencystring
Receipt
{
"costs": [
{
"id": "string",
"name": "string",
"basisOfCalculation": "string",
"paymentTime": "string",
"type": "string",
"pricePerUnit": {
"amount": 0,
"currency": "string"
},
"unitsSelected": 0,
"totalPrice": {
"amount": 0,
"currency": "string"
}
}
],
"discount": {
"discountId": 0,
"providerDiscountId": "string",
"name": "string",
"discountType": "EARLY_BIRD",
"percentage": 0,
"conditions": {
"daysBeforeCheckIn": 60,
"minStay": 5,
"bookingSeason": [
{
"onlyApplicableFrom": "2020-08-01",
"onlyApplicableUntil": "2021-04-30"
}
],
"travelSeason": [
{
"onlyApplicableFrom": "2020-08-01",
"onlyApplicableUntil": "2021-04-30"
}
],
"deviceType": "MOBILE",
"userType": "USER_AUTHENTICATED"
},
"amount": {
"amount": 0,
"currency": "string"
}
},
"bareRentalPrice": {
"amount": 0,
"currency": "string"
}
}