Orders V2
Get orders list
Changed onGet orders list with filtering and pagination
Retrieves a list of orders for the current user with:
- Role-based filtering (buyer or seller)
- Status filtering (pending, completed, cancelled)
- Quality tier filtering (min and max)
- Pagination support
- Sorting options
Returns order previews with quality tier information visible.
Requirements:
- 45.1: Provide OrderListV2 React component (backend support)
- 45.2: Maintain visual parity with V1 OrderList component
- 45.3: Use RTK_Query_Client for API calls
- 45.4: Show quality tier in order preview
- 45.5: Filter orders by quality tier
get/orders
Request
- Base URL: /api/v2 (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/v2/orders
- Auth: loggedin (a scheme the document does not define)
Query parameters
status'pending' | 'completed' | 'cancelled'
role'buyer' | 'seller'
quality_tier_minnumber double
quality_tier_maxnumber double
pagenumber double
page_sizenumber double
sort_by'created_at' | 'updated_at' | 'total_price'
sort_order'asc' | 'desc'
Response
Orders list with pagination metadata
Changes
- ○
the endpoint scheme security
loggedinwas added to the API - ○
the endpoint scheme security
jwtwas removed from the API
- ○