Businesses represent a business or location (eg. a clinic). Each Cliniko account can have unlimited businesses.
These are typically used for each physical location if there is more than one. Most Cliniko accounts have just one business.
Resources
GET /businesses
get all businesses
Example Request
curl https://api.au1.cliniko.com/v1/businesses \
-u API_KEY: \
-H 'Accept: application/json' \
-H 'User-Agent: APP_VENDOR_NAME (APP_VENDOR_EMAIL)'
Example Response
{
"businesses": [
{
"address_1": "20 Smith Street",
"address_2": null,
"business_name": "Healthy Times",
"business_registration_name": "ABN",
"business_registration_value": "1111111111",
"city": "Smithytown",
"contact_information": "Phone: 99999 99999",
"country": "Australia",
"country_code": "AU",
"created_at": "2013-03-26T14:00:00Z",
"display_name": null,
"email_reply_to": "healthytimes@example.com",
"id": "514810976554457178",
"post_code" : "3000",
"show_in_online_bookings": true,
"state": "Victoria",
"updated_at": "2013-03-26T14:00:00Z",
"website_address": "http://www.healthytimes.com",
"practitioners": {
"links": {
"self": "https://api.au1.cliniko.com/v1/businesses/514810976554457178/practitioners"
}
},
"appointments": {
"links": {
"self": "https://api.au1.cliniko.com/v1/businesses/514810976554457178/appointments?page=1"
}
},
"links": {"self": "https://api.au1.cliniko.com/v1/businesses/514810976554457178"}
}
],
"total_entires": 1,
"links": {"self": "https://api.au1.cliniko.com/v1/businesses?page=1"}
}
Resources
GET /businesses/:id
get a specified business
Example Request
curl https://api.au1.cliniko.com/v1/businesses/514810976554457178 \
-u API_KEY: \
-H 'Accept: application/json' \
-H 'User-Agent: APP_VENDOR_NAME (APP_VENDOR_EMAIL)'
Example Response
{
"address_1": "20 Smith Street",
"address_2": null,
"business_name": "Healthy Times",
"business_registration_name": "ABN",
"business_registration_value": "1111111111",
"city": "Smithytown",
"contact_information": "Phone: 99999 99999",
"country": "Australia",
"country_code": "AU",
"created_at": "2013-03-26T14:00:00Z",
"display_name": null,
"email_reply_to": "healthytimes@example.com",
"id": "514810976554457178",
"post_code" : "3000",
"show_in_online_bookings": true,
"state": "Victoria",
"updated_at": "2013-03-26T14:00:00Z",
"website_address": "http://www.healthytimes.com",
"practitioners": {
"links": {
"self": "https://api.au1.cliniko.com/v1/businesses/514810976554457178/practitioners"
}
},
"appointments": {
"links": {
"self": "https://api.au1.cliniko.com/v1/businesses/514810976554457178/appointments?page=1"
}
},
"links": {"self": "https://api.au1.cliniko.com/v1/businesses/514810976554457178"}
}
You can filter businesses by:
created_at
DateTimeid
Stringupdated_at
DateTime
See Filtering Results for details on how to apply filters.