Get Businesses

GET /o/op/data/businesses

Returns a list of all businesses and business locations associated with the access token.

Responses

  • 200 application/json

    Businesses

    Hide response attributes Show response attributes object
    • name string

      The business name.

    • id integer(int64)

      The unique identifier for the business.

    • businessLocations array[object]

      The business locations within this business.

      Hide businessLocations attributes Show businessLocations attributes object
      • id integer(int64)

        The unique identifier of the business location.

      • name string

        The business location name.

GET /o/op/data/businesses
curl \
 -X GET https://api.lsk.lightspeed.app/o/op/data/businesses \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "name": "My Awesome Business",
    "id": 454335871,
    "businessLocations": [
      {
        "id": 45454565682155,
        "name": "My Awesome Business - Location 1"
      }
    ]
  }
]