Order Created
This event is fired when an order is created for a buyer
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,
paymentStatus: data.paymentStatus,
transactionId: data._id,
extUserId: data.extUserId,
};
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