- Search
Using order search to suit your needs
Premium search for orders and line items provides enhanced search and filtering capabilities for the orders endpoint. This feature enables custom order management screens, reporting interfaces, and unique buyer order history experiences.
Line item search capabilities
Sales metrics
Get total quantity sold or gross sales by product:
Fulfillment tracking
Find unfulfilled items:
Promotion analysis
Track discounted purchases:
Track non-discounted purchases:
Time-based analysis
Get items sold in specific period:
Note: All dates use UTC format
User history
View customer purchase history:
Supplier analysis
Compare supplier performance:
Note: Requires supplier/seller user with OrderAdmin and OrderReader roles.
Order filtering
Product-based filtering
Find orders containing specific products:
Address filtering
Orders with California billing:
Multiple state filtering:
Search optimization
Search types
- Default: AnyTerm
- Expanded: Product and order data
- Configurable ranking
Example scenario
Sample product names:
- Button-up Black Shirt
- Sleeveless Black Shirt
- Cotton Blue Shirt
- High-top Black Shoes
- Canvas White Shoes
Basic search
Find orders with any shirts:
Refined search
Find orders with black shirts:
Line item retrieval
Get order line items:
Supplier/seller search
Alternative URL format:
Comment search
Fuzzy search in comments:
Implementation notes
Order submission status
- Default: Returns submitted orders
- Unsubmitted orders require explicit filter:
Extended properties
Filter by xp without indexing:
Pagination optimization
Use NextPageKey for better performance:
