Skip to main content

Accounts

Overview

This resource represents the available Accounts.

When using Client Credentials Flow, you can get the list of all Accounts installed for your application. When using Authorization Flow, you will only get a single account that represents a Resource Owner for a given token.

Combining Client Credentials Flow and updated_since flow allows you also to get the list of accounts that have been canceled, suspended or uninstalled your application.

Parameters

GroupSubgroupNameTypeRead/WriteDescription
idIntegerReadAccount's id
address1StringReadCompany's address
address2StringReadExtension of company's address
business_nameStringReadAccount's business name
cityStringReadCity in which company is located
country_codeStringReadCode of a country in which company is based in
default_localeStringReadAccount's default locale. List of all available locales is described in enums section
emailStringReadAccount's email
selected_localesArrayReadArray of all locales selected for this Account. List of all available locales is described in enums section
stateStringReadState in which company is located
statusStringReadAccount's status, list of statuses described in enums section
websiteStringReadCompany's website
zipStringReadZip code
demoBooleanReadAccount's demo status. If the value is true, you probably don't want to treat as a real production Account
testBooleanReadAccount's test status. If the value is true, you probably don't want to treat as a real production Account
inbox_emailBooleanReadAccount's email address within Inbox context (requires inbox_read scope)
created_atTimeReadAccount's create time
updated_atTimeReadAccount's update time
phonesObjectReadSet of company's phone numbers
phoneStringReadCompany's phone number
mobileStringReadCompany's mobile phone number
faxStringReadCompany's fax number
preferencesObjectReadSet of account's preferences
bookingsObjectReadSet of booking's preferences
default_arrival_timeIntegerReadDefault checkin hour
default_arrival_end_timeIntegerReadDefault arrival end time
default_departure_timeIntegerReadDefault checkout hour
default_communication_localeStringReadDefault language locale for communication with customer. List of all available locales is described in enums section
privacy_policyObjectReadAccount's privacy policy, list of locales described in enums section

List accounts

List all authorized accounts.

Limitations

Only the Client Credentials Flow currently allow you to retrieve multiple accounts at ones. Using an other authorization flow, this endpoint will only return a single authorized account.

GET /accounts
response.json
{
"accounts": [
{
"id": 7,
"address1": "19 Les Robles",
"address2": "",
"business_name": "Business Name",
"city": "Nevache",
"country_code": "FR",
"default_locale": "en",
"email": "email@example.com",
"selected_locales": [
"en",
"fr"
],
"state": "Hautes-Alpes",
"status": "trial",
"website": "http://www.superawesomevillas.com",
"zip": "05100",
"created_at": "2025-03-17T22:18:28.618Z",
"updated_at": "2025-03-24T22:18:28.618Z",
"phones": {
"phone": "",
"mobile": "1234567890",
"fax": ""
},
"preferences": {
"bookings": {
"default_arrival_time": 16,
"default_departure_time": 10,
"default_communication_locale": "en"
}
}
}
],
"meta": {}
}

Get a single account

Returns a single authorized account identified by ID.

GET /accounts/:account_id
response.json
{
"accounts": [
{
"id": 7,
"address1": "19 Les Robles",
"address2": "",
"business_name": "Business Name",
"city": "Nevache",
"country_code": "FR",
"default_locale": "en",
"email": "email@example.com",
"selected_locales": [
"en",
"fr"
],
"state": "Hautes-Alpes",
"status": "trial",
"website": "http://www.superawesomevillas.com",
"zip": "05100",
"created_at": "2025-03-17T22:18:28.621Z",
"updated_at": "2025-03-24T22:18:28.621Z",
"phones": {
"phone": "",
"mobile": "1234567890",
"fax": ""
},
"preferences": {
"bookings": {
"default_arrival_time": 16,
"default_departure_time": 10,
"default_communication_locale": "en"
}
}
}
],
"meta": {}
}