Currently the webhook system for Orders handles two types of events. The Order and the Rider types events:
Order type events:
order-accepted
order-in-kitchen
order-ready-to-pick-up
order-picked-up
order-served
order-canceled
Rider type events:
rider-created
rider-picking
rider-delivering
rider-completed
rider-error
rider-proof-delivery
rider-refund
Sent to know that an order has been created.
Channel | Pos | Riders | Loyalty |
---|
✖️ | ✔️ | ✖️ | ✖️ |
{
"eventType": "order-accepted",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that an order has been received by the POS and will be prepared.
Channel | Pos | Riders | Loyalty |
---|
✔️ | ✖️ | ✔️ | ✔️ |
{
"eventType": "order-in-kitchen",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that an order which the fulfillment.type
is delivery-by-location
is ready to be picked up.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✖️ | ✔️ | ✖️ |
{
"eventType": "order-ready-to-pick-up",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that an order which the fulfillment.type
is takeaway
has been picked up by the customer.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✖️ | ✖️ | ✖️ |
{
"eventType": "order-picked-up",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that an order which the fulfillment.type
is order-at-table
has been served to the customer.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✖️ | ✖️ | ✖️ |
{
"eventType": "order-served",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that an order has been canceled.
Channel | Pos | Rider | Loyalty |
---|
✖️ | ✔️ | ✔️ | ✔️ |
{
"eventType": "order-canceled",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that an order has been take in charge for the delivery by a rider.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✔️ | ✖️ | ✖️ |
{
"eventType": "rider-created",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that a rider is on his way to the restaurant in order to pick the order.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✔️ | ✖️ | ✖️ |
{
"eventType": "rider-picking",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that a rider is on his way to the customer in order to deliver the order.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✔️ | ✖️ | ✖️ |
{
"eventType": "rider-delivering",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that the delivery process of an order has been completed correctly.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✔️ | ✖️ | ✖️ |
{
"eventType": "rider-completed",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent to know that an error occurred during the process of delivery of an order.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✔️ | ✖️ | ✖️ |
{
"eventType": "rider-error",
"storeId": "string",
"data": {
"orderId": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
Sent by some riders as proof that the order has been delivered.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✖️ | ✖️ | ✖️ |
{
"eventType": "rider-proof-delivery",
"storeId": "string",
"data": {
"orderId": "string",
"proofDelivery": "string"
}
}
Field | Description |
---|
eventType | The type of event |
storeId | The storeId where the event occurred |
data.orderId | The orderId in which the status was updated |
data.proofDelivery | The proofDelivery string. UberDirect case: Long Base64 string that can be converted to a PNG image (Web Converter (External)) |
Sent by some riders, when for some reason the order is not delivered.
Channel | Pos | Rider | Loyalty |
---|
✔️ | ✖️ | ✖️ | ✖️ |
{
"eventType": "rider-refund",
"storeId": "string",
"data": {
"orderId": "string",
"refund": {
id: "string",
date: "string",
totalRiderRefund: "number",
totalPartnerRefund: "number",
reason: "string",
refundItems:[
{
reason: "string",
riderAmount: "number",
partnerAmount: "number",
partyAtFault: "string",
items: [
{
name: "string",
qty: "number"
},
]
},
],
refundFees: [
{
name: "string",
amount: "value",
code: "string"
},
]
}
}
}
Field | Description |
---|
eventType | The type of event. |
storeId | The storeId where the event occurred. |
data.orderId | The orderId in which the status was updated. |
data.refund | The refund Data Object |
data.refund.id | The refund identifier. |
data.refund.date | Refund creation date. |
data.refund.totalRiderRefund | Total monetary amount that Rider will adjust on the billing details report and invoice in cents. |
data.refund.totalPartnerRefund | Total monetary amount that the partner is liable to their customers in cents. |
data.refund.reason | Refund reason. |
data.refund.refundItems | Array of refund items data Object |
data.refund.refundItems.reason | Refund item reason. |
data.refund.refundItems.riderAmount | The monetary value of items that Rider will adjust on the invoice in cents. |
data.refund.refundItems.partnerAmount | The monetary value of items that the partner is liable towards their customers in cents. |
data.refund.refundItems.partyAtFault | Party at fault. |
data.refund.refundItems.items | Array of items Object |
data.refund.refundItems.items.name | Refund Item name. |
data.refund.refundItems.items.qty | Quantity of the item. |
data.refund.refundFees | Array of refund Fees data Object |
data.refund.refundFees.name | Refund fee name. |
data.refund.refundFees.amount | Refund fee amount. |
data.refund.refundFees.code | Refund fee Code. |