Delete a booking from an order
curl --request DELETE \
--url https://b.anny.co/api/v1/order/bookings/{booking_id}import requests
url = "https://b.anny.co/api/v1/order/bookings/{booking_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://b.anny.co/api/v1/order/bookings/{booking_id}', 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/order/bookings/{booking_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$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/order/bookings/{booking_id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://b.anny.co/api/v1/order/bookings/{booking_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/order/bookings/{booking_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"type": "orders",
"id": "2012917",
"attributes": {
"number": "BO36265293",
"currency": "EUR",
"total": 199,
"net_amount": 167.23,
"tax_amount": 31.77,
"discount_amount": 0,
"status": "draft",
"access_token": "NK5EtluiM2L3nJlDs9sV5LhMaoPaRy",
"expires_at": "2021-09-24T14:30:19+00:00",
"created_at": "2021-09-24T14:15:09+00:00",
"updated_at": "2021-09-24T14:15:28+00:00"
},
"relationships": {
"bookings": {
"data": [
{
"type": "bookings",
"id": "3717554"
}
]
},
"customer": {
"data": null
},
"sub_orders": {
"data": [
{
"type": "orders",
"id": "2012918"
}
]
}
},
"links": {
"self": "https://b.anny.co/api/v1/orders/2012917"
},
"meta": {
"download_url": "https://b.anny.co/downloads/order-confirmation/2012917?access_token=NK5EtluiM2L3nJlDs9sV5LhMaoPaRy",
"voucher_code": null,
"is_base_order": true,
"payment_flow": "pay-offline",
"pay_now_amount": 0
}
},
"included": [
{
"type": "images",
"id": "8654",
"attributes": {
"url": "https://cdn.booking-buddy.de/public/images/gallery/large/GaRTAuUgqj6v9a6oAi6n6his8.jpg",
"copyright": "",
"width": 500,
"height": 347,
"order_index": 0,
"preview_image_base64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgADgAUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+n/i7+0NqHhS/mPg6yhki8O6rB/arZjb7bZ7ZUuVRW2kNE6rn5gclTyuaw9P+K+uwJo+l2Xhmfwt4h1TXIrg28gVUWx/dmYc5RCwBBHJGXbG4gnif2kNJvNM+KfhnxTYW+nNYXLzR6jbTiRXlbysGQbCAzbFA+bjKjOa6vSGt/iv4u0zS9RnvlgkMuwxSLHJDNgMsqvg5KiJcZXPJ5PFcil0kdVlZOK0PeNK+IviO9N6sFhItvbXL28c05QCdVx+8TG47Cc4zgnBOAMUV0Xw58PW3g/w4NLtZrm7EUhaS6vHDzTuVUl3IAGTnoAAMAAAUVsm+pyNK+h//9k=",
"small_path": "https://cdn.booking-buddy.de/public/images/gallery/small/GaRTAuUgqj6v9a6oAi6n6his8.jpg",
"medium_path": "https://cdn.booking-buddy.de/public/images/gallery/medium/GaRTAuUgqj6v9a6oAi6n6his8.jpg",
"large_path": "https://cdn.booking-buddy.de/public/images/gallery/large/GaRTAuUgqj6v9a6oAi6n6his8.jpg",
"created_at": "2021-09-21T09:37:11+00:00"
}
},
{
"type": "resources",
"id": "22153",
"attributes": {
"slug": "ctc",
"name": "Certified Team Coach",
"description": "<p>Book a certified team coach to get you team's collaboration to the next level.</p>",
"plain_description": "Book a certified team coach to get you team's collaboration to the next level.",
"availabilityMode": null,
"continuous": true,
"color": null,
"auto_accept_bookings": true,
"timezone": "Europe/Berlin",
"quantity": 1,
"staggered_quantity": null,
"max_booking_quantity": 1,
"has_children": false,
"available_from": "2021-08-31T22:00:00+00:00",
"available_to": null
},
"relationships": {
"parent": {
"data": null
},
"cover_image": {
"data": {
"type": "images",
"id": "8654"
}
}
},
"meta": {
"settings": {
"showAvailabilityCalendar": true,
"showAvailabilityCount": true,
"checkout": {
"customerCanPickChildren": false,
"requiresLogin": false,
"requiresLoginReason": "",
"verifyGuestEmail": false
},
"checkIn": {
"isEnabled": false
},
"selfCheckIn": {
"isEnabled": false,
"disabledUntil": 15,
"geoCheckEnabled": true,
"geoCheckMaxDelta": 997,
"allowedOverrunTime": 60
}
},
"meta_settings": {
"showAvailabilityCalendar": true,
"showAvailabilityCount": true,
"checkout": {
"customerCanPickChildren": false,
"requiresLogin": false,
"requiresLoginReason": "",
"verifyGuestEmail": false
},
"checkIn": {
"isEnabled": false
},
"selfCheckIn": {
"isEnabled": false,
"disabledUntil": 15,
"geoCheckEnabled": true,
"geoCheckMaxDelta": 997,
"allowedOverrunTime": 60
}
},
"zoom": false
}
},
{
"type": "services",
"id": "2783",
"attributes": {
"name": "Coaching: Effective Communication & Collaboration",
"slug": "stjymkaryfeu3zpdrjkipxbracoe4x",
"description": "<p>Learn how to effectively communicate to enable and maximize collaboration. Our coach provides you with 3 simple guidelines to venture off into new dimensions of collaboration.</p>",
"hidden": false,
"is_rental_option": false,
"has_flexible_duration": false,
"auto_duration": false,
"allow_cross_schedule": false,
"requires_booking_description": false,
"requires_address": true,
"requires_mobile": true,
"allow_customer_notes": true,
"allow_more_bookings": true,
"charge_off_schedule": true,
"booking_interval": 15,
"calculation_interval": 180,
"min_duration": 180,
"max_duration": 180,
"uncharged_duration": 0,
"is_full_day": false,
"lead_time": 10080,
"padding_before": 15,
"padding_after": 15,
"advance_booking_period": 31,
"price": 199,
"starting_fee": 0,
"currency": "EUR",
"tax_rate": 19,
"default_weight": 1,
"created_at": "2021-09-21T09:53:34+00:00",
"updated_at": "2021-09-22T12:31:16+00:00",
"access_code": null
},
"meta": {
"resource_list": "Certified Team Coach",
"min_duration_total": 199
}
},
{
"type": "bookings",
"id": "3717554",
"attributes": {
"number": "BB66568081",
"status": "reserved",
"is_blocker": false,
"start_date": "2021-10-22T07:00:00+00:00",
"end_date": "2021-10-22T10:00:00+00:00",
"blocker_start_date": "2021-10-22T06:45:00+00:00",
"blocker_end_date": "2021-10-22T10:15:00+00:00",
"description": null,
"charged_duration": 180,
"weight": 1,
"currency": "EUR",
"total": 199,
"code": "mYDM4cbnIeooDRRN",
"subtotal": 199,
"charged_total": 199,
"charged_subtotal": 199,
"starting_fee": 0,
"customer_note": null,
"created_at": "2021-09-24T14:15:19+00:00",
"canceled_at": null,
"check_in_date": null,
"check_out_date": null,
"custom_entry_map": {}
},
"relationships": {
"booking_add_ons": {
"data": []
},
"resource": {
"data": {
"type": "resources",
"id": "22153"
}
},
"service": {
"data": {
"type": "services",
"id": "2783"
}
},
"sub_bookings": {
"data": []
},
"cancellation_policy": {
"data": null
}
},
"meta": []
},
{
"type": "legal-documents",
"id": "311",
"attributes": {
"title": "T&C Test",
"content": "<p>T&C Test</p>",
"document_type": "terms_and_conditions"
}
},
{
"type": "legal-documents",
"id": "312",
"attributes": {
"title": "Privacy Test",
"content": "<p>Privacy Test</p>",
"document_type": "privacy_policy"
}
},
{
"type": "organizations",
"id": "734",
"attributes": {
"slug": "stadtmitte-buero",
"name": "Stadtmitte Büro",
"live": true,
"description": null,
"plain_description": "",
"official_name": "Workspace GmbH",
"support_email": "florian.schmitt@anny.co",
"phone": null,
"currency": "EUR",
"timezone": "Europe/Berlin",
"is_organization": true,
"responsible_for_contents": "Florian Schmitt",
"ceo": null,
"vat_id": null,
"register_number": null,
"local_court": null,
"financial_office": null
},
"relationships": {
"legal_documents": {
"data": [
{
"type": "legal-documents",
"id": "311"
},
{
"type": "legal-documents",
"id": "312"
}
]
}
},
"meta": {
"settings": {
"organizeResourcesBy": "category",
"checkout": {
"additionalFields": [],
"additionalRequiredFields": []
},
"preferFormalSalutation": false
},
"meta_settings": {
"organizeResourcesBy": "category",
"checkout": {
"additionalFields": [],
"additionalRequiredFields": []
},
"preferFormalSalutation": false
}
}
},
{
"type": "orders",
"id": "2012918",
"attributes": {
"number": "BO89972352",
"currency": "EUR",
"total": 199,
"net_amount": 167.23,
"tax_amount": 31.77,
"discount_amount": 0,
"status": "draft",
"access_token": "wyW93yQdteN83w6d7UYlDSGRhDGpI0",
"expires_at": null,
"created_at": "2021-09-24T14:15:09+00:00",
"updated_at": "2021-09-24T14:15:28+00:00"
},
"relationships": {
"bookings": {
"data": [
{
"type": "bookings",
"id": "3717554"
}
]
},
"organization": {
"data": {
"type": "organizations",
"id": "734"
}
}
},
"meta": []
}
]
}Orders & Checkout
Delete a booking from an order
This endpoint allows to delete the booking of an order that is still in status “draft”. After the booking has changed the status, no more changes are possible from the customer side. If there are no more bookings in the order, the entire order is deleted.
DELETE
/
api
/
v1
/
order
/
bookings
/
{booking_id}
Delete a booking from an order
curl --request DELETE \
--url https://b.anny.co/api/v1/order/bookings/{booking_id}import requests
url = "https://b.anny.co/api/v1/order/bookings/{booking_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://b.anny.co/api/v1/order/bookings/{booking_id}', 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/order/bookings/{booking_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$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/order/bookings/{booking_id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://b.anny.co/api/v1/order/bookings/{booking_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/order/bookings/{booking_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"type": "orders",
"id": "2012917",
"attributes": {
"number": "BO36265293",
"currency": "EUR",
"total": 199,
"net_amount": 167.23,
"tax_amount": 31.77,
"discount_amount": 0,
"status": "draft",
"access_token": "NK5EtluiM2L3nJlDs9sV5LhMaoPaRy",
"expires_at": "2021-09-24T14:30:19+00:00",
"created_at": "2021-09-24T14:15:09+00:00",
"updated_at": "2021-09-24T14:15:28+00:00"
},
"relationships": {
"bookings": {
"data": [
{
"type": "bookings",
"id": "3717554"
}
]
},
"customer": {
"data": null
},
"sub_orders": {
"data": [
{
"type": "orders",
"id": "2012918"
}
]
}
},
"links": {
"self": "https://b.anny.co/api/v1/orders/2012917"
},
"meta": {
"download_url": "https://b.anny.co/downloads/order-confirmation/2012917?access_token=NK5EtluiM2L3nJlDs9sV5LhMaoPaRy",
"voucher_code": null,
"is_base_order": true,
"payment_flow": "pay-offline",
"pay_now_amount": 0
}
},
"included": [
{
"type": "images",
"id": "8654",
"attributes": {
"url": "https://cdn.booking-buddy.de/public/images/gallery/large/GaRTAuUgqj6v9a6oAi6n6his8.jpg",
"copyright": "",
"width": 500,
"height": 347,
"order_index": 0,
"preview_image_base64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgADgAUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+n/i7+0NqHhS/mPg6yhki8O6rB/arZjb7bZ7ZUuVRW2kNE6rn5gclTyuaw9P+K+uwJo+l2Xhmfwt4h1TXIrg28gVUWx/dmYc5RCwBBHJGXbG4gnif2kNJvNM+KfhnxTYW+nNYXLzR6jbTiRXlbysGQbCAzbFA+bjKjOa6vSGt/iv4u0zS9RnvlgkMuwxSLHJDNgMsqvg5KiJcZXPJ5PFcil0kdVlZOK0PeNK+IviO9N6sFhItvbXL28c05QCdVx+8TG47Cc4zgnBOAMUV0Xw58PW3g/w4NLtZrm7EUhaS6vHDzTuVUl3IAGTnoAAMAAAUVsm+pyNK+h//9k=",
"small_path": "https://cdn.booking-buddy.de/public/images/gallery/small/GaRTAuUgqj6v9a6oAi6n6his8.jpg",
"medium_path": "https://cdn.booking-buddy.de/public/images/gallery/medium/GaRTAuUgqj6v9a6oAi6n6his8.jpg",
"large_path": "https://cdn.booking-buddy.de/public/images/gallery/large/GaRTAuUgqj6v9a6oAi6n6his8.jpg",
"created_at": "2021-09-21T09:37:11+00:00"
}
},
{
"type": "resources",
"id": "22153",
"attributes": {
"slug": "ctc",
"name": "Certified Team Coach",
"description": "<p>Book a certified team coach to get you team's collaboration to the next level.</p>",
"plain_description": "Book a certified team coach to get you team's collaboration to the next level.",
"availabilityMode": null,
"continuous": true,
"color": null,
"auto_accept_bookings": true,
"timezone": "Europe/Berlin",
"quantity": 1,
"staggered_quantity": null,
"max_booking_quantity": 1,
"has_children": false,
"available_from": "2021-08-31T22:00:00+00:00",
"available_to": null
},
"relationships": {
"parent": {
"data": null
},
"cover_image": {
"data": {
"type": "images",
"id": "8654"
}
}
},
"meta": {
"settings": {
"showAvailabilityCalendar": true,
"showAvailabilityCount": true,
"checkout": {
"customerCanPickChildren": false,
"requiresLogin": false,
"requiresLoginReason": "",
"verifyGuestEmail": false
},
"checkIn": {
"isEnabled": false
},
"selfCheckIn": {
"isEnabled": false,
"disabledUntil": 15,
"geoCheckEnabled": true,
"geoCheckMaxDelta": 997,
"allowedOverrunTime": 60
}
},
"meta_settings": {
"showAvailabilityCalendar": true,
"showAvailabilityCount": true,
"checkout": {
"customerCanPickChildren": false,
"requiresLogin": false,
"requiresLoginReason": "",
"verifyGuestEmail": false
},
"checkIn": {
"isEnabled": false
},
"selfCheckIn": {
"isEnabled": false,
"disabledUntil": 15,
"geoCheckEnabled": true,
"geoCheckMaxDelta": 997,
"allowedOverrunTime": 60
}
},
"zoom": false
}
},
{
"type": "services",
"id": "2783",
"attributes": {
"name": "Coaching: Effective Communication & Collaboration",
"slug": "stjymkaryfeu3zpdrjkipxbracoe4x",
"description": "<p>Learn how to effectively communicate to enable and maximize collaboration. Our coach provides you with 3 simple guidelines to venture off into new dimensions of collaboration.</p>",
"hidden": false,
"is_rental_option": false,
"has_flexible_duration": false,
"auto_duration": false,
"allow_cross_schedule": false,
"requires_booking_description": false,
"requires_address": true,
"requires_mobile": true,
"allow_customer_notes": true,
"allow_more_bookings": true,
"charge_off_schedule": true,
"booking_interval": 15,
"calculation_interval": 180,
"min_duration": 180,
"max_duration": 180,
"uncharged_duration": 0,
"is_full_day": false,
"lead_time": 10080,
"padding_before": 15,
"padding_after": 15,
"advance_booking_period": 31,
"price": 199,
"starting_fee": 0,
"currency": "EUR",
"tax_rate": 19,
"default_weight": 1,
"created_at": "2021-09-21T09:53:34+00:00",
"updated_at": "2021-09-22T12:31:16+00:00",
"access_code": null
},
"meta": {
"resource_list": "Certified Team Coach",
"min_duration_total": 199
}
},
{
"type": "bookings",
"id": "3717554",
"attributes": {
"number": "BB66568081",
"status": "reserved",
"is_blocker": false,
"start_date": "2021-10-22T07:00:00+00:00",
"end_date": "2021-10-22T10:00:00+00:00",
"blocker_start_date": "2021-10-22T06:45:00+00:00",
"blocker_end_date": "2021-10-22T10:15:00+00:00",
"description": null,
"charged_duration": 180,
"weight": 1,
"currency": "EUR",
"total": 199,
"code": "mYDM4cbnIeooDRRN",
"subtotal": 199,
"charged_total": 199,
"charged_subtotal": 199,
"starting_fee": 0,
"customer_note": null,
"created_at": "2021-09-24T14:15:19+00:00",
"canceled_at": null,
"check_in_date": null,
"check_out_date": null,
"custom_entry_map": {}
},
"relationships": {
"booking_add_ons": {
"data": []
},
"resource": {
"data": {
"type": "resources",
"id": "22153"
}
},
"service": {
"data": {
"type": "services",
"id": "2783"
}
},
"sub_bookings": {
"data": []
},
"cancellation_policy": {
"data": null
}
},
"meta": []
},
{
"type": "legal-documents",
"id": "311",
"attributes": {
"title": "T&C Test",
"content": "<p>T&C Test</p>",
"document_type": "terms_and_conditions"
}
},
{
"type": "legal-documents",
"id": "312",
"attributes": {
"title": "Privacy Test",
"content": "<p>Privacy Test</p>",
"document_type": "privacy_policy"
}
},
{
"type": "organizations",
"id": "734",
"attributes": {
"slug": "stadtmitte-buero",
"name": "Stadtmitte Büro",
"live": true,
"description": null,
"plain_description": "",
"official_name": "Workspace GmbH",
"support_email": "florian.schmitt@anny.co",
"phone": null,
"currency": "EUR",
"timezone": "Europe/Berlin",
"is_organization": true,
"responsible_for_contents": "Florian Schmitt",
"ceo": null,
"vat_id": null,
"register_number": null,
"local_court": null,
"financial_office": null
},
"relationships": {
"legal_documents": {
"data": [
{
"type": "legal-documents",
"id": "311"
},
{
"type": "legal-documents",
"id": "312"
}
]
}
},
"meta": {
"settings": {
"organizeResourcesBy": "category",
"checkout": {
"additionalFields": [],
"additionalRequiredFields": []
},
"preferFormalSalutation": false
},
"meta_settings": {
"organizeResourcesBy": "category",
"checkout": {
"additionalFields": [],
"additionalRequiredFields": []
},
"preferFormalSalutation": false
}
}
},
{
"type": "orders",
"id": "2012918",
"attributes": {
"number": "BO89972352",
"currency": "EUR",
"total": 199,
"net_amount": 167.23,
"tax_amount": 31.77,
"discount_amount": 0,
"status": "draft",
"access_token": "wyW93yQdteN83w6d7UYlDSGRhDGpI0",
"expires_at": null,
"created_at": "2021-09-24T14:15:09+00:00",
"updated_at": "2021-09-24T14:15:28+00:00"
},
"relationships": {
"bookings": {
"data": [
{
"type": "bookings",
"id": "3717554"
}
]
},
"organization": {
"data": {
"type": "organizations",
"id": "734"
}
}
},
"meta": []
}
]
}Pfadparameter
id of the booking
Abfrageparameter
Verfügbare Optionen:
customer, voucher, bookings.booking_add_ons.add_on, bookings.sub_bookings.resource, bookings.sub_bookings.service, bookings.service, bookings.cancellation_policy, bookings.resource.cover_image, bookings.resource.parent, sub_orders.bookings, sub_orders.organization.legal_documents Antwort
OK
An order groups one or more bookings into a single transaction with payment and invoicing.
Show child attributes
Show child attributes
⌘I