added

New Invoice Items Endpoint

Reservation guest invoice items now have their own API and currently only support one action: adding an invoice item to an existing reservation. The table below highlights the changes between the versions.

Examples

Old Request

curl --request POST \
     --url https://open-api.guesty.com/v1/reservations/{reservationId}/invoiceItems \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "title": "Management Fee",
  "amount": 100,
  "normalType": "AFE",
  "description": "Management fee description",
  "secondIdentifier": "MANAGEMENT"
}
'

New Request

Please note that realizationDates is a new optional body parameter for accounting customers only.

curl --request POST \
     --url https://open-api.guesty.com/v1/invoice-items/reservation/{reservationId} \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "normalType": "AFE",
  "title": "Management Fee",
  "amount": 100,
  "description": "Management fee description",
  "secondIdentifier": "MANAGEMENT",
  "realizationDates": [
    {
      "date": "2024-03-02"
    }
  ]
}
'