Get all model-identifiers associated with a specific booking
curl --request GET \
--url https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers \
--header 'Authorization: Bearer <token>'import requests
url = "https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"type": "bookings",
"id": "4475769",
"attributes": {
"number": "BB41883525",
"status": "accepted",
"is_blocker": false,
"start_date": "2021-10-07T11:00:00+00:00",
"end_date": "2021-10-07T11:05:00+00:00",
"blocker_start_date": "2021-10-07T11:00:00+00:00",
"blocker_end_date": "2021-10-07T11:05:00+00:00",
"description": "New booking",
"charged_duration": 5,
"weight": 1,
"currency": "EUR",
"total": 0,
"is_net_total": false,
"code": "G0osnVwSbKdEkUbF",
"subtotal": 0,
"charged_total": 0,
"charged_subtotal": 0,
"starting_fee": 0,
"customer_note": null,
"created_at": "2021-10-07T11:27:30+00:00",
"canceled_at": null,
"check_in_date": null,
"check_out_date": null,
"custom_entry_map": {},
"note": null,
"manually_created": true,
"is_sub_booking": false,
"external_uuid": null,
"has_payment": false,
"is_editable": true,
"updated_at": "2021-10-07T11:27:30+00:00"
},
"links": {
"self": "https://b.anny.co/api/v1/bookings/4475769"
},
"meta": []
}
}Booking Management
Get all model-identifiers associated with a specific booking
GET
/
api
/
v1
/
bookings
/
{booking_id}
/
model-identifiers
Get all model-identifiers associated with a specific booking
curl --request GET \
--url https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers \
--header 'Authorization: Bearer <token>'import requests
url = "https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/bookings/{booking_id}/model-identifiers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"type": "bookings",
"id": "4475769",
"attributes": {
"number": "BB41883525",
"status": "accepted",
"is_blocker": false,
"start_date": "2021-10-07T11:00:00+00:00",
"end_date": "2021-10-07T11:05:00+00:00",
"blocker_start_date": "2021-10-07T11:00:00+00:00",
"blocker_end_date": "2021-10-07T11:05:00+00:00",
"description": "New booking",
"charged_duration": 5,
"weight": 1,
"currency": "EUR",
"total": 0,
"is_net_total": false,
"code": "G0osnVwSbKdEkUbF",
"subtotal": 0,
"charged_total": 0,
"charged_subtotal": 0,
"starting_fee": 0,
"customer_note": null,
"created_at": "2021-10-07T11:27:30+00:00",
"canceled_at": null,
"check_in_date": null,
"check_out_date": null,
"custom_entry_map": {},
"note": null,
"manually_created": true,
"is_sub_booking": false,
"external_uuid": null,
"has_payment": false,
"is_editable": true,
"updated_at": "2021-10-07T11:27:30+00:00"
},
"links": {
"self": "https://b.anny.co/api/v1/bookings/4475769"
},
"meta": []
}
}Autorisierungen
The access token received from the authorization server in the OAuth 2.0 flow.
Header
Bearer Token
Pfadparameter
Abfrageparameter
Organization ID
Antwort
OK
A booking blocks the related resource from start_date until its end_date while its status is reserved, requested or accepted.
Status values:
reserved— booking is reserved until order expirationrequested— needs manual acceptance by adminaccepted— accepted (automatically or manually)rejected— rejected by admin before fulfillment; always yields a 100% refund when payment existscanceled— canceled by customer or admin; refund follows the configured cancellation policy conditionsexpired— booking expired because the check-in time passed without check-in
Show child attributes
Show child attributes
⌘I