Core API Documentation
Account Businesses
GET /api/v2/account/businesses
Returns all the business objects for the Pike13 account specified by the current access token. This is very useful if you are building an app that self-discovers which Pike13 businesses a user is tied to. You can authenticate them against pike13.com and then request the businesses for their account, presumably to then have the user select a business and perform some action within your app.
This endpoint is only accessible without a business subdomain (that is, the host must be pike13.com) and requires an access token granted to pike13.com.
REQUEST
$ curl https://pike13.com/api/v2/account/businesses \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"businesses": [
{
"id": 1,
"name": "MyBiz",
"subdomain": "apisub",
"timezone": "Pacific Time (US & Canada)",
"timezone_name": "America/Los_Angeles",
"billing_features": {
"zapier": true,
"pos": true
},
"logos": {
"full": "https://s3.amazonaws.com/frontdesk/9f48ed1e-827a-49bc-83ee-4b0cb9eb07af/logos/test_photo.png",
"web": "https://s3.amazonaws.com/frontdesk/9f48ed1e-827a-49bc-83ee-4b0cb9eb07af/logos/test_photo_75.png",
"web_retina": "https://s3.amazonaws.com/frontdesk/9f48ed1e-827a-49bc-83ee-4b0cb9eb07af/logos/test_photo_75@2x.png",
"device": "https://s3.amazonaws.com/frontdesk/9f48ed1e-827a-49bc-83ee-4b0cb9eb07af/logos/test_photo_50.png",
"device_retina": "https://s3.amazonaws.com/frontdesk/9f48ed1e-827a-49bc-83ee-4b0cb9eb07af/logos/test_photo_50@2x.png",
"device_icon": "https://s3.amazonaws.com/frontdesk/9f48ed1e-827a-49bc-83ee-4b0cb9eb07af/logos/test_photo_74.png",
"device_icon_ipad": "https://s3.amazonaws.com/frontdesk/9f48ed1e-827a-49bc-83ee-4b0cb9eb07af/logos/test_photo_114.png"
},
"colors": {
"accent": "#00833D",
"background": "#FFFFFF",
"brand": "#007BB4",
"header": "#EAEAEA",
"client_mode_accent": "#00833D",
"client_mode_brand": "#007BB4",
"client_mode_header": "#EAEAEA",
"client_mode_background": "#FFFFFF",
"client_mode_navigation": "#EAEAEA"
}
}
]
}