Core API Documentation
Location
A physical location of the business and associated data.
Front
GET /api/v2/front/locations
Lists all locations for the business.
REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/locations?client_id=XXXXXXXXXXXXXX
RESPONSE
{
"locations": [
{
"id": 1,
"name": "West Location",
"address": "400 Broad St, Seattle, WA",
"latitude": 47.6206,
"longitude": -122.349,
"phone": "555-555-5555",
"description": "Needle in a hay stack.",
"show_in_client_mode": true,
"slug": "west-location",
"timezone_friendly": "Pacific Time (US & Canada)",
"timezone": "America/Los_Angeles",
"position": 1,
"hidden_at": "2014-09-11T09:00:00Z",
"formatted_address": "400 Broad St, Seattle, WA 98109",
"street_address": "400 Broad St",
"street_address2": null,
"city": "Seattle",
"state_code": "WA",
"postal_code": "98109",
"country_code": "US"
},
{
"id": 2,
"name": "East Location",
"address": "1600 Pennsylvania Ave, Washington, DC",
"latitude": 38.8977,
"longitude": -77.0365,
"phone": "",
"description": "",
"show_in_client_mode": true,
"slug": "east-location",
"timezone_friendly": "Eastern Time (US & Canada)",
"timezone": "America/New_York",
"position": 2,
"hidden_at": null,
"formatted_address": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"street_address": "1600 Pennsylvania Ave NW",
"street_address2": null,
"city": "Washington",
"state_code": "DC",
"postal_code": "20500",
"country_code": "US"
}
]
}
GET /api/v2/front/locations/:id
Returns the details of a location.
REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/locations/1?client_id=XXXXXXXXXXXXXX
RESPONSE
{
"locations": [
{
"id": 1,
"name": "West Location",
"address": "400 Broad St, Seattle, WA 98109",
"latitude": 47.6206,
"longitude": -122.349,
"phone": "555-555-5555",
"description": "Needle in a hay stack.",
"show_in_client_mode": true,
"slug": "west-location",
"timezone_friendly": "Pacific Time (US & Canada)",
"timezone": "America/Los_Angeles",
"position": 1,
"hidden_at": "2014-09-11T09:00:00Z",
"formatted_address": "400 Broad St, Seattle, WA 98109",
"street_address": "400 Broad St",
"street_address2": null,
"city": "Seattle",
"state_code": "WA",
"postal_code": "98109",
"country_code": "US"
}
]
}
Desk
GET /api/v2/desk/locations
Lists all locations for the business.
When the business has rooms enabled, each location may include a read-only
REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/locations \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"locations": [
{
"id": 1,
"name": "West Location",
"address": "400 Broad St, Seattle, WA 98109",
"latitude": 47.6206,
"longitude": -122.349,
"phone": "555-555-5555",
"description": "Needle in a hay stack.",
"show_in_client_mode": true,
"slug": "west-location",
"timezone_friendly": "Pacific Time (US & Canada)",
"timezone": "America/Los_Angeles",
"position": 1,
"hidden_at": "2014-09-11T09:00:00Z",
"formatted_address": "400 Broad St, Seattle, WA 98109",
"street_address": "400 Broad St",
"street_address2": null,
"city": "Seattle",
"state_code": "WA",
"postal_code": "98109",
"country_code": "US",
"resources": [
{
"id": 1,
"name": "Studio A",
"description": "Main studio room.",
"position": 1,
"category_id": 2,
"location_id": 1,
"service_ids": [
6
],
"availability": {
"allow_to_book": true,
"capacity": 12,
"room_booking_length": 60,
"start_interval": 15,
"before_time": 0,
"after_time": 0,
"show_remaining_spaces": false
}
}
]
},
{
"id": 2,
"name": "East Location",
"address": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"latitude": 38.8977,
"longitude": -77.0365,
"phone": "",
"description": "",
"show_in_client_mode": true,
"slug": "east-location",
"timezone_friendly": "Eastern Time (US & Canada)",
"timezone": "America/New_York",
"position": 2,
"hidden_at": null,
"formatted_address": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"street_address": "1600 Pennsylvania Ave NW",
"street_address2": null,
"city": "Washington",
"state_code": "DC",
"postal_code": "20500",
"country_code": "US"
},
{
"id": 3,
"name": "Hidden Location",
"address": "",
"latitude": null,
"longitude": null,
"phone": "",
"description": "",
"show_in_client_mode": false,
"slug": "hidden-location",
"timezone_friendly": "Pacific Time (US & Canada)",
"timezone": "America/Los_Angeles",
"position": 3,
"hidden_at": null,
"formatted_address": null,
"street_address": null,
"street_address2": null,
"city": null,
"state_code": null,
"postal_code": null,
"country_code": null
}
]
}
GET /api/v2/desk/locations/:id
Returns the details of a location.
REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/locations/1 \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"locations": [
{
"id": 1,
"name": "West Location",
"address": "400 Broad St, Seattle, WA 98109",
"latitude": 47.6206,
"longitude": -122.349,
"phone": "555-555-5555",
"description": "Needle in a hay stack.",
"show_in_client_mode": true,
"slug": "west-location",
"timezone_friendly": "Pacific Time (US & Canada)",
"timezone": "America/Los_Angeles",
"position": 1,
"hidden_at": "2014-09-11T09:00:00Z",
"formatted_address": "400 Broad St, Seattle, WA 98109",
"street_address": "400 Broad St",
"street_address2": null,
"city": "Seattle",
"state_code": "WA",
"postal_code": "98109",
"country_code": "US",
"resources": [
{
"id": 1,
"name": "Studio A",
"description": "Main studio room.",
"position": 1,
"category_id": 2,
"location_id": 1,
"service_ids": [
6
],
"availability": {
"allow_to_book": true,
"capacity": 12,
"room_booking_length": 60,
"start_interval": 15,
"before_time": 0,
"after_time": 0,
"show_remaining_spaces": false
}
}
]
}
]
}