Skip to main content

BookingUpsert

providerApartmentIdstringrequired

ID of the apartment in provider database

Example: 123456
arrivalstring<date>required

Date of arrival

Example: 2020-10-20
departurestring<date>required

Date of departure

Example: 2020-10-30
bareRentalPrice objectrequired

Price with amount and currency

amountnumberrequired

Price value

Example: 100
currencystringrequired

Price currency

Example: EUR
totalPrice object

Price with amount and currency

amountnumberrequired

Price value

Example: 100
currencystringrequired

Price currency

Example: EUR
commissionablePrice object

Price with amount and currency

amountnumberrequired

Price value

Example: 100
currencystringrequired

Price currency

Example: EUR
costs object[]

Breakdown of extra costs for the booking.

  • Array [
  • namestringrequired

    Name of the cost

    Possible values: [FINAL_CLEANING, EXTRA_CLEANING, REFUNDABLE_SECURITY_DEPOSIT, TOURIST_OR_CITY_TAX, ECO_TAX, VAT_OF_RENTAL_PRICE, BOOKING_FEE, HYGIENE_SURCHARGE, PET, TRAVEL_INSURANCE, TOWEL, BEDLINEN, TOWEL_BEDLINEN_PACKAGE, KITCHEN_TOWELS, BEDLINEN_AND_BEDMAKING, BABY_BED, BABY_CHAIR, BABY_COT, BABY_BUGGY, BABY_HIGH_CHAIR, EXTRA_BED, HEATING, AIRCONDITION, FIREWOOD, ELECTRICITY, WATER, GAS, SAUNA, POOL, HOT_TUB, WASHING_MACHINE, BEACH_SERVICES, CLUB_CARD, INTERNET, PARKING, AIRPORT_SHUTTLE, BREAKFAST, SERVICE_COSTS]

    Example: FINAL_CLEANING
    paymentTimestring

    When the cost is paid. Treated as paid with the booking if omitted.

    Possible values: [ON_BOOKING, WITH_RATES, ONSITE]

    Example: WITH_RATES
    totalPrice objectrequired

    Price with amount and currency

    amountnumberrequired

    Price value

    Example: 100
    currencystringrequired

    Price currency

    Example: EUR
  • ]
  • numberOfGuestsinteger<int32>

    Number of guests

    Example: 2
    rateIdstring

    Rate identifier

    Example: DEFAULT
    BookingUpsert
    {
    "providerApartmentId": "123456",
    "arrival": "2020-10-20",
    "departure": "2020-10-30",
    "bareRentalPrice": {
    "amount": 100,
    "currency": "EUR"
    },
    "totalPrice": {
    "amount": 100,
    "currency": "EUR"
    },
    "commissionablePrice": {
    "amount": 100,
    "currency": "EUR"
    },
    "costs": [
    {
    "name": "FINAL_CLEANING",
    "paymentTime": "WITH_RATES",
    "totalPrice": {
    "amount": 100,
    "currency": "EUR"
    }
    }
    ],
    "numberOfGuests": 2,
    "rateId": "DEFAULT"
    }