Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Similarly, if subscribed to the MENU_PRICES_AVAILABILITY_UPDATE webhook, the partner(s) will be notified of this change with the following payload.

    Code Block
    {
      "brand": "PLK",
      "channel": "uber",
      "chunk": 0,
      "data": {
        "deleted": [],
        "created": [],
        "updated": [
          {
            "country": "ES",
            "serviceMode": "delivery",
            "price": 500,
            "draft": "approved",
            "plu": "942214",
            "channel": "uber",
            "availability": true,
            "overrides": [
              {
                "price": 1500,
                "id": "lateNight"
              }
            ],
            "priority": 1,
            "storeId": "1111",
            "version": 20231215172229464,
            "sanityId": "item_50929"
          }
        ]
      },
      "eventTime": "2023-12-15T17:23:07.597Z",
      "eventType": "MENU_PRICES_AVAILABILITY_UPDATE",
      "region": "ES",
      "serviceMode": "delivery",
      "storeId": "1111",
      "version": 20231215172229464
    }
  2. Partners can also use the Get Store Menu Diff API to sync with the latest changes GET /api/v1/stores/{storeId}/menu/{serviceMode}/{channel}/plus/diff/{version} - Get Store Menu Diff
    Make a call to GET /api/v1/stores/1111/menu/delivery/uber/plus/diff/20231215164756576, the version number being the previously received version in the webhook.
    It will return the following payload with the latest changes:

    Code Block
    {
      "data": {
        "20231215172229464": {
          "created": [],
          "deleted": [],
          "updated": [
            {
              "country": "ES",
              "serviceMode": "delivery",
              "price": 500,
              "draft": "approved",
              "plu": "942214",
              "channel": "uber",
              "availability": true,
              "overrides": [
                {
                  "price": 1500,
                  "id": "lateNight"
                }
              ],
              "priority": 1,
              "storeId": "1111",
              "version": 20231215172229464,
              "sanityId": "item_50929"
            }
          ]
        }
      }
    }

All DOP Flags: /wiki/spaces/FTR/pages/4331503681