This webhook is sent whenever a new restaurant is connected to your integration. It's also sent whenever restaurant staff edit your integration's configuration for that restaurant in the Bbot App Store.

We recommend that, on receiving this webhook, you hit the /restaurants GET endpoint and process any changes.

## This is a sample of what the restaurant integration change webhook from Bbot will look like ##
import requests
url = "" # Arbitrary URL determined by you
payload = {
        'version': 2,
        'event': "connected", #current state of the integration. (Can also be "disconnected"). The "connected" state is also sent on edits.
        'context': {"restaurant_ids":['01ca27a1-9027-42be-bcba-c9d56ea6e604']},
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Basic <base64 credentials>', #you can provide these to Bbot and we'll send them with the webhook
response = requests.request("POST", url, headers=headers, data=payload)