Overview
In HAPI (Headless API), a Sales Order is a record of what a customer has purchased. It includes delivery and contact details and is used to support returns through online portals like the Rebound Consumer Portal or other partner systems.
Unlike traditional systems, HAPI is designed to work behind different user interfaces. It doesn’t store the orders itself—instead, it connects to the client’s system or Order Service to retrieve the order information when needed. Customers can retrieve their orders by filtering through email, postal code, and Order ID.
Lifecycle
A Sales Order is created when a purchase is made and doesn’t change afterward. It acts as a permanent record of the transaction. Each item in the order is tracked separately and linked back to the original order.
If the client hasn’t shared their order data in advance, HAPI can still fetch the order directly from the client’s system when a customer looks it up through the portal.