Get business locations for a webhook

GET /o/wh/1/webhook/{endpointId}/business-locations

Get all business location IDs associated with a webhook endpoint.

Path parameters

  • endpointId string Required

Responses

  • 200 application/json

    Business location IDs

    Hide response attributes Show response attributes object
    • businessLocationId integer(int64) Required

      ID of the business location

    • createdAt string(date-time)

      Timestamp when this association was created

    • updatedAt string(date-time)

      Timestamp when this association was last updated

    • warnings array[object]

      A list of warnings that occurred during the request, but which did not prevent a successful response. For instance, if the Business Location does not have the required POS app version to support item availability.

      Hide warnings attributes Show warnings attributes object
      • information string
      • type string
  • 404

    Not Found

GET /o/wh/1/webhook/{endpointId}/business-locations
curl \
 --request GET 'https://api.lsk.lightspeed.app/o/wh/1/webhook/endpoint/business-locations' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "businessLocationId": 45454565682155,
    "createdAt": "2023-11-07T19:15:05.043+0000",
    "updatedAt": "2023-11-07T19:15:05.043+0000",
    "warnings": [
      {
        "information": "string",
        "type": "string"
      }
    ]
  }
]