Add a business location ID to a webhook endpoint.

PUT /o/wh/1/webhook/{endpointId}/business-locations/{businessLocationId}

Enables a webhook for the specified business location. Required to receive item availability notifications (type 'item'). Not required for 'order' and 'payment' webhooks.

Path parameters

  • endpointId string Required
  • businessLocationId integer(int64) Required

    The unique identifier for the business location.

Responses

  • 200 application/json

    OK

    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

  • 404

    Not Found

PUT /o/wh/1/webhook/{endpointId}/business-locations/{businessLocationId}
curl \
 --request PUT 'https://api.trial.lsk.lightspeed.app/o/wh/1/webhook/endpoint/business-locations/45454565682155' \
 --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"
}