Skip to content

Accommodation types

What is sold: capacity, amenities, check-in and check-out times, base price. Rates and daily prices change through actions.

Module: Accommodation (accommodation).

  • GET /api/v1/accommodation_types - List with filters, sorting and pagination (scope accommodation:read)
  • GET /api/v1/accommodation_types/{id} - A record by id (scope accommodation:read)
  • POST /api/v1/accommodation_types - Create a record (scope accommodation:write)
  • PATCH /api/v1/accommodation_types/{id} - Modify the submitted fields (scope accommodation:write)
  • DELETE /api/v1/accommodation_types/{id} - Delete or deactivate (scope accommodation:write)
  • POST /api/v1/accommodation_types/{id}/set_rates - Replaces the type’s rates. (scope accommodation:write)
  • POST /api/v1/accommodation_types/{id}/set_day_prices - Price, percentage, minimum stay or restrictions over a period. (scope accommodation:write)
  • POST /api/v1/accommodation_types/{id}/set_guest_pricing - Included guests and surcharges. (scope accommodation:write)
  • POST /api/v1/accommodation_types/{id}/add_media - Adds a photo to the gallery (JPG, PNG or WebP, up to 8 MB). (scope accommodation:write)
  • POST /api/v1/accommodation_types/{id}/remove_media - Deletes a photo from the gallery. (scope accommodation:write)
  • POST /api/v1/accommodation_types/{id}/reorder_media - Photo order; the first one is the cover. (scope accommodation:write)
  • POST /api/v1/accommodation_types/{id}/set_media_alt - A photo’s alt text. (scope accommodation:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • name (string; write, required)
  • slug (string; read)
  • short_description (string; write)
  • description (string; write)
  • max_adults (number; write)
  • max_children (number; write)
  • max_guests (number; write)
  • beds (string; write)
  • area_m2 (number; write)
  • amenities (array; write)
  • base_price (number; write, required)
  • check_in_time (string; write)
  • check_out_time (string; write)
  • min_nights (number; write)
  • policies (string; write)
  • is_active (boolean; write): Whether the record is active.
  • sort_order (integer; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • included_guests (integer; read)
  • extra_adult_price (number; read)
  • extra_child_price (number; read)
  • free_child_age (integer; read)
  • accommodation_types.created
  • accommodation_types.updated
  • accommodation_types.deleted