Webhooks Events

Business Updated

This event is triggered when a Business is updated in Partoo Database.

The event payload contains the event type and the business contents.

Attention, the hook may be triggered on internal changes that may not reflect on the contents sent.

postWebhookbusinessUpdated

Payload

type'business_updated'

Example payload

{
  "payload": {
    "business": {
      "id": "5409c35a97bbc544d8e26737",
      "created": 1409925979.5,
      "modified": 1561335111.681374,
      "code": "CS-75019",
      "status": "open",
      "org_id": 42,
      "groups": [
        1,
        2,
        3
      ],
      "name": "Corner shop",
      "address_full": "12 bis rue du coquelicot",
      "city": "Paris",
      "zipcode": "75019",
      "region": "Ile-de-France",
      "country": "FR",
      "default_lang": "fr",
      "open_hours": {
        "monday": [
          "10:00-14:00"
        ],
        "tuesday": [
          "10:00-14:00"
        ],
        "wednesday": [
          "10:00-14:00"
        ],
        "thursday": [
          "10:00-14:00"
        ],
        "friday": [
          "10:00-14:00"
        ],
        "saturday": [
          "10:00-14:00"
        ],
        "sunday": [
          "10:00-14:00"
        ]
      },
      "specific_hours": {
        "open": [
          {
            "starts_at": "2020-01-20",
            "ends_at": "2020-01-20",
            "open_hours": [
              "10:00-14:00"
            ]
          }
        ],
        "close": [
          {
            "starts_at": "2020-01-20",
            "ends_at": "2020-01-22"
          }
        ]
      },
      "description_short": "lorem ipsum",
      "description_long": "lorem ipsum dolor sit amet",
      "website_url": "https://www.corner-shop.co/",
      "facebook_url": "https://www.facebook.com/the-corner-shop",
      "twitter_url": "https://www.twitter.com/the-corner-shop",
      "contacts": [
        {
          "name": "Hubert Bonisseur de la Bath",
          "email": "hubert@oss117.fr",
          "phone_numbers": [
            "+33302060628"
          ],
          "fax": "+33302060629"
        }
      ],
      "lat": -3.585993,
      "long": 47.870341,
      "subscriptions": {
        "presence_management": {
          "active": true
        },
        "review_management": {
          "active": true
        },
        "review_booster": {
          "active": false
        },
        "messages": {
          "active": false
        }
      },
      "features": [
        "business_edition",
        "diffusion",
        "review_management",
        "review_invite",
        "messages"
      ],
      "completion_rate": 77
    }
  }
}

Response

Return a 200 status to indicate that the event was properly received

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.