Application Load

IOrderHistoryResponse

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IOrderHistoryResponse

Customer orders with payment totals and nested shipments.

src/lib/interfaces/orionplace/orders/IOrderHistory.ts
TypeScript
export interface IOrderHistoryResponse {
  // Field and general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message or null.
  success_message: string | null;
  // Paginated customer orders.
  page_data: {
    // Orders belonging to the current account, including their shipments and
    // items. No result is an empty array.
    data: IOrder[];
    // Pagination metadata for the selected orders.
    rpag: IApiPagination;
  } | null;
}