curl --request GET \
--url https://api.spacebring.com/resources/bookings/v1 \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.spacebring.com/resources/bookings/v1"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.spacebring.com/resources/bookings/v1', 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://api.spacebring.com/resources/bookings/v1",
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: Basic <encoded-value>"
],
]);
$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://api.spacebring.com/resources/bookings/v1"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.spacebring.com/resources/bookings/v1")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spacebring.com/resources/bookings/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"bookings": [
{
"attendees": [
{
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"createDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"deleteDate": "2023-11-07T05:31:56Z",
"entire": true,
"membershipRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"metadata": {},
"payment": {
"method": {
"type": "credits",
"credits": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"dayPasses": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"external": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"invoice": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"invoiceItemRef": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"paymentGateway": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"gateway": "authorizenet",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"createDate": "2023-11-07T05:31:56Z",
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "<string>",
"expiration": {
"enabled": true,
"date": "<string>"
},
"limitByFirstPurchase": true
},
"subscriptionId": "<string>"
}
],
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"price": {
"type": "credits",
"credits": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"dayPasses": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"money": {
"grossAmount": 123,
"currencyCode": "<string>",
"taxIsInclusive": true,
"taxRate": 123
}
},
"refundable": true,
"refunds": {
"type": "credits",
"credits": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"dayPasses": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"money": [
{
"grossAmount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "<string>"
}
]
},
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"scheduleDate": "2023-11-07T05:31:56Z",
"status": "succeeded",
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
},
"transactionRef": "<string>",
"type": "<string>"
},
"payments": [
{
"method": {
"type": "credits",
"credits": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"dayPasses": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"external": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"invoice": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"invoiceItemRef": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"paymentGateway": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"gateway": "authorizenet",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"createDate": "2023-11-07T05:31:56Z",
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "<string>",
"expiration": {
"enabled": true,
"date": "<string>"
},
"limitByFirstPurchase": true
},
"subscriptionId": "<string>"
}
],
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"price": {
"type": "credits",
"credits": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"dayPasses": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"money": {
"grossAmount": 123,
"currencyCode": "<string>",
"taxIsInclusive": true,
"taxRate": 123
}
},
"refundable": true,
"refunds": {
"type": "credits",
"credits": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"dayPasses": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"money": [
{
"grossAmount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "<string>"
}
]
},
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"scheduleDate": "2023-11-07T05:31:56Z",
"status": "succeeded",
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
},
"transactionRef": "<string>",
"type": "<string>"
}
],
"seats": 0,
"source": {
"type": "api",
"api": {
"clientId": "<string>"
},
"app": {},
"googleCalendar": {
"calendarId": "<string>",
"eventId": "<string>",
"eventLink": "<string>"
},
"mcp": {
"clientId": "<string>"
},
"member": {}
},
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"userOwner": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"nextPageToken": "<string>",
"searchQueryNext": "<string>"
}{
"message": "<string>",
"type": "<string>"
}Retrieve bookings
Retrieve all bookings of resources.
OAuth
Required scopes:resources.readonly or resourcescurl --request GET \
--url https://api.spacebring.com/resources/bookings/v1 \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.spacebring.com/resources/bookings/v1"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.spacebring.com/resources/bookings/v1', 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://api.spacebring.com/resources/bookings/v1",
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: Basic <encoded-value>"
],
]);
$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://api.spacebring.com/resources/bookings/v1"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.spacebring.com/resources/bookings/v1")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spacebring.com/resources/bookings/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"bookings": [
{
"attendees": [
{
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"createDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"deleteDate": "2023-11-07T05:31:56Z",
"entire": true,
"membershipRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"metadata": {},
"payment": {
"method": {
"type": "credits",
"credits": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"dayPasses": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"external": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"invoice": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"invoiceItemRef": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"paymentGateway": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"gateway": "authorizenet",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"createDate": "2023-11-07T05:31:56Z",
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "<string>",
"expiration": {
"enabled": true,
"date": "<string>"
},
"limitByFirstPurchase": true
},
"subscriptionId": "<string>"
}
],
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"price": {
"type": "credits",
"credits": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"dayPasses": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"money": {
"grossAmount": 123,
"currencyCode": "<string>",
"taxIsInclusive": true,
"taxRate": 123
}
},
"refundable": true,
"refunds": {
"type": "credits",
"credits": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"dayPasses": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"money": [
{
"grossAmount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "<string>"
}
]
},
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"scheduleDate": "2023-11-07T05:31:56Z",
"status": "succeeded",
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
},
"transactionRef": "<string>",
"type": "<string>"
},
"payments": [
{
"method": {
"type": "credits",
"credits": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"dayPasses": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"external": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"invoice": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"invoiceItemRef": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"paymentGateway": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"gateway": "authorizenet",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"createDate": "2023-11-07T05:31:56Z",
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "<string>",
"expiration": {
"enabled": true,
"date": "<string>"
},
"limitByFirstPurchase": true
},
"subscriptionId": "<string>"
}
],
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"price": {
"type": "credits",
"credits": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"dayPasses": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"money": {
"grossAmount": 123,
"currencyCode": "<string>",
"taxIsInclusive": true,
"taxRate": 123
}
},
"refundable": true,
"refunds": {
"type": "credits",
"credits": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"dayPasses": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"money": [
{
"grossAmount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "<string>"
}
]
},
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"scheduleDate": "2023-11-07T05:31:56Z",
"status": "succeeded",
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
},
"transactionRef": "<string>",
"type": "<string>"
}
],
"seats": 0,
"source": {
"type": "api",
"api": {
"clientId": "<string>"
},
"app": {},
"googleCalendar": {
"calendarId": "<string>",
"eventId": "<string>",
"eventLink": "<string>"
},
"mcp": {
"clientId": "<string>"
},
"member": {}
},
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"userOwner": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"nextPageToken": "<string>",
"searchQueryNext": "<string>"
}{
"message": "<string>",
"type": "<string>"
}Authorizations
See our authentication documentation for how to authorize your requests
Headers
The id of the network. Required when using bearer token authentication
Query Parameters
Matches bookings with endDate strictly after this date (ISO 8601).
Matches bookings with endDate on or after this date (ISO 8601).
Matches bookings with endDate strictly before this date (ISO 8601).
Matches bookings with endDate on or before this date (ISO 8601).
Matches bookings with startDate strictly after this date (ISO 8601).
Matches bookings with startDate on or after this date (ISO 8601).
Matches bookings with startDate strictly before this date (ISO 8601).
Matches bookings with startDate on or before this date (ISO 8601).
UUID of the company whose own bookings to list: bookings the company or its members made, not ones they were added to as attendees. Cannot be combined with customerRef, userRef, or userRefOwner.
UUID of the customer whose bookings to list, both made and attended.
Deprecated. Use bracket-notation fields endDate[gt], endDate[gte], endDate[lt], endDate[lte] instead.
Deprecated. Use status "canceled" instead. Set to "true" to include deleted bookings.
Maximum number of bookings per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
1 <= x <= 100UUID of the location whose bookings to list. Required when both resourceRef and userRef are omitted.
Deprecated. Use customerRef instead. UUID of the customer whose bookings to list.
Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.
Sort order as <field>:<direction>, where field is startDate, endDate or createDate and direction is asc or desc. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise.
UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted.
Set to "true" to expand repeating bookings into single occurrences.
Deprecated. Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead.
Comma-separated list of booking statuses to filter by, e.g. confirmed,canceled. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed.
Comma-separated list of resource types to filter by, e.g. room,hotDesk. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types.
UUID of the user whose bookings to list, both made and attended. Can be given on its own, without locationRef or resourceRef, to list the user's bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRefOwner.
UUID of the user whose own bookings to list: bookings the user made, not ones they were added to as an attendee. Cannot be combined with customerRef, companyRefOwner, or userRef.
Deprecated. Use type instead.
Was this page helpful?