Skip to main content

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

  1. Order Received: You receive a new order notification via a webhook event.
  2. Get Details (Optional): You may retrieve complete order details using the Get Order Details endpoint.
  3. Accept/Reject: You must either accept or reject the order within a specific timeframe.
  4. Prepare Order: If accepted, you prepare the items for the order.
  5. Mark as Ready: Once prepared, you mark the order as ready for pickup or delivery.
  6. 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