Reservation with pet lines

If everything is configured correctly in your Recranet Booking account, you can add petLines to reservations.

petLines work exactly like ageGroupLines and are added to the reservation in the same way.

API reference: https://developers.recranet.com/reference/post_api_reservations_create#/

{
  "petLines": [
    {
      "petSpecification": {
        "id": 1
      },
      "quantity": 1
    }
  ]
}

Once your accommodationUnitFeatures are set up with type: "Pets Allowed", the corresponding feature will be automatically applied to the reservation.

The accommodationUnitFeatures are split on the reservation in two arrays. The unitFeatures that the guest can choose are stored in the preferredUnitFeatures on the reservation. The unitFeature that is added through the "Pets Allowed" construction as described above is added to the requiredUnitFeatures. requiredUnitFeatures consists of the automatically added unitFeatures by the system and all of the preferredUnitFeatures