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).
Endpoints
Section titled “Endpoints”GET /api/v1/accommodation_types- List with filters, sorting and pagination (scopeaccommodation:read)GET /api/v1/accommodation_types/{id}- A record by id (scopeaccommodation:read)POST /api/v1/accommodation_types- Create a record (scopeaccommodation:write)PATCH /api/v1/accommodation_types/{id}- Modify the submitted fields (scopeaccommodation:write)DELETE /api/v1/accommodation_types/{id}- Delete or deactivate (scopeaccommodation:write)POST /api/v1/accommodation_types/{id}/set_rates- Replaces the type’s rates. (scopeaccommodation:write)POST /api/v1/accommodation_types/{id}/set_day_prices- Price, percentage, minimum stay or restrictions over a period. (scopeaccommodation:write)POST /api/v1/accommodation_types/{id}/set_guest_pricing- Included guests and surcharges. (scopeaccommodation:write)POST /api/v1/accommodation_types/{id}/add_media- Adds a photo to the gallery (JPG, PNG or WebP, up to 8 MB). (scopeaccommodation:write)POST /api/v1/accommodation_types/{id}/remove_media- Deletes a photo from the gallery. (scopeaccommodation:write)POST /api/v1/accommodation_types/{id}/reorder_media- Photo order; the first one is the cover. (scopeaccommodation:write)POST /api/v1/accommodation_types/{id}/set_media_alt- A photo’s alt text. (scopeaccommodation:write)
Fields
Section titled “Fields”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)
Events
Section titled “Events”accommodation_types.createdaccommodation_types.updatedaccommodation_types.deleted