Order History

The Order History SDK allows your customers to view and manage their past orders, including both the order list and detailed order views. It includes all the components needed to present a complete order history experience.

Without any customisation, Order History screens looks like this:

Order History screens
Order History screens

Start using the Order History SDK

The Platform module includes the Order History SDK. To start using it, simply add the order history content block in the CMS. The Order History SDK is composed of the following modules:

Koin modules

The Order History SDK dependencies are injected using Koin. Order History SDK provides the default dependencies definitions via these Koin modules:

Poq Settings

The Order History SDK is configurable via OrderHistoryComponentSettings. Through OrderHistoryComponentSettings you can configure:

  • isEnabled: if enabled the Order History flow will be showed when the customer access the order history content block. False by default.
  • pageSize: it controls the size of the pagination page. In general, this only drives the amount of orders prefetched initially (3 * pageSize) as backend controls the page size.

Order History SDK provides two new deep links:

  • ://orders: it opens OrderHistoryActivity with OrderHistoryFragment on top.
  • ://orders/{OrderNumber}: it opens OrderHistoryActivity with OrderDetailsFragment on top.