BaseBookable
Returns a list of BaseBookable objects
GET/api/event/base_bookable
Query parameters
namestring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
tokenstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
baseLocationstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
bookableTypestring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
slugIdentifierstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressStreetLevelstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressCitystring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressZipstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressCountrystring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressGeoLatstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressGeoLngstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
idinteger | |
deletedboolean | This property is used to mark an entity as deleted / archived |
billingModestring | How bookings on this bookable are billed: BILLING_MODE_UPFRONT (null = upfront, invoice at booking time) or BILLING_MODE_USAGE (free reservation, deferred billing from real usage data) Also in Default: the member app shows "Nutzung erfassen" only for usage-billed bookables. |
usageBillingIntervalstring | Billing interval for BILLING_MODE_USAGE: USAGE_BILLING_INTERVAL_PER_BOOKING or USAGE_BILLING_INTERVAL_MONTHLY. Null = use setting event_real_usage_billing_mode. |
maxActiveBookingsPerUserstring | Maximum number of active (future, not cancelled) self-service bookings one person may hold on this bookable at the same time. Null = unlimited. Admin bookings are not limited. |
maxAdvanceBookingHoursstring | Maximum number of hours a self-service booking may start in the future. Null = unlimited. Admin bookings are not limited. |
inventoryManagedboolean | Kept as inventory (Inventar-Ausleihe): the office hands the item over and takes it back, with deposit and reminders. Only used while the setting event_inventory_enabled is on. |
inventoryNumberstring | Inventory number of the item (Inventarnummer). |
createdstring | |
searchStringstring | text to search for in the list |
orderFieldNamestring | name of the order field |
orderFieldSortstring | sorting modeAllowed: DESCASC |
pageinteger | page of the list |
pageSizeinteger | number of entries for each page |
withMaxPageNumberstring | returns the number of pages available as a header if this is set |
Responses
200Returns a list of BaseBookable objectsarray<BaseBookable>
Show fields (79)
ticketSeatingPlanIdintegerId of the seating plan of the room, also for the public serialization.
baseLocationBaseLocation4Show fields (38)
idintegerPrimary key of the location. Internal ID.
tokenstringPublic token of the location. Used in links instead of the ID.
location_typestringType of the location, for example room, hall or outdoor area.
in_contact_centerbooleanThe location is shown in the contact center.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
is_ui_filterbooleanThis property is used to mark an entity as a filter for the frontend
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
idintegerPrimary key of the bookable. Internal ID.
tokenstringPublic token of the bookable. Used in links instead of the ID.
bookable_typestringType of the bookable, for example room, court or vehicle.
floor_levelstringFloor the bookable is on.
floor_sizeintegerFloor size in square meters.
pets_allowedbooleanPets are allowed.
barrier_freebooleanThe bookable is barrier-free.
cargo_volumeintegerCargo volume in liters.
fuel_typestringFuel type of the vehicle.
seating_capacityintegerNumber of seats.
has_wait_listbooleanThe bookable has a waiting list once it is fully booked.
booking_limitintegerMaximum number of bookings.
billing_modestringHow bookings on this bookable are billed: BILLING_MODE_UPFRONT (null = upfront, invoice at booking time) or BILLING_MODE_USAGE (free reservation, deferred billing from real usage data) Also in Default: the member app shows "Nutzung erfassen" only for usage-billed bookables.
max_active_bookings_per_userintegerMaximum number of active (future, not cancelled) self-service bookings one person may hold on this bookable at the same time. Null = unlimited. Admin bookings are not limited.
max_advance_booking_hoursintegerMaximum number of hours a self-service booking may start in the future. Null = unlimited. Admin bookings are not limited.
inventory_managedbooleanKept as inventory (Inventar-Ausleihe): the office hands the item over and takes it back, with deposit and reminders. Only used while the setting event_inventory_enabled is on.
inventory_depositnumber (float)Deposit (Kaution) per piece asked on hand-over. Null = no deposit.
new_booking_only_in_blocksbooleanNew bookings are only possible in the defined blocks.
new_booking_only_in_opening_hoursbooleanNew bookings are only possible during the opening hours.
new_booking_only_in_self_service_opening_hoursbooleanNew bookings are only possible during the self-service opening hours.
new_booking_limit_days_beforeintegerNumber of days before the start until which new bookings are possible.
new_booking_limit_stop_days_beforeintegerNumber of days before the start from which new bookings are closed.
delete_booking_hours_beforeintegerHours before the start until which a booking can be cancelled.
block_lengthintegerLength of a booking block in minutes.
new_booking_min_lengthintegerMinimum length of a new booking in minutes.
new_booking_max_lengthintegerMaximum length of a new booking in minutes.
require_addressbooleanThe address must be entered when booking.
require_contactbooleanContact details must be entered when booking.
require_billingbooleanBilling details must be entered when booking.
require_booking_titlebooleanA title must be entered when booking.
allow_direct_billingbooleanrequire_agebooleanThe age must be entered when booking.
age_groupstringAge group the bookable is intended for.
min_ageintegerMinimum age in years.
max_ageintegerMaximum age in years.
age_toleranceintegerYears by which the age may be outside the range and still be accepted.
counter_update_modestringHow the usage counters of the bookable are updated.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
self_service_opening_hours_mondaystringSelf-service opening hours on Monday.
self_service_opening_hours_tuesdaystringSelf-service opening hours on Tuesday.
self_service_opening_hours_wednesdaystringSelf-service opening hours on Wednesday.
self_service_opening_hours_thursdaystringSelf-service opening hours on Thursday.
self_service_opening_hours_fridaystringSelf-service opening hours on Friday.
self_service_opening_hours_saturdaystringSelf-service opening hours on Saturday.
self_service_opening_hours_sundaystringSelf-service opening hours on Sunday.
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
curl --request GET \
--url https://your-instance.iw-erp.de/api/event/base_bookable \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/event/base_bookable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/event/base_bookable"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/event/base_bookable', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/event/base_bookable"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/event/base_bookable")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/event/base_bookable"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/event_base_bookable_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await EventBaseBookableController.getAll();
if (result.success) {
print(result.data);
}[
{
"id": 42,
"require_booking_title": true,
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456",
"main_email": "lena.hartmann@example.org",
"name": "Beispiel"
}
]Add a new BaseBookable
POST/api/event/base_bookable
Request body application/json
dataBaseBookable17Show fields (21)
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
deletedbooleanThis property is used to mark an entity as deleted / archived
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
ucatsarray<UnifiedCategory11>Unified categories of the entity.
Responses
200Add a new BaseBookableBaseBookable
Show fields (79)
ticketSeatingPlanIdintegerId of the seating plan of the room, also for the public serialization.
baseLocationBaseLocation4Show fields (38)
idintegerPrimary key of the location. Internal ID.
tokenstringPublic token of the location. Used in links instead of the ID.
location_typestringType of the location, for example room, hall or outdoor area.
in_contact_centerbooleanThe location is shown in the contact center.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
is_ui_filterbooleanThis property is used to mark an entity as a filter for the frontend
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
idintegerPrimary key of the bookable. Internal ID.
tokenstringPublic token of the bookable. Used in links instead of the ID.
bookable_typestringType of the bookable, for example room, court or vehicle.
floor_levelstringFloor the bookable is on.
floor_sizeintegerFloor size in square meters.
pets_allowedbooleanPets are allowed.
barrier_freebooleanThe bookable is barrier-free.
cargo_volumeintegerCargo volume in liters.
fuel_typestringFuel type of the vehicle.
seating_capacityintegerNumber of seats.
has_wait_listbooleanThe bookable has a waiting list once it is fully booked.
booking_limitintegerMaximum number of bookings.
billing_modestringHow bookings on this bookable are billed: BILLING_MODE_UPFRONT (null = upfront, invoice at booking time) or BILLING_MODE_USAGE (free reservation, deferred billing from real usage data) Also in Default: the member app shows "Nutzung erfassen" only for usage-billed bookables.
max_active_bookings_per_userintegerMaximum number of active (future, not cancelled) self-service bookings one person may hold on this bookable at the same time. Null = unlimited. Admin bookings are not limited.
max_advance_booking_hoursintegerMaximum number of hours a self-service booking may start in the future. Null = unlimited. Admin bookings are not limited.
inventory_managedbooleanKept as inventory (Inventar-Ausleihe): the office hands the item over and takes it back, with deposit and reminders. Only used while the setting event_inventory_enabled is on.
inventory_depositnumber (float)Deposit (Kaution) per piece asked on hand-over. Null = no deposit.
new_booking_only_in_blocksbooleanNew bookings are only possible in the defined blocks.
new_booking_only_in_opening_hoursbooleanNew bookings are only possible during the opening hours.
new_booking_only_in_self_service_opening_hoursbooleanNew bookings are only possible during the self-service opening hours.
new_booking_limit_days_beforeintegerNumber of days before the start until which new bookings are possible.
new_booking_limit_stop_days_beforeintegerNumber of days before the start from which new bookings are closed.
delete_booking_hours_beforeintegerHours before the start until which a booking can be cancelled.
block_lengthintegerLength of a booking block in minutes.
new_booking_min_lengthintegerMinimum length of a new booking in minutes.
new_booking_max_lengthintegerMaximum length of a new booking in minutes.
require_addressbooleanThe address must be entered when booking.
require_contactbooleanContact details must be entered when booking.
require_billingbooleanBilling details must be entered when booking.
require_booking_titlebooleanA title must be entered when booking.
allow_direct_billingbooleanrequire_agebooleanThe age must be entered when booking.
age_groupstringAge group the bookable is intended for.
min_ageintegerMinimum age in years.
max_ageintegerMaximum age in years.
age_toleranceintegerYears by which the age may be outside the range and still be accepted.
counter_update_modestringHow the usage counters of the bookable are updated.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
self_service_opening_hours_mondaystringSelf-service opening hours on Monday.
self_service_opening_hours_tuesdaystringSelf-service opening hours on Tuesday.
self_service_opening_hours_wednesdaystringSelf-service opening hours on Wednesday.
self_service_opening_hours_thursdaystringSelf-service opening hours on Thursday.
self_service_opening_hours_fridaystringSelf-service opening hours on Friday.
self_service_opening_hours_saturdaystringSelf-service opening hours on Saturday.
self_service_opening_hours_sundaystringSelf-service opening hours on Sunday.
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
curl --request POST \
--url https://your-instance.iw-erp.de/api/event/base_bookable \
--header 'content-type: application/json' \
--header 'x-iw-jwt-token: <TOKEN>' \
--data '
{
"data": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
}
}
'const options = {
method: 'POST',
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: JSON.stringify({
data: {
address_street: 'Jakobistr. 39',
address_city: 'Hannover',
address_zip: '30163',
address_country: 'DE',
address_full_country: 'DE',
main_phone: '+49 511 123456'
}
})
};
fetch('https://your-instance.iw-erp.de/api/event/base_bookable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/event/base_bookable"
payload = { "data": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
} }
headers = {
"x-iw-jwt-token": "<TOKEN>",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/event/base_bookable', [
'body' => '{"data":{"address_street":"Jakobistr. 39","address_city":"Hannover","address_zip":"30163","address_country":"DE","address_full_country":"DE","main_phone":"+49 511 123456"}}',
'headers' => [
'content-type' => 'application/json',
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/event/base_bookable"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
Content = new StringContent("{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}");
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/event/base_bookable")
.post(body)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/event/base_bookable"
payload := strings.NewReader("{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/event_base_bookable_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/event_base_bookable.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await EventBaseBookableController.post(EventBaseBookable.fromJson({
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
}));
if (result.success) {
print(result.data);
}{
"id": 42,
"require_booking_title": true,
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456",
"main_email": "lena.hartmann@example.org",
"name": "Beispiel"
}Returns a single BaseBookable
GET/api/event/base_bookable/{identifier}
Path parameters
identifierrequiredstring |
Responses
200Returns a single BaseBookableBaseBookable
Show fields (79)
ticketSeatingPlanIdintegerId of the seating plan of the room, also for the public serialization.
baseLocationBaseLocation4Show fields (38)
idintegerPrimary key of the location. Internal ID.
tokenstringPublic token of the location. Used in links instead of the ID.
location_typestringType of the location, for example room, hall or outdoor area.
in_contact_centerbooleanThe location is shown in the contact center.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
is_ui_filterbooleanThis property is used to mark an entity as a filter for the frontend
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
idintegerPrimary key of the bookable. Internal ID.
tokenstringPublic token of the bookable. Used in links instead of the ID.
bookable_typestringType of the bookable, for example room, court or vehicle.
floor_levelstringFloor the bookable is on.
floor_sizeintegerFloor size in square meters.
pets_allowedbooleanPets are allowed.
barrier_freebooleanThe bookable is barrier-free.
cargo_volumeintegerCargo volume in liters.
fuel_typestringFuel type of the vehicle.
seating_capacityintegerNumber of seats.
has_wait_listbooleanThe bookable has a waiting list once it is fully booked.
booking_limitintegerMaximum number of bookings.
billing_modestringHow bookings on this bookable are billed: BILLING_MODE_UPFRONT (null = upfront, invoice at booking time) or BILLING_MODE_USAGE (free reservation, deferred billing from real usage data) Also in Default: the member app shows "Nutzung erfassen" only for usage-billed bookables.
max_active_bookings_per_userintegerMaximum number of active (future, not cancelled) self-service bookings one person may hold on this bookable at the same time. Null = unlimited. Admin bookings are not limited.
max_advance_booking_hoursintegerMaximum number of hours a self-service booking may start in the future. Null = unlimited. Admin bookings are not limited.
inventory_managedbooleanKept as inventory (Inventar-Ausleihe): the office hands the item over and takes it back, with deposit and reminders. Only used while the setting event_inventory_enabled is on.
inventory_depositnumber (float)Deposit (Kaution) per piece asked on hand-over. Null = no deposit.
new_booking_only_in_blocksbooleanNew bookings are only possible in the defined blocks.
new_booking_only_in_opening_hoursbooleanNew bookings are only possible during the opening hours.
new_booking_only_in_self_service_opening_hoursbooleanNew bookings are only possible during the self-service opening hours.
new_booking_limit_days_beforeintegerNumber of days before the start until which new bookings are possible.
new_booking_limit_stop_days_beforeintegerNumber of days before the start from which new bookings are closed.
delete_booking_hours_beforeintegerHours before the start until which a booking can be cancelled.
block_lengthintegerLength of a booking block in minutes.
new_booking_min_lengthintegerMinimum length of a new booking in minutes.
new_booking_max_lengthintegerMaximum length of a new booking in minutes.
require_addressbooleanThe address must be entered when booking.
require_contactbooleanContact details must be entered when booking.
require_billingbooleanBilling details must be entered when booking.
require_booking_titlebooleanA title must be entered when booking.
allow_direct_billingbooleanrequire_agebooleanThe age must be entered when booking.
age_groupstringAge group the bookable is intended for.
min_ageintegerMinimum age in years.
max_ageintegerMaximum age in years.
age_toleranceintegerYears by which the age may be outside the range and still be accepted.
counter_update_modestringHow the usage counters of the bookable are updated.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
self_service_opening_hours_mondaystringSelf-service opening hours on Monday.
self_service_opening_hours_tuesdaystringSelf-service opening hours on Tuesday.
self_service_opening_hours_wednesdaystringSelf-service opening hours on Wednesday.
self_service_opening_hours_thursdaystringSelf-service opening hours on Thursday.
self_service_opening_hours_fridaystringSelf-service opening hours on Friday.
self_service_opening_hours_saturdaystringSelf-service opening hours on Saturday.
self_service_opening_hours_sundaystringSelf-service opening hours on Sunday.
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
curl --request GET \
--url https://your-instance.iw-erp.de/api/event/base_bookable/42 \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/event/base_bookable/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/event/base_bookable/42"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/event/base_bookable/42', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/event/base_bookable/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/event/base_bookable/42")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/event/base_bookable/42"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/event_base_bookable_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await EventBaseBookableController.get('42');
if (result.success) {
print(result.data);
}{
"id": 42,
"require_booking_title": true,
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456",
"main_email": "lena.hartmann@example.org",
"name": "Beispiel"
}Update a BaseBookable
PUT/api/event/base_bookable/{identifier}
Path parameters
identifierrequiredstring |
Request body application/json
dataBaseBookable17Show fields (21)
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
deletedbooleanThis property is used to mark an entity as deleted / archived
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
ucatsarray<UnifiedCategory11>Unified categories of the entity.
Responses
200Update a BaseBookableBaseBookable
Show fields (79)
ticketSeatingPlanIdintegerId of the seating plan of the room, also for the public serialization.
baseLocationBaseLocation4Show fields (38)
idintegerPrimary key of the location. Internal ID.
tokenstringPublic token of the location. Used in links instead of the ID.
location_typestringType of the location, for example room, hall or outdoor area.
in_contact_centerbooleanThe location is shown in the contact center.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
is_ui_filterbooleanThis property is used to mark an entity as a filter for the frontend
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
idintegerPrimary key of the bookable. Internal ID.
tokenstringPublic token of the bookable. Used in links instead of the ID.
bookable_typestringType of the bookable, for example room, court or vehicle.
floor_levelstringFloor the bookable is on.
floor_sizeintegerFloor size in square meters.
pets_allowedbooleanPets are allowed.
barrier_freebooleanThe bookable is barrier-free.
cargo_volumeintegerCargo volume in liters.
fuel_typestringFuel type of the vehicle.
seating_capacityintegerNumber of seats.
has_wait_listbooleanThe bookable has a waiting list once it is fully booked.
booking_limitintegerMaximum number of bookings.
billing_modestringHow bookings on this bookable are billed: BILLING_MODE_UPFRONT (null = upfront, invoice at booking time) or BILLING_MODE_USAGE (free reservation, deferred billing from real usage data) Also in Default: the member app shows "Nutzung erfassen" only for usage-billed bookables.
max_active_bookings_per_userintegerMaximum number of active (future, not cancelled) self-service bookings one person may hold on this bookable at the same time. Null = unlimited. Admin bookings are not limited.
max_advance_booking_hoursintegerMaximum number of hours a self-service booking may start in the future. Null = unlimited. Admin bookings are not limited.
inventory_managedbooleanKept as inventory (Inventar-Ausleihe): the office hands the item over and takes it back, with deposit and reminders. Only used while the setting event_inventory_enabled is on.
inventory_depositnumber (float)Deposit (Kaution) per piece asked on hand-over. Null = no deposit.
new_booking_only_in_blocksbooleanNew bookings are only possible in the defined blocks.
new_booking_only_in_opening_hoursbooleanNew bookings are only possible during the opening hours.
new_booking_only_in_self_service_opening_hoursbooleanNew bookings are only possible during the self-service opening hours.
new_booking_limit_days_beforeintegerNumber of days before the start until which new bookings are possible.
new_booking_limit_stop_days_beforeintegerNumber of days before the start from which new bookings are closed.
delete_booking_hours_beforeintegerHours before the start until which a booking can be cancelled.
block_lengthintegerLength of a booking block in minutes.
new_booking_min_lengthintegerMinimum length of a new booking in minutes.
new_booking_max_lengthintegerMaximum length of a new booking in minutes.
require_addressbooleanThe address must be entered when booking.
require_contactbooleanContact details must be entered when booking.
require_billingbooleanBilling details must be entered when booking.
require_booking_titlebooleanA title must be entered when booking.
allow_direct_billingbooleanrequire_agebooleanThe age must be entered when booking.
age_groupstringAge group the bookable is intended for.
min_ageintegerMinimum age in years.
max_ageintegerMaximum age in years.
age_toleranceintegerYears by which the age may be outside the range and still be accepted.
counter_update_modestringHow the usage counters of the bookable are updated.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
self_service_opening_hours_mondaystringSelf-service opening hours on Monday.
self_service_opening_hours_tuesdaystringSelf-service opening hours on Tuesday.
self_service_opening_hours_wednesdaystringSelf-service opening hours on Wednesday.
self_service_opening_hours_thursdaystringSelf-service opening hours on Thursday.
self_service_opening_hours_fridaystringSelf-service opening hours on Friday.
self_service_opening_hours_saturdaystringSelf-service opening hours on Saturday.
self_service_opening_hours_sundaystringSelf-service opening hours on Sunday.
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
curl --request PUT \
--url https://your-instance.iw-erp.de/api/event/base_bookable/42 \
--header 'content-type: application/json' \
--header 'x-iw-jwt-token: <TOKEN>' \
--data '
{
"data": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
}
}
'const options = {
method: 'PUT',
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: JSON.stringify({
data: {
address_street: 'Jakobistr. 39',
address_city: 'Hannover',
address_zip: '30163',
address_country: 'DE',
address_full_country: 'DE',
main_phone: '+49 511 123456'
}
})
};
fetch('https://your-instance.iw-erp.de/api/event/base_bookable/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/event/base_bookable/42"
payload = { "data": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
} }
headers = {
"x-iw-jwt-token": "<TOKEN>",
"content-type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('PUT', 'https://your-instance.iw-erp.de/api/event/base_bookable/42', [
'body' => '{"data":{"address_street":"Jakobistr. 39","address_city":"Hannover","address_zip":"30163","address_country":"DE","address_full_country":"DE","main_phone":"+49 511 123456"}}',
'headers' => [
'content-type' => 'application/json',
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/event/base_bookable/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
Content = new StringContent("{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}");
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/event/base_bookable/42")
.put(body)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/event/base_bookable/42"
payload := strings.NewReader("{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/event_base_bookable_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/event_base_bookable.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await EventBaseBookableController.put(EventBaseBookable.fromJson({
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
}));
if (result.success) {
print(result.data);
}{
"id": 42,
"require_booking_title": true,
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456",
"main_email": "lena.hartmann@example.org",
"name": "Beispiel"
}Update a BaseBookable
PATCH/api/event/base_bookable/{identifier}
Path parameters
identifierrequiredstring |
Request body application/json
dataBaseBookable17Show fields (21)
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
deletedbooleanThis property is used to mark an entity as deleted / archived
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
ucatsarray<UnifiedCategory11>Unified categories of the entity.
Responses
200Update a BaseBookableBaseBookable
Show fields (79)
ticketSeatingPlanIdintegerId of the seating plan of the room, also for the public serialization.
baseLocationBaseLocation4Show fields (38)
idintegerPrimary key of the location. Internal ID.
tokenstringPublic token of the location. Used in links instead of the ID.
location_typestringType of the location, for example room, hall or outdoor area.
in_contact_centerbooleanThe location is shown in the contact center.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
is_ui_filterbooleanThis property is used to mark an entity as a filter for the frontend
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
idintegerPrimary key of the bookable. Internal ID.
tokenstringPublic token of the bookable. Used in links instead of the ID.
bookable_typestringType of the bookable, for example room, court or vehicle.
floor_levelstringFloor the bookable is on.
floor_sizeintegerFloor size in square meters.
pets_allowedbooleanPets are allowed.
barrier_freebooleanThe bookable is barrier-free.
cargo_volumeintegerCargo volume in liters.
fuel_typestringFuel type of the vehicle.
seating_capacityintegerNumber of seats.
has_wait_listbooleanThe bookable has a waiting list once it is fully booked.
booking_limitintegerMaximum number of bookings.
billing_modestringHow bookings on this bookable are billed: BILLING_MODE_UPFRONT (null = upfront, invoice at booking time) or BILLING_MODE_USAGE (free reservation, deferred billing from real usage data) Also in Default: the member app shows "Nutzung erfassen" only for usage-billed bookables.
max_active_bookings_per_userintegerMaximum number of active (future, not cancelled) self-service bookings one person may hold on this bookable at the same time. Null = unlimited. Admin bookings are not limited.
max_advance_booking_hoursintegerMaximum number of hours a self-service booking may start in the future. Null = unlimited. Admin bookings are not limited.
inventory_managedbooleanKept as inventory (Inventar-Ausleihe): the office hands the item over and takes it back, with deposit and reminders. Only used while the setting event_inventory_enabled is on.
inventory_depositnumber (float)Deposit (Kaution) per piece asked on hand-over. Null = no deposit.
new_booking_only_in_blocksbooleanNew bookings are only possible in the defined blocks.
new_booking_only_in_opening_hoursbooleanNew bookings are only possible during the opening hours.
new_booking_only_in_self_service_opening_hoursbooleanNew bookings are only possible during the self-service opening hours.
new_booking_limit_days_beforeintegerNumber of days before the start until which new bookings are possible.
new_booking_limit_stop_days_beforeintegerNumber of days before the start from which new bookings are closed.
delete_booking_hours_beforeintegerHours before the start until which a booking can be cancelled.
block_lengthintegerLength of a booking block in minutes.
new_booking_min_lengthintegerMinimum length of a new booking in minutes.
new_booking_max_lengthintegerMaximum length of a new booking in minutes.
require_addressbooleanThe address must be entered when booking.
require_contactbooleanContact details must be entered when booking.
require_billingbooleanBilling details must be entered when booking.
require_booking_titlebooleanA title must be entered when booking.
allow_direct_billingbooleanrequire_agebooleanThe age must be entered when booking.
age_groupstringAge group the bookable is intended for.
min_ageintegerMinimum age in years.
max_ageintegerMaximum age in years.
age_toleranceintegerYears by which the age may be outside the range and still be accepted.
counter_update_modestringHow the usage counters of the bookable are updated.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
self_service_opening_hours_mondaystringSelf-service opening hours on Monday.
self_service_opening_hours_tuesdaystringSelf-service opening hours on Tuesday.
self_service_opening_hours_wednesdaystringSelf-service opening hours on Wednesday.
self_service_opening_hours_thursdaystringSelf-service opening hours on Thursday.
self_service_opening_hours_fridaystringSelf-service opening hours on Friday.
self_service_opening_hours_saturdaystringSelf-service opening hours on Saturday.
self_service_opening_hours_sundaystringSelf-service opening hours on Sunday.
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
curl --request PATCH \
--url https://your-instance.iw-erp.de/api/event/base_bookable/42 \
--header 'content-type: application/json' \
--header 'x-iw-jwt-token: <TOKEN>' \
--data '
{
"data": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
}
}
'const options = {
method: 'PATCH',
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: JSON.stringify({
data: {
address_street: 'Jakobistr. 39',
address_city: 'Hannover',
address_zip: '30163',
address_country: 'DE',
address_full_country: 'DE',
main_phone: '+49 511 123456'
}
})
};
fetch('https://your-instance.iw-erp.de/api/event/base_bookable/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/event/base_bookable/42"
payload = { "data": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
} }
headers = {
"x-iw-jwt-token": "<TOKEN>",
"content-type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('PATCH', 'https://your-instance.iw-erp.de/api/event/base_bookable/42', [
'body' => '{"data":{"address_street":"Jakobistr. 39","address_city":"Hannover","address_zip":"30163","address_country":"DE","address_full_country":"DE","main_phone":"+49 511 123456"}}',
'headers' => [
'content-type' => 'application/json',
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Patch,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/event/base_bookable/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
Content = new StringContent("{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}");
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/event/base_bookable/42")
.patch(body)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/event/base_bookable/42"
payload := strings.NewReader("{\"data\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"main_phone\":\"+49 511 123456\"}}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'dart:convert';
import 'package:http/http.dart' as http;
final response = await http.patch(
Uri.parse('https://your-instance.iw-erp.de/api/event/base_bookable/42'),
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: jsonEncode({
"data": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456"
}
}),
);
print(response.body);{
"id": 42,
"require_booking_title": true,
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456",
"main_email": "lena.hartmann@example.org",
"name": "Beispiel"
}Returns a list of BaseBookable objects with given self-service access scope
GET/api/event/base_bookable_for_self_service_scope/{scope}
Path parameters
scoperequiredstring |
Query parameters
namestring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
tokenstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
baseLocationstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
bookableTypestring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
slugIdentifierstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressStreetLevelstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressCitystring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressZipstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressCountrystring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressGeoLatstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
addressGeoLngstring | Requires access right: PUBLIC, LOGGED_IN, LOGGED_IN_EXPLICIT, C1, SCOPE |
idinteger | |
deletedboolean | This property is used to mark an entity as deleted / archived |
billingModestring | How bookings on this bookable are billed: BILLING_MODE_UPFRONT (null = upfront, invoice at booking time) or BILLING_MODE_USAGE (free reservation, deferred billing from real usage data) Also in Default: the member app shows "Nutzung erfassen" only for usage-billed bookables. |
usageBillingIntervalstring | Billing interval for BILLING_MODE_USAGE: USAGE_BILLING_INTERVAL_PER_BOOKING or USAGE_BILLING_INTERVAL_MONTHLY. Null = use setting event_real_usage_billing_mode. |
maxActiveBookingsPerUserstring | Maximum number of active (future, not cancelled) self-service bookings one person may hold on this bookable at the same time. Null = unlimited. Admin bookings are not limited. |
maxAdvanceBookingHoursstring | Maximum number of hours a self-service booking may start in the future. Null = unlimited. Admin bookings are not limited. |
inventoryManagedboolean | Kept as inventory (Inventar-Ausleihe): the office hands the item over and takes it back, with deposit and reminders. Only used while the setting event_inventory_enabled is on. |
inventoryNumberstring | Inventory number of the item (Inventarnummer). |
createdstring | |
searchStringstring | text to search for in the list |
orderFieldNamestring | name of the order field |
orderFieldSortstring | sorting modeAllowed: DESCASC |
pageinteger | page of the list |
pageSizeinteger | number of entries for each page |
withMaxPageNumberstring | returns the number of pages available as a header if this is set |
Responses
200Returns a list of BaseBookable objects with given self-service access scopearray<BaseBookable>
Show fields (79)
ticketSeatingPlanIdintegerId of the seating plan of the room, also for the public serialization.
baseLocationBaseLocation4Show fields (38)
idintegerPrimary key of the location. Internal ID.
tokenstringPublic token of the location. Used in links instead of the ID.
location_typestringType of the location, for example room, hall or outdoor area.
in_contact_centerbooleanThe location is shown in the contact center.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
is_ui_filterbooleanThis property is used to mark an entity as a filter for the frontend
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
idintegerPrimary key of the bookable. Internal ID.
tokenstringPublic token of the bookable. Used in links instead of the ID.
bookable_typestringType of the bookable, for example room, court or vehicle.
floor_levelstringFloor the bookable is on.
floor_sizeintegerFloor size in square meters.
pets_allowedbooleanPets are allowed.
barrier_freebooleanThe bookable is barrier-free.
cargo_volumeintegerCargo volume in liters.
fuel_typestringFuel type of the vehicle.
seating_capacityintegerNumber of seats.
has_wait_listbooleanThe bookable has a waiting list once it is fully booked.
booking_limitintegerMaximum number of bookings.
billing_modestringHow bookings on this bookable are billed: BILLING_MODE_UPFRONT (null = upfront, invoice at booking time) or BILLING_MODE_USAGE (free reservation, deferred billing from real usage data) Also in Default: the member app shows "Nutzung erfassen" only for usage-billed bookables.
max_active_bookings_per_userintegerMaximum number of active (future, not cancelled) self-service bookings one person may hold on this bookable at the same time. Null = unlimited. Admin bookings are not limited.
max_advance_booking_hoursintegerMaximum number of hours a self-service booking may start in the future. Null = unlimited. Admin bookings are not limited.
inventory_managedbooleanKept as inventory (Inventar-Ausleihe): the office hands the item over and takes it back, with deposit and reminders. Only used while the setting event_inventory_enabled is on.
inventory_depositnumber (float)Deposit (Kaution) per piece asked on hand-over. Null = no deposit.
new_booking_only_in_blocksbooleanNew bookings are only possible in the defined blocks.
new_booking_only_in_opening_hoursbooleanNew bookings are only possible during the opening hours.
new_booking_only_in_self_service_opening_hoursbooleanNew bookings are only possible during the self-service opening hours.
new_booking_limit_days_beforeintegerNumber of days before the start until which new bookings are possible.
new_booking_limit_stop_days_beforeintegerNumber of days before the start from which new bookings are closed.
delete_booking_hours_beforeintegerHours before the start until which a booking can be cancelled.
block_lengthintegerLength of a booking block in minutes.
new_booking_min_lengthintegerMinimum length of a new booking in minutes.
new_booking_max_lengthintegerMaximum length of a new booking in minutes.
require_addressbooleanThe address must be entered when booking.
require_contactbooleanContact details must be entered when booking.
require_billingbooleanBilling details must be entered when booking.
require_booking_titlebooleanA title must be entered when booking.
allow_direct_billingbooleanrequire_agebooleanThe age must be entered when booking.
age_groupstringAge group the bookable is intended for.
min_ageintegerMinimum age in years.
max_ageintegerMaximum age in years.
age_toleranceintegerYears by which the age may be outside the range and still be accepted.
counter_update_modestringHow the usage counters of the bookable are updated.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
short_identifierstringShort identifier of the entity.
image_urlstringURL of the image of the entity.
slug_identifierstringSlug used in URLs of the entity.
opening_hours_mondaystringOpening hours on Monday.
opening_hours_tuesdaystringOpening hours on Tuesday.
opening_hours_wednesdaystringOpening hours on Wednesday.
opening_hours_thursdaystringOpening hours on Thursday.
opening_hours_fridaystringOpening hours on Friday.
opening_hours_saturdaystringOpening hours on Saturday.
opening_hours_sundaystringOpening hours on Sunday.
self_service_opening_hours_mondaystringSelf-service opening hours on Monday.
self_service_opening_hours_tuesdaystringSelf-service opening hours on Tuesday.
self_service_opening_hours_wednesdaystringSelf-service opening hours on Wednesday.
self_service_opening_hours_thursdaystringSelf-service opening hours on Thursday.
self_service_opening_hours_fridaystringSelf-service opening hours on Friday.
self_service_opening_hours_saturdaystringSelf-service opening hours on Saturday.
self_service_opening_hours_sundaystringSelf-service opening hours on Sunday.
unified_cat_idsobjectIDs of the unified categories.
unified_cat_namesobjectNames of the unified categories.
curl --request GET \
--url https://your-instance.iw-erp.de/api/event/base_bookable_for_self_service_scope/42 \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/event/base_bookable_for_self_service_scope/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/event/base_bookable_for_self_service_scope/42"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/event/base_bookable_for_self_service_scope/42', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/event/base_bookable_for_self_service_scope/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/event/base_bookable_for_self_service_scope/42")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/event/base_bookable_for_self_service_scope/42"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/event_base_bookable_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await EventBaseBookableController.getAllForSelfServiceScope('42');
if (result.success) {
print(result.data);
}[
{
"id": 42,
"require_booking_title": true,
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"main_phone": "+49 511 123456",
"main_email": "lena.hartmann@example.org",
"name": "Beispiel"
}
]Returns a calendar feed for a bookable
GET/api/event/base_bookable_calendar/{identifier}/{anonymized}
Path parameters
identifierrequiredstring | |
anonymizedrequiredstring |
Responses
default
curl --request GET \
--url https://your-instance.iw-erp.de/api/event/base_bookable_calendar/42/42 \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/event/base_bookable_calendar/42/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/event/base_bookable_calendar/42/42"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/event/base_bookable_calendar/42/42', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/event/base_bookable_calendar/42/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/event/base_bookable_calendar/42/42")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/event/base_bookable_calendar/42/42"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'package:http/http.dart' as http;
final response = await http.get(
Uri.parse('https://your-instance.iw-erp.de/api/event/base_bookable_calendar/42/42'),
headers: {'x-iw-jwt-token': '<TOKEN>'},
);
print(response.body);