Order Management Overview
This document provides a comprehensive overview of the order management process in the Presto Vendor Integration API.
Process Flow Diagram
The following sequence diagram illustrates the typical order lifecycle:
Key Functions
- Retrieving Order Details: Check the current status and details of a specific order using Get Order Details.
- Accepting Orders: Acknowledge and confirm that you will fulfill an incoming order using Accept Order.
- Rejecting Orders: Decline an incoming order if you cannot fulfill it using Reject Order.
- Marking as Ready: Indicate that an accepted order is prepared and ready for pickup or dispatch using Ready Order.
Order Lifecycle Steps
- Order Received: You receive a new order notification via a webhook event.
- Get Details (Optional): You may retrieve complete order details using the Get Order Details endpoint.
- Accept/Reject: You must either accept or reject the order within a specific timeframe.
- Prepare Order: If accepted, you prepare the items for the order.
- Mark as Ready: Once prepared, you mark the order as ready for pickup or delivery.
- Completion: Presto handles subsequent steps (dispatch, delivery tracking). Status updates are sent via webhooks.
Implementation Best Practices
- Implement robust webhook handling to receive order notifications
- Respond to new orders promptly (within the required timeframe)
- Provide clear reasons when rejecting orders
- Update order status in a timely manner