Order Shipped
This event is fired when an order is confirmed shipped by the driver. These details are also available to the user on the Transaction display view on the app plugin
Callback Webhook
Register a callback webhook URL on the developer console. This webhook is called when the event is fired.
Payload
The webhook URL is called with the following payload
const doc = {
amount: data.total,
createdAt: data.createdAt,
shippingStatus: data.shippingStatus,
transactionId: data._id,
extUserId: data.extUserId,
deliveryAssigneeName: data.deliveryAssigneeName,
deliveryAssigneePhone: data.deliveryAssigneePhone
};
Retrieving full transaction details
To retrieve full details of the created order including items ordered, quantities, price, etc. or a list previous transactions, you can call the respective APIs with the transactionId or extUserId respectively
Updated about 4 years ago