GuideReference

Retrieve Orders

The Nue Self-Service API provides robust capabilities for retrieving and managing customer orders throughout their lifecycle. This functionality allows customers to view their order history, track active subscriptions, and manage their purchases.

How to Retrieve Customer OrdersCopied!

Required Information

To retrieve customer orders, you need:

  • Customer IDs: The unique identifier(s) for the customers whose orders you want to retrieve

  • Optional Filters: Parameters to refine the orders returned

Query Parameters

The order retrieval endpoint supports several query parameters to customize the results:

  • customerIds: JSON-encoded array of customer IDs to fetch orders for

  • includes: Comma-separated list of related data to include (assets, invoices)

  • status: Filter orders by status (active, draft, canceled)

Retrieval Process

When you request orders using the /orders endpoint with appropriate query parameters, the system:

  1. Authenticates and authorizes the request

  2. Retrieves orders matching the specified customer IDs

  3. Applies any status filters

  4. Includes related data as requested

  5. Returns a structured response with order details

Order Response

The response includes comprehensive information about each order:

  • Basic Order Details: ID, name, status, created/modified dates

  • Financial Information: Total amounts, discounts, taxes

  • Subscription Details: Start/end dates, terms

  • Related Assets: Associated subscriptions and physical assets (if requested)

  • Invoices: Related invoice information (if requested)

Order Management LifecycleCopied!

The order retrieval functionality supports the complete order management lifecycle:

  1. Draft Orders: Review orders in preparation

  2. Active Orders: Monitor current subscriptions and purchases

  3. Change History: Track modifications to orders over time

  4. Renewal Management: Identify upcoming renewals

  5. Cancellation Tracking: View canceled orders and their details

Use Cases for Order RetrievalCopied!

This functionality is essential for several self-service scenarios:

  • Order History Views: Allow customers to browse their purchase history

  • Subscription Management: Enable customers to see what they currently have

  • Invoice Access: Provide easy access to related billing documents

  • Renewal Planning: Help customers prepare for upcoming renewals

  • Asset Inventory: Give customers visibility into their active assets

Best Practices for Order RetrievalCopied!

  • Implement pagination for customers with many orders

  • Provide filtering options for large order histories

  • Include clear status indicators for each order

  • Link to actions appropriate for each order's status

  • Cache commonly accessed order information for performance

By implementing effective order retrieval, you enable customers to maintain a complete view of their relationship with your business, supporting greater transparency and self-service capabilities throughout the customer lifecycle.