Get an organization
curl --request GET \
--url https://b.anny.co/api/v1/organizations/{organization_slug}import requests
url = "https://b.anny.co/api/v1/organizations/{organization_slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/organizations/{organization_slug}', 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/organizations/{organization_slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/organizations/{organization_slug}"
req, _ := http.NewRequest("GET", url, nil)
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/organizations/{organization_slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/organizations/{organization_slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"type": "organizations",
"id": "281",
"attributes": {
"slug": "spaces-of-tomorrow",
"name": "Spaces of tomorrow",
"live": true,
"description": null,
"plain_description": "",
"official_name": "Spaces of Tomorrow GmbH",
"support_email": "max.mustermann@anny.co",
"phone": null,
"currency": "EUR",
"timezone": "Europe/Berlin",
"is_organization": true,
"responsible_for_contents": "Lucian Holtwiesche",
"ceo": null,
"vat_id": null,
"country_code": "DE",
"register_number": null,
"local_court": null,
"financial_office": null,
"features": [],
"viewing_requires_community": false,
"booking_requires_community": false,
"selected_category": "meeting-rooms",
"business_type": "company",
"business_size": "100-249",
"accepted_documents": [
"tos-2022-11-15",
"payment-terms-2022-11-15"
]
},
"relationships": {
"location": {
"data": {
"type": "addresses",
"id": "28538"
}
},
"cover_image": {
"data": {
"type": "images",
"id": "1657"
}
},
"logo_image": {
"data": {
"type": "images",
"id": "1647"
}
},
"resource_groups": {
"data": []
},
"offered_plans": {
"data": [
{
"type": "plans",
"id": "online-membership"
},
{
"type": "plans",
"id": "basic-membership"
},
{
"type": "plans",
"id": "premium-membership"
},
{
"type": "plans",
"id": "private-office"
},
{
"type": "plans",
"id": "fitness-membership"
}
]
}
},
"links": {
"self": "https://b.staging.anny.co/api/v1/organizations/281"
},
"meta": {
"platform_id": null,
"settings": {
"organizeResourcesBy": "category",
"labelFormat": "90x29",
"barcodeFormat": "C39",
"checkout": {
"additionalFields": [
"given_name",
"family_name"
],
"additionalRequiredFields": [
"given_name",
"family_name"
]
},
"preferFormalSalutation": false,
"mobileNotifications": {
"isEnabled": false
}
},
"meta_settings": {
"organizeResourcesBy": "category",
"labelFormat": "90x29",
"barcodeFormat": "C39",
"checkout": {
"additionalFields": [
"given_name",
"family_name"
],
"additionalRequiredFields": [
"given_name",
"family_name"
]
},
"preferFormalSalutation": false,
"mobileNotifications": {
"isEnabled": false
}
},
"active_integration_keys": [],
"hide_unavailable_days": false
}
},
"included": [
{
"type": "addresses",
"id": "28538",
"attributes": {
"name": null,
"street_address": "Cäcilienstr. 30",
"zip_code": "50667",
"city": "Köln",
"country_code": "DE",
"latitude": 50.93574,
"longitude": 6.951823
},
"meta": {
"address_line": "Cäcilienstr. 30, 50667 Köln, DE"
}
},
{
"type": "images",
"id": "1657",
"attributes": {
"url": "https://cdn.staging.booking-buddy.de/public/images/images/original/aPe4BclXecer6zbrnMtBTGWId.jpg",
"copyright": null,
"width": "1920",
"height": "1440",
"order_index": "0",
"preview_image_base64": null,
"small_path": "https://cdn.staging.booking-buddy.de/public/images/images/original/aPe4BclXecer6zbrnMtBTGWId.jpg",
"medium_path": "https://cdn.staging.booking-buddy.de/public/images/images/original/aPe4BclXecer6zbrnMtBTGWId.jpg",
"large_path": "https://cdn.staging.booking-buddy.de/public/images/images/original/aPe4BclXecer6zbrnMtBTGWId.jpg",
"created_at": "2023-03-24T15:28:55+00:00"
}
},
{
"type": "images",
"id": "1647",
"attributes": {
"url": "https://cdn.staging.booking-buddy.de/public/images/gallery/original/co-working-logo-placeholder.png",
"copyright": "Unsplash License",
"width": 1080,
"height": 720,
"order_index": "0",
"preview_image_base64": null,
"small_path": "https://cdn.staging.booking-buddy.de/public/images/gallery/original/co-working-logo-placeholder.png",
"medium_path": "https://cdn.staging.booking-buddy.de/public/images/gallery/original/co-working-logo-placeholder.png",
"large_path": "https://cdn.staging.booking-buddy.de/public/images/gallery/original/co-working-logo-placeholder.png",
"created_at": "2023-03-24T14:55:03+00:00"
}
},
{
"type": "plans",
"id": "online-membership",
"attributes": {
"name": "Online Membership",
"description": "<p>For remote workers</p>",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": null,
"badge": null,
"original_price": null,
"effective_price": 25,
"price": 25,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": false,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 0,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "month",
"sort_order": 0,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": true,
"minimum_term": 1,
"notice_period": 0
}
},
{
"type": "plans",
"id": "basic-membership",
"attributes": {
"name": "Basic Membership",
"description": "",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": null,
"badge": "BEST FOR STARTUPS",
"original_price": 200,
"effective_price": 150,
"price": 150,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": true,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 7,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "month",
"sort_order": 1,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": false,
"minimum_term": 1,
"notice_period": 0
}
},
{
"type": "plans",
"id": "premium-membership",
"attributes": {
"name": "Premium Membership",
"description": "",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": null,
"badge": null,
"original_price": null,
"effective_price": 300,
"price": 300,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": true,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 0,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "month",
"sort_order": 2,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": true,
"minimum_term": 3,
"notice_period": 0
}
},
{
"type": "plans",
"id": "private-office",
"attributes": {
"name": "Private Office",
"description": "",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": null,
"badge": null,
"original_price": null,
"effective_price": 10000,
"price": 10000,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": false,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 0,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "year",
"sort_order": 3,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": true,
"minimum_term": 1,
"notice_period": 0
}
},
{
"type": "plans",
"id": "fitness-membership",
"attributes": {
"name": "Fitness Membership",
"description": "",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": "#d33e8a",
"badge": null,
"original_price": null,
"effective_price": 50,
"price": 50,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": false,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 0,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "month",
"sort_order": 1,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": false,
"minimum_term": 1,
"notice_period": 0
}
}
]
}Organization Discovery
Get an organization
GET
/
api
/
v1
/
organizations
/
{organization_slug}
Get an organization
curl --request GET \
--url https://b.anny.co/api/v1/organizations/{organization_slug}import requests
url = "https://b.anny.co/api/v1/organizations/{organization_slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/organizations/{organization_slug}', 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/organizations/{organization_slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/organizations/{organization_slug}"
req, _ := http.NewRequest("GET", url, nil)
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/organizations/{organization_slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/organizations/{organization_slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"type": "organizations",
"id": "281",
"attributes": {
"slug": "spaces-of-tomorrow",
"name": "Spaces of tomorrow",
"live": true,
"description": null,
"plain_description": "",
"official_name": "Spaces of Tomorrow GmbH",
"support_email": "max.mustermann@anny.co",
"phone": null,
"currency": "EUR",
"timezone": "Europe/Berlin",
"is_organization": true,
"responsible_for_contents": "Lucian Holtwiesche",
"ceo": null,
"vat_id": null,
"country_code": "DE",
"register_number": null,
"local_court": null,
"financial_office": null,
"features": [],
"viewing_requires_community": false,
"booking_requires_community": false,
"selected_category": "meeting-rooms",
"business_type": "company",
"business_size": "100-249",
"accepted_documents": [
"tos-2022-11-15",
"payment-terms-2022-11-15"
]
},
"relationships": {
"location": {
"data": {
"type": "addresses",
"id": "28538"
}
},
"cover_image": {
"data": {
"type": "images",
"id": "1657"
}
},
"logo_image": {
"data": {
"type": "images",
"id": "1647"
}
},
"resource_groups": {
"data": []
},
"offered_plans": {
"data": [
{
"type": "plans",
"id": "online-membership"
},
{
"type": "plans",
"id": "basic-membership"
},
{
"type": "plans",
"id": "premium-membership"
},
{
"type": "plans",
"id": "private-office"
},
{
"type": "plans",
"id": "fitness-membership"
}
]
}
},
"links": {
"self": "https://b.staging.anny.co/api/v1/organizations/281"
},
"meta": {
"platform_id": null,
"settings": {
"organizeResourcesBy": "category",
"labelFormat": "90x29",
"barcodeFormat": "C39",
"checkout": {
"additionalFields": [
"given_name",
"family_name"
],
"additionalRequiredFields": [
"given_name",
"family_name"
]
},
"preferFormalSalutation": false,
"mobileNotifications": {
"isEnabled": false
}
},
"meta_settings": {
"organizeResourcesBy": "category",
"labelFormat": "90x29",
"barcodeFormat": "C39",
"checkout": {
"additionalFields": [
"given_name",
"family_name"
],
"additionalRequiredFields": [
"given_name",
"family_name"
]
},
"preferFormalSalutation": false,
"mobileNotifications": {
"isEnabled": false
}
},
"active_integration_keys": [],
"hide_unavailable_days": false
}
},
"included": [
{
"type": "addresses",
"id": "28538",
"attributes": {
"name": null,
"street_address": "Cäcilienstr. 30",
"zip_code": "50667",
"city": "Köln",
"country_code": "DE",
"latitude": 50.93574,
"longitude": 6.951823
},
"meta": {
"address_line": "Cäcilienstr. 30, 50667 Köln, DE"
}
},
{
"type": "images",
"id": "1657",
"attributes": {
"url": "https://cdn.staging.booking-buddy.de/public/images/images/original/aPe4BclXecer6zbrnMtBTGWId.jpg",
"copyright": null,
"width": "1920",
"height": "1440",
"order_index": "0",
"preview_image_base64": null,
"small_path": "https://cdn.staging.booking-buddy.de/public/images/images/original/aPe4BclXecer6zbrnMtBTGWId.jpg",
"medium_path": "https://cdn.staging.booking-buddy.de/public/images/images/original/aPe4BclXecer6zbrnMtBTGWId.jpg",
"large_path": "https://cdn.staging.booking-buddy.de/public/images/images/original/aPe4BclXecer6zbrnMtBTGWId.jpg",
"created_at": "2023-03-24T15:28:55+00:00"
}
},
{
"type": "images",
"id": "1647",
"attributes": {
"url": "https://cdn.staging.booking-buddy.de/public/images/gallery/original/co-working-logo-placeholder.png",
"copyright": "Unsplash License",
"width": 1080,
"height": 720,
"order_index": "0",
"preview_image_base64": null,
"small_path": "https://cdn.staging.booking-buddy.de/public/images/gallery/original/co-working-logo-placeholder.png",
"medium_path": "https://cdn.staging.booking-buddy.de/public/images/gallery/original/co-working-logo-placeholder.png",
"large_path": "https://cdn.staging.booking-buddy.de/public/images/gallery/original/co-working-logo-placeholder.png",
"created_at": "2023-03-24T14:55:03+00:00"
}
},
{
"type": "plans",
"id": "online-membership",
"attributes": {
"name": "Online Membership",
"description": "<p>For remote workers</p>",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": null,
"badge": null,
"original_price": null,
"effective_price": 25,
"price": 25,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": false,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 0,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "month",
"sort_order": 0,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": true,
"minimum_term": 1,
"notice_period": 0
}
},
{
"type": "plans",
"id": "basic-membership",
"attributes": {
"name": "Basic Membership",
"description": "",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": null,
"badge": "BEST FOR STARTUPS",
"original_price": 200,
"effective_price": 150,
"price": 150,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": true,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 7,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "month",
"sort_order": 1,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": false,
"minimum_term": 1,
"notice_period": 0
}
},
{
"type": "plans",
"id": "premium-membership",
"attributes": {
"name": "Premium Membership",
"description": "",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": null,
"badge": null,
"original_price": null,
"effective_price": 300,
"price": 300,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": true,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 0,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "month",
"sort_order": 2,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": true,
"minimum_term": 3,
"notice_period": 0
}
},
{
"type": "plans",
"id": "private-office",
"attributes": {
"name": "Private Office",
"description": "",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": null,
"badge": null,
"original_price": null,
"effective_price": 10000,
"price": 10000,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": false,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 0,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "year",
"sort_order": 3,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": true,
"minimum_term": 1,
"notice_period": 0
}
},
{
"type": "plans",
"id": "fitness-membership",
"attributes": {
"name": "Fitness Membership",
"description": "",
"illustration_path": null,
"feature_group": null,
"public": true,
"color": "#d33e8a",
"badge": null,
"original_price": null,
"effective_price": 50,
"price": 50,
"tax_rate": 19,
"display_price": null,
"price_disclaimer": "",
"is_net_price": false,
"signup_fee": 0,
"currency": "EUR",
"trial_period": 0,
"trial_interval": "day",
"invoice_period": 1,
"invoice_interval": "month",
"sort_order": 1,
"allow_switching": true,
"auto_renewal": true,
"is_billable_offline": false,
"payment_fee_absolute": 0,
"payment_fee_relative": 0,
"request_pricing": false,
"request_pricing_url": null,
"requires_approval": false,
"minimum_term": 1,
"notice_period": 0
}
}
]
}Pfadparameter
Abfrageparameter
Allows to include allowed resources in the response
Verfügbare Optionen:
cover_image, logo_image, legal_documents, industry, resource_groups, location, addresses, offered_plans Beispiel:
"logo_image,cover_image,location,resource_groups,offered_plans"
Verfügbare Optionen:
name, official_name Antwort
OK
A tenant organization that owns resources, services, and manages bookings.
Show child attributes
Show child attributes
⌘I