Since: v3.4
When a pre-processing request for an order has been submitted by an App.
EVENT order_preprocess
Parameters
Field | Type | Description | ||||
---|---|---|---|---|---|---|
id | String |
Unique number identifying the preprocess request |
||||
appId | String |
The unique identifier for the App that has issued this request. |
||||
status | String |
The current status of the request.
|
||||
order | Object |
This is a complex object containing the full order payload that has been submitted by the App. |
Example
Event
{
"event": "order_preprocess",
"data": {
"id": "f77011a6-f4f9-4fe7-ba75-5319c3e59916",
"status": "pending",
"appId": "1234",
"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": []
}]
}
}
}
Comments
0 comments
Please sign in to leave a comment.