GET https://webhook.example.com

Substitutions by PLU

Deliverect will send a singular pluwithin the parameters of a provided webhook URL. In response, we'd expect an array of items suitable to be substituted.

Definitions

Attribute Meaning Type
plu Unique identifier of the item substitute available string
quantity Number of the substituted items available integer
name Name of the item substitute available string
price Price of the item substitute available integer

Path parameters

  • plu string Required

    Unique identifier of the item, as communicated within the menu payload

    Default value is LEM1.

  • channelOrderId string Required

    Default value is Unique reference provided by the ordering channel.

Responses

  • 200 application/json

    200

    Hide response attribute Show response attribute object
    • substituteItems array[object]
      Hide substituteItems attributes Show substituteItems attributes object
      • plu string
      • quantity integer

        Default value is 0.

      • name string
      • price integer

        Default value is 0.

  • 400 application/json

    400

GET /channel/orders/{channelOrderId}/substitute/{plu}
Response examples (200)
{
  "substituteItems": [
    {
      "plu": "COLA1",
      "quantity": 1,
      "name": "Cola",
      "price": 200
    }
  ]
}
Response examples (400)
{}