Skip to 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 full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Retrieve the specified Microsoft Bookings business with id business@contoso.onmicrosoft.com.

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

Retrieve the specified Microsoft Bookings business with name business name.

m365 booking business get --name 'business name'

Response

{
  "id": "Accounting@8b7jz1.onmicrosoft.com",
  "displayName": "Accounting",
  "businessType": "Financial services",
  "phone": "",
  "email": "runningdevadmin@8b7jz1.onmicrosoft.com",
  "webSiteUrl": "",
  "defaultCurrencyIso": "USD",
  "isPublished": true,
  "publicUrl": "https://outlook.office365.com/owa/calendar/Accounting@8b7jz1.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
  }
}
businessType      : Financial services
defaultCurrencyIso: USD
displayName       : Accounting
email             : runningdevadmin@8b7jz1.onmicrosoft.com
id                : Accounting@8b7jz1.onmicrosoft.com
phone             :
id,displayName,businessType,phone,email,defaultCurrencyIso
Accounting@8b7jz1.onmicrosoft.com,Accounting,Financial services,,runningdevadmin@8b7jz1.onmicrosoft.com,USD