### Created Service Response Source: https://docs.hapio.io/ Example of a successful `201 Created` response when a service is successfully created. Includes the unique ID and timestamps. ```json { "id": "14c61826-8fb3-415b-80ae-c54d159b0d57", "name": "The First Service", "price": "149.000", "type": "fixed", "duration": "PT1H", "bookable_interval": "PT10M", "buffer_time_before": "PT10M", "buffer_time_after": "PT5M", "booking_window_start": "PT2H", "booking_window_end": "P60D", "cancelation_threshold": "PT12H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:45:42+00:00", "updated_at": "2021-01-30T16:45:42+00:00" } ``` -------------------------------- ### Retrieve Service Response Source: https://docs.hapio.io/ Example of a `200 OK` response when retrieving a specific service. Note that `cancelation_threshold` might differ from the creation payload. ```json { "id": "14c61826-8fb3-415b-80ae-c54d159b0d57", "name": "The First Service", "price": "149.000", "type": "fixed", "duration": "PT1H", "bookable_interval": "PT10M", "buffer_time_before": "PT10M", "buffer_time_after": "PT5M", "booking_window_start": "PT2H", "booking_window_end": "P60D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:45:42+00:00", "updated_at": "2021-01-30T16:52:19+00:00" } ``` -------------------------------- ### Hapio API Services Response Sample Source: https://docs.hapio.io/ This is a sample JSON response for the GET /v1/services endpoint. It includes a 'data' array containing service objects, 'links' for pagination, and 'meta' information about the response. ```json { "data": [ { "id": "2d93c474-650c-41d0-bdea-3b9cbf01be30", "name": "The Fifth Service", "price": "99.000", "type": "day", "start_time": { "monday": "09:00:00", "tuesday": "09:00:00", "wednesday": "09:00:00", "thursday": "09:00:00", "friday": "09:00:00", "saturday": "10:00:00", "sunday": "11:00:00" }, "end_time": { "monday": "18:00:00", "tuesday": "18:00:00", "wednesday": "18:00:00", "thursday": "18:00:00", "friday": "18:00:00", "saturday": "16:00:00", "sunday": "15:00:00" }, "min_days": 2, "max_days": 14, "default_days": null, "buffer_time_before": "PT0S", "buffer_time_after": "PT0S", "booking_window_start": "PT72H", "booking_window_end": "P30D", "cancelation_threshold": "PT48H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-02-13T11:17:22+00:00", "updated_at": "2021-02-13T11:17:22+00:00" }, { "id": "14c61826-8fb3-415b-80ae-c54d159b0d57", "name": "The First Service", "price": "19.000", "type": "fixed", "duration": "PT1H", "bookable_interval": "PT10M", "buffer_time_before": "PT10M", "buffer_time_after": "PT5M", "booking_window_start": "PT2H", "booking_window_end": "P60D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:45:42+00:00", "updated_at": "2021-01-30T16:52:19+00:00" }, { "id": "92457b7c-69f6-4728-94f4-487c2ceab5c6", "name": "The Fourth Service", "price": "15.000", "type": "flexible", "min_duration": "PT15M", "max_duration": "PT8H", "default_duration": "PT1H", "duration_step": "PT5M", "bookable_interval": "PT15M", "buffer_time_before": "PT0S", "buffer_time_after": "PT20M", "booking_window_start": "PT48H", "booking_window_end": "P30D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-02-02T11:57:13+00:00", "updated_at": "2021-02-02T11:57:13+00:00" }, { "id": "60fc8ef2-057e-4e38-bc5b-252c86f61065", "name": "The Second Service", "price": "29.000", "type": "fixed", "duration": "PT1H30M", "bookable_interval": "PT30M", "buffer_time_before": "PT15M", "buffer_time_after": "PT10M", "booking_window_start": "PT4H", "booking_window_end": "P60D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:53:50+00:00", "updated_at": "2021-01-30T16:53:50+00:00" }, { "id": "5a6447c3-3cbb-4e65-8864-41707c5a9c7c", "name": "The Third Service", "price": "79.000", "type": "day", "start_time": "14:00:00", "end_time": "10:00:00", "min_days": 2, "max_days": 10, "default_days": 2, "buffer_time_before": "PT0S", "buffer_time_after": "PT0S", "booking_window_start": "PT48H", "booking_window_end": "P90D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:59:17+00:00", "updated_at": "2021-01-30T16:59:17+00:00" } ], "links": { "first": "https://eu-central-1.hapio.net/v1/services?page=1", "last": "https://eu-central-1.hapio.net/v1/services?page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "path": "https://eu-central-1.hapio.net/v1/services", "per_page": 100, "to": 5, "total": 5 } } ``` -------------------------------- ### Get Schedule Blocks Source: https://docs.hapio.io/ Retrieves a list of schedule blocks based on the provided query parameters. ```APIDOC ## GET /resources/{resource}/schedule-blocks ### Description Retrieves a list of schedule blocks with filtering and sorting capabilities. ### Method GET ### Endpoint https://eu-central-1.hapio.net/v1/resources/{resource}/schedule-blocks ### Parameters #### Query Parameters - **page** (integer >= 1) - Optional - The page number to retrieve. Default: 1 - **per_page** (integer [ 1 .. 100 ]) - Optional - The number of items per page. Default: 100 - **from** (string ) - Optional - Retrieve schedule blocks that end after this timestamp. This timestamp is formatted in ISO 8601 format: `YYYY-MM-DDThh:mm:ss±hh:mm`. This must be less than or equal to `to`. - **to** (string ) - Optional - Retrieve schedule blocks that start before this timestamp. This timestamp is formatted in ISO 8601 format: `YYYY-MM-DDThh:mm:ss±hh:mm`. This must be greater than or equal to `from`. - **location** (string ) - Optional - The ID of a location. When this is provided, only schedule blocks for this location will be retrieved. - **starts_at[{operator}]** (string ) - Optional - Filter the schedule blocks by their starts at timestamp. This timestamp is formatted in ISO 8601 format: `YYYY-MM-DDThh:mm:ss±hh:mm`. - **ends_at[{operator}]** (string ) - Optional - Filter the schedule blocks by their ends at timestamp. This timestamp is formatted in ISO 8601 format: `YYYY-MM-DDThh:mm:ss±hh:mm`. - **created_at[{operator}]** (string ) - Optional - Filter the schedule blocks by their created at timestamp. This timestamp is formatted in ISO 8601 format: `YYYY-MM-DDThh:mm:ss±hh:mm`. - **updated_at[{operator}]** (string ) - Optional - Filter the schedule blocks by their updated at timestamp. This timestamp is formatted in ISO 8601 format: `YYYY-MM-DDThh:mm:ss±hh:mm`. - **sort** (string) - Optional - Sort the schedule blocks by these properties and orders. Multiple sorts can be combined with a comma between them, and will be applied in the given order. Enum: "starts_at.asc" "starts_at.desc" "ends_at.asc" "ends_at.desc" "created_at.asc" "created_at.desc" "updated_at.asc" "updated_at.desc". Default: "starts_at.asc,ends_at.asc,created_at.asc" ### Responses #### Success Response (200) A `200 OK` response is returned if there were no errors with the request. The response body contains a pagination object with an array of schedule blocks. If no schedule blocks matched the query parameters, the array will be empty. #### Error Responses - **403 Forbidden**: The API token used for authorization does not have the required ability. - **404 Not Found**: The specified resource doesn’t exist. - **422 Unprocessable Entity**: The request contains some kind of validation error. ``` -------------------------------- ### 200 OK Response Sample Source: https://docs.hapio.io/ This is a sample JSON response for a successful request, containing a list of schedule blocks and pagination links. ```json { "data": [ { "id": "08a7011d-22a8-491d-9cbd-758e9c045a05", "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "resource_selection_priority": [ ], "metadata": { "address": { "street": "1 First Road", "city": "Firsttown", "state": "NY", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "starts_at": "2021-03-10T09:00:00-05:00", "ends_at": "2021-03-10T13:00:00-05:00", "is_available": false, "created_at": "2021-02-17T10:57:40+00:00", "updated_at": "2021-02-17T10:57:40+00:00" }, { "id": "371ba515-2a71-42ec-926a-6b0cadcc929c", "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "resource_selection_priority": [ ], "metadata": { "address": { "street": "1 First Road", "city": "Firsttown", "state": "NY", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "starts_at": "2021-03-10T16:00:00-05:00", "ends_at": "2021-03-10T17:00:00-05:00", "is_available": false, "created_at": "2021-02-18T16:03:12+00:00", "updated_at": "2021-02-18T16:03:12+00:00" }, { "id": "797cc864-1eaa-4156-9fc3-42dafd47a06f", "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "resource_selection_priority": [ ], "metadata": { "address": { "street": "1 First Road", "city": "Firsttown", "state": "NY", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "starts_at": "2021-03-10T18:00:00-05:00", "ends_at": "2021-03-10T21:00:00-05:00", "is_available": true, "created_at": "2021-02-17T10:57:09+00:00", "updated_at": "2021-02-17T10:57:09+00:00" }, { "id": "ceea4b4a-e35f-455d-a0d2-2571add37bd1", "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "resource_selection_priority": [ ], "metadata": { "address": { "street": "1 First Road", "city": "Firsttown", "state": "NY", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "starts_at": "2021-04-02T08:00:00-04:00", "ends_at": "2021-04-02T17:00:00-04:00", "is_available": false, "created_at": "2021-02-01T13:07:43+00:00", "updated_at": "2021-02-01T13:09:15+00:00" }, { "id": "abd54ed4-0917-403f-a774-9fb9e33e08fe", "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "resource_selection_priority": [ ], "metadata": { "address": { "street": "1 First Road", "city": "Firsttown", "state": "NY", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "starts_at": "2021-04-05T08:00:00-04:00", "ends_at": "2021-04-05T17:00:00-04:00", "is_available": false, "created_at": "2021-02-01T13:08:55+00:00", "updated_at": "2021-02-01T13:08:55+00:00" } ], "links": { "first": "https://eu-central-1.hapio.net/v1/resources/a6b8640f-6b76-4723-ad9b-6a8b2e1bc112/schedule-blocks?page=1", "last": "https://eu-central-1.hapio.net/v1/resources/a6b8640f-6b76-4723-ad9b-6a8b2e1bc112/schedule-blocks?page=1" } } ``` -------------------------------- ### Booking Response Sample Source: https://docs.hapio.io/ This is a sample JSON response for a booking, illustrating the structure and fields returned. ```json { "id": "41bf45bd-67eb-4b30-af4c-a96197fde8e3", "resource": { "id": "a6b8640f-6b76-4723-ad9b-6a8b2e1bc112", "name": "The First Resource", "max_simultaneous_bookings": 1, "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T16:42:05+00:00", "updated_at": "2021-01-13T12:58:34+00:00" }, "service": { "id": "14c61826-8fb3-415b-80ae-c54d159b0d57", "name": "The First Service", "price": "149.000", "type": "fixed", "duration": "P1H", "bookable_interval": "PT10M", "buffer_time_before": "PT10M", "buffer_time_after": "PT5M", "booking_window_start": "PT2H", "booking_window_end": "P60D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:45:42+00:00", "updated_at": "2021-01-30T16:52:19+00:00" }, "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "resource_selection_priority": [ ], "metadata": { "address": { "street": "1 First Road", "city": "Firsttown", "state": "NY", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "booking_group": null, "price": "149.000", "metadata": { "name": "John Doe" }, "protected_metadata": null, "is_temporary": false, "is_canceled": false, "starts_at": "2021-03-09T13:50:00-05:00", "ends_at": "2021-03-09T14:50:00-05:00", "buffer_starts_at": "2021-03-09T13:40:00-05:00", "buffer_ends_at": "2021-03-09T14:55:00-05:00", "created_at": "2021-03-02T19:07:45+00:00", "updated_at": "2021-03-02T19:09:19+00:00", "finalized_at": "2021-03-02T19:09:19+00:00", "canceled_at": null } ``` -------------------------------- ### Get Services Source: https://docs.hapio.io/ Retrieves a list of services. Supports filtering and pagination. Returns a paginated object containing an array of services. ```APIDOC ## GET /v1/services ### Description Retrieves a list of services. The response body contains a pagination object with an array of services. If no services matched the query parameters, the array will be empty. ### Method GET ### Endpoint https://eu-central-1.hapio.net/v1/services ### Responses #### Success Response (200) - **data** (array) - An array of service objects. - **links** (object) - Pagination links. - **meta** (object) - Pagination metadata. #### Error Responses - **403 Forbidden**: Returned if the API token lacks the required ability. - **422 Unprocessable Entity**: Returned if the request contains validation errors. ### Response Example (200) ```json { "data": [ { "id": "2d93c474-650c-41d0-bdea-3b9cbf01be30", "name": "The Fifth Service", "price": "99.000", "type": "day", "start_time": { "monday": "09:00:00", "tuesday": "09:00:00", "wednesday": "09:00:00", "thursday": "09:00:00", "friday": "09:00:00", "saturday": "10:00:00", "sunday": "11:00:00" }, "end_time": { "monday": "18:00:00", "tuesday": "18:00:00", "wednesday": "18:00:00", "thursday": "18:00:00", "friday": "18:00:00", "saturday": "16:00:00", "sunday": "15:00:00" }, "min_days": 2, "max_days": 14, "default_days": null, "buffer_time_before": "PT0S", "buffer_time_after": "PT0S", "booking_window_start": "PT72H", "booking_window_end": "P30D", "cancelation_threshold": "PT48H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-02-13T11:17:22+00:00", "updated_at": "2021-02-13T11:17:22+00:00" } ], "links": { "first": "https://eu-central-1.hapio.net/v1/services?page=1", "last": "https://eu-central-1.hapio.net/v1/services?page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "path": "https://eu-central-1.hapio.net/v1/services", "per_page": 100, "to": 5, "total": 5 } } ``` ``` -------------------------------- ### Patch Service Request Payload Source: https://docs.hapio.io/ This is an example of a request payload for patching a service. It demonstrates how to specify the cancelation threshold for a service. ```json { "cancelation_threshold": "PT24H" } ``` -------------------------------- ### 200 OK Response Sample Source: https://docs.hapio.io/ This is a sample JSON response for a successful request (200 OK). It details booking information, including resource, service, and location data, along with timestamps and pricing. ```json { "id": "7342f9fc-d681-4890-81fc-ae696a28e923", "metadata": { "customer": { "name": "Jane Doe" }, "booking_number": 234 }, "protected_metadata": { "access_code": 8376 }, "bookings": [ { "id": "70cddf82-4f77-4ea8-99de-0ef61136cfbf", "resource": { "id": "a6b8640f-6b76-4723-ad9b-6a8b2e1bc112", "name": "The First Resource", "max_simultaneous_bookings": 1, "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T16:42:05+00:00", "updated_at": "2021-01-13T12:58:34+00:00" }, "service": { "id": "60fc8ef2-057e-4e38-bc5b-252c86f61065", "name": "The Second Service", "price": "29.000", "type": "fixed", "duration": "PT1H30M", "bookable_interval": "PT30M", "buffer_time_before": "PT15M", "buffer_time_after": "PT10M", "booking_window_start": "PT4H", "booking_window_end": "P60D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:53:50+00:00", "updated_at": "2021-01-30T16:53:50+00:00" }, "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "metadata": { "address": { "city": "Firsttown", "state": "NY", "street": "1 First Road", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "price": "29.000", "metadata": null, "protected_metadata": null, "starts_at": "2024-05-13T13:45:00-04:00", "ends_at": "2024-05-13T15:15:00-04:00", "buffer_starts_at": "2024-05-13T13:30:00-04:00", "buffer_ends_at": "2024-05-13T15:25:00-04:00", "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00", "finalized_at": "2024-04-16T07:10:29+00:00", "canceled_at": null, "is_temporary": false, "is_canceled": false }, { "id": "70a82d0b-535d-4fde-bf55-1173452a147b", "resource": { "id": "a6b8640f-6b76-4723-ad9b-6a8b2e1bc112", "name": "The First Resource", "max_simultaneous_bookings": 1, "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T16:42:05+00:00", "updated_at": "2021-01-13T12:58:34+00:00" }, "service": { "id": "92457b7c-69f6-4728-94f4-487c2ceab5c6", "name": "The Fourth Service", "price": "15.000", "type": "flexible", "min_duration": "PT15M", "max_duration": "PT8H", "default_duration": "PT1H", "duration_step": "PT5M", "bookable_interval": "PT15M", "buffer_time_before": "PT0S", "buffer_time_after": "PT20M", "booking_window_start": "PT48H", "booking_window_end": "P30D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-02-02T11:57:13+00:00", "updated_at": "2021-02-02T11:57:13+00:00" }, "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "metadata": { "address": { "city": "Firsttown", "state": "NY", "street": "1 First Road", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "price": "16.250", "metadata": null, "protected_metadata": null, "starts_at": "2024-05-13T15:25:00-04:00", "ends_at": "2024-05-13T16:30:00-04:00", "buffer_starts_at": "2024-05-13T15:25:00-04:00", "buffer_ends_at": "2024-05-13T16:50:00-04:00", "created_at": "2024-04-16T07:10:30+00:00", "updated_at": "2024-04-16T07:29:46+00:00", "finalized_at": "2024-04-16T07:10:29+00:00", "canceled_at": "2024-04-16T07:29:46+00:00", "is_temporary": false, "is_canceled": true }, { "id": "9f503247-cf25-4314-8bcf-0e739712e1ed", "resource": { ``` -------------------------------- ### Service Response Sample (200 OK) Source: https://docs.hapio.io/ This JSON object represents a successful response when retrieving or creating a service. It includes additional fields like 'created_at' and 'updated_at'. ```json { "id": "14c61826-8fb3-415b-80ae-c54d159b0d57", "name": "The First Service", "price": "149.000", "type": "fixed", "duration": "PT1H", "bookable_interval": "PT10M", "buffer_time_before": "PT10M", "buffer_time_after": "PT5M", "booking_window_start": "PT2H", "booking_window_end": "P60D", "cancelation_threshold": "PT12H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:45:42+00:00", "updated_at": "2021-01-30T16:49:15+00:00" } ``` -------------------------------- ### Create Location Response Sample (200 OK) Source: https://docs.hapio.io/ A successful response (200 OK) when creating a location. It includes the newly created location's details along with its ID and timestamps. ```json { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "resource_selection_priority": [ ], "metadata": { "address": { "street": "1 First Road", "city": "Firsttown", "state": "NY", "zip_code": "11111" } }, "protected_metadata": null, "enabled": false, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-15T11:19:03+00:00" } ``` -------------------------------- ### 200 OK Response for Resource Schedule Source: https://docs.hapio.io/ This is a sample successful response for retrieving a resource's schedule. It includes a list of booked time spans and pagination details. ```json { "data": [ { "starts_at": "2021-03-08T08:00:00-05:00", "ends_at": "2021-03-08T12:00:00-05:00" }, { "starts_at": "2021-03-08T13:00:00-05:00", "ends_at": "2021-03-08T17:00:00-05:00" }, { "starts_at": "2021-03-09T08:00:00-05:00", "ends_at": "2021-03-09T12:00:00-05:00" }, { "starts_at": "2021-03-09T13:00:00-05:00", "ends_at": "2021-03-09T17:00:00-05:00" }, { "starts_at": "2021-03-10T13:00:00-05:00", "ends_at": "2021-03-10T16:00:00-05:00" }, { "starts_at": "2021-03-10T17:00:00-05:00", "ends_at": "2021-03-10T21:00:00-05:00" }, { "starts_at": "2021-03-11T08:00:00-05:00", "ends_at": "2021-03-11T12:00:00-05:00" }, { "starts_at": "2021-03-11T13:00:00-05:00", "ends_at": "2021-03-11T17:00:00-05:00" }, { "starts_at": "2021-03-12T08:00:00-05:00", "ends_at": "2021-03-12T12:00:00-05:00" }, { "starts_at": "2021-03-12T13:00:00-05:00", "ends_at": "2021-03-12T15:00:00-05:00" } ], "links": { "first": "https://eu-central-1.hapio.net/v1/resources/a6b8640f-6b76-4723-ad9b-6a8b2e1bc112/schedule?from=2021-03-08T00:00:00-05:00&to=2021-03-15T00:00:00-05:00&location=8e60c695-b608-488a-806a-11f518453fd4&page=1", "last": "https://eu-central-1.hapio.net/v1/resources/a6b8640f-6b76-4723-ad9b-6a8b2e1bc112/schedule?from=2021-03-08T00:00:00-05:00&to=2021-03-15T00:00:00-05:00&location=8e60c695-b608-488a-806a-11f518453fd4&page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "path": "https://eu-central-1.hapio.net/v1/resources/a6b8640f-6b76-4723-ad9b-6a8b2e1bc112/schedule", "per_page": 100, "to": 10, "total": 10 } } ``` -------------------------------- ### Patch Recurring Schedule Block Request Body Source: https://docs.hapio.io/ This is a sample request body for patching a recurring schedule block. Only the `end_time` is modified in this example. ```json { "end_time": "12:00:00" } ``` -------------------------------- ### Service Request Payload Example Source: https://docs.hapio.io/ This JSON object represents the payload for creating or updating a service. Ensure all required fields are present and correctly formatted. ```json { "id": "14c61826-8fb3-415b-80ae-c54d159b0d57", "name": "The First Service", "price": "149.000", "type": "fixed", "duration": "PT1H", "bookable_interval": "PT10M", "buffer_time_before": "PT10M", "buffer_time_after": "PT5M", "booking_window_start": "PT2H", "booking_window_end": "P60D", "cancelation_threshold": "PT12H", "metadata": null, "protected_metadata": null, "enabled": true } ``` -------------------------------- ### Successful Booking Creation Response (201) Source: https://docs.hapio.io/ This is a sample response body for a successfully created booking. It includes details of the created booking and associated resources. ```json { "id": "41bf45bd-67eb-4b30-af4c-a96197fde8e3", "resource": { "id": "a6b8640f-6b76-4723-ad9b-6a8b2e1bc112", "name": "The First Resource", "max_simultaneous_bookings": 1, "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T16:42:05+00:00", "updated_at": "2021-01-13T12:58:34+00:00" }, "service": { "id": "14c61826-8fb3-415b-80ae-c54d159b0d57", "name": "The First Service", "price": "149.000", "type": "fixed", "duration": "P1H", "bookable_interval": "PT10M", "buffer_time_before": "PT10M", "buffer_time_after": "PT5M", "booking_window_start": "PT2H", "booking_window_end": "P60D", "cancelation_threshold": "PT24H", "metadata": null, "protected_metadata": null, "enabled": true, "created_at": "2021-01-30T16:45:42+00:00", "updated_at": "2021-01-30T16:52:19+00:00" }, "location": { "id": "8e60c695-b608-488a-806a-11f518453fd4", "name": "The First Location", "time_zone": "America/New_York", "resource_selection_strategy": "randomize", "resource_selection_priority": [ ], "metadata": { "address": { "street": "1 First Road", "city": "Firsttown", "state": "NY", "zip_code": "11111" } }, "protected_metadata": null, "enabled": true, "created_at": "2020-12-19T09:17:11+00:00", "updated_at": "2021-01-28T15:43:20+00:00" }, "booking_group": null, "price": "149.000", "metadata": null, "protected_metadata": null, "is_temporary": true, "is_canceled": false, "starts_at": "2021-03-09T13:40:00-05:00", "ends_at": "2021-03-09T14:40:00-05:00", "buffer_starts_at": "2021-03-09T13:30:00-05:00", "buffer_ends_at": "2021-03-09T14:45:00-05:00", "created_at": "2021-03-02T19:07:45+00:00", "updated_at": "2021-03-02T19:07:45+00:00", "finalized_at": null, "canceled_at": null } ``` -------------------------------- ### Retrieve Recurring Schedule Block Response Source: https://docs.hapio.io/ This is an example of a successful response when retrieving a specific recurring schedule block. It includes the block's details and timestamps. ```json { "id": "5ec91349-3ef6-4e63-9006-acfc00f18139", "weekday": "monday", "start_time": "08:00:00", "end_time": "12:00:00", "created_at": "2021-01-03T15:32:44+00:00", "updated_at": "2021-01-03T15:34:19+00:00" } ```