1. Help for Partners
  2. All App Partners Event

Upon Order pre-processed

Since: v3.4

When a pre-processing request for an order has been updated by the POS.

EVENT order_preprocess

Parameters

Example

Event - rejected order

{
    "event": "order_preprocess",
    "data": {
      "id": "f77011a6-f4f9-4fe7-ba75-5319c3e59916",
      "status": "rejected",
      "locationId": "2xYdsw233",
      "rejectionCode": "O1",
      "rejectionReason": "Unknown item"
    }
}

Event - completed order

{
    "event": "order_preprocess",
    "data": {
      "id": "f77011a6-f4f9-4fe7-ba75-5319c3e59916",
      "status": "complete",
      "locationId": "2xYdsw233",
      "posAdjusted": true,
      "validUntil": null,
      "order": {
        "type":"pickup",
        "surcounts": [],
        "items":[{
          "name":"Toasted Sourdough Bread & Eggs",
          "description":"Just ye old classic",
          "unitPrice":"1100",
          "totalBeforeSurcounts":"1100",
          "totalAfterSurcounts":"1100",
          "posId":"toasted_eggs",
          "quantity":1,
          "type": "single", 
          "surcounts": [],
          "options": []
        }]
      }
    }
}