payment_status and fulfillment_status from payment collections and fulfillments. When sellerId is set, each group’s orders array is filtered to that seller’s orders — useful for vendor-scoped views. Payment collections and fulfillments are stripped unless the requested fields include them. Triggered by GET /admin/order-groups.
Usage
Input
Fields to retrieve; merged with the defaults needed for status aggregation.
Query filters plus pagination.
Restrict each group’s
orders to the given seller(s).Result
The order groups; each child order carries computed
payment_status and fulfillment_status.Pagination metadata (
count, skip, take).