Skip to main content

booking business get

Retrieve the specified Microsoft Bookings business.

Usage

m365 booking business get [options]

Options

-i, --id [id]

ID of the business. Specify either id or name but not both.

-n, --name [name]

Name of the business. Specify either id or name but not both.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Retrieve the specified Microsoft Bookings business with the specified id.

m365 booking business get --id 'business@contoso.onmicrosoft.com'

Retrieve the specified Microsoft Bookings business with the specified name.

m365 booking business get --name 'business name'

Response

{
"id": "Accounting@contoso.onmicrosoft.com",
"displayName": "Accounting",
"businessType": "Financial services",
"phone": "",
"email": "runningdevadmin@contoso.onmicrosoft.com",
"webSiteUrl": "",
"defaultCurrencyIso": "USD",
"isPublished": true,
"publicUrl": "https://outlook.office365.com/owa/calendar/Accounting@contoso.onmicrosoft.com/bookings/",
"languageTag": "",
"address": {
"street": "",
"city": "",
"state": "",
"countryOrRegion": "",
"postalCode": ""
},
"businessHours": [
{
"day": "monday",
"timeSlots": [
{
"startTime": "08:00:00.0000000",
"endTime": "17:00:00.0000000"
}
]
},
{
"day": "tuesday",
"timeSlots": [
{
"startTime": "08:00:00.0000000",
"endTime": "17:00:00.0000000"
}
]
},
{
"day": "wednesday",
"timeSlots": [
{
"startTime": "08:00:00.0000000",
"endTime": "17:00:00.0000000"
}
]
},
{
"day": "thursday",
"timeSlots": [
{
"startTime": "08:00:00.0000000",
"endTime": "17:00:00.0000000"
}
]
},
{
"day": "friday",
"timeSlots": [
{
"startTime": "08:00:00.0000000",
"endTime": "17:00:00.0000000"
}
]
},
{
"day": "saturday",
"timeSlots": []
},
{
"day": "sunday",
"timeSlots": []
}
],
"schedulingPolicy": {
"timeSlotInterval": "PT30M",
"minimumLeadTime": "P1D",
"maximumAdvance": "P365D",
"sendConfirmationsToOwner": true,
"allowStaffSelection": true
}
}
CTRL + M