# orderedProducts

### Arguments

| Argument                                                                                                                               | Description                                                             |
| -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| shipmentDateFrom ([ISO8601DateTime](https://developer.firmhouse.com/graphql-api/api-reference/objects/iso-8601-date-time))             | Filter ordered products with a shipment date on or later then.          |
| shipmentDateTo ([ISO8601DateTime](https://developer.firmhouse.com/graphql-api/api-reference/objects/iso-8601-date-time))               | Filter ordered products with a shipment date on or prior too.           |
| subscriptionStatuses (\[[SubscriptionStatus](https://developer.firmhouse.com/graphql-api/api-reference/objects/subscription-status)!]) | Filter on subscriptions status(es).                                     |
| productIds (\[[ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id)!])                                            | Filter on product id(s).                                                |
| productSkus (\[[String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string)!])                                   | The product SKU(s) to filter on.                                        |
| subscriptionCountries (\[[String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string)!])                         | Filter on subscription country code(s) (ISO 3166-1 alpha-2).            |
| after ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))                                             | Returns the elements in the list that come after the specified cursor.  |
| before ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))                                            | Returns the elements in the list that come before the specified cursor. |
| first ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                   | Returns the first *n* elements from the list.                           |
| last ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                    | Returns the last *n* elements from the list.                            |

### Return fields

#### edges (\[[OrderedProductEdge](https://developer.firmhouse.com/graphql-api/api-reference/objects/ordered-product-edge)])

A list of edges.

#### nodes (\[[OrderedProduct](https://developer.firmhouse.com/graphql-api/api-reference/objects/ordered-product)])

A list of nodes.

#### pageInfo ([PageInfo](https://developer.firmhouse.com/graphql-api/api-reference/objects/page-info)!)

Information to aid in pagination.

#### totalCount ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))

The total number of items available.

#### totalCountPerProductId ([JSON](https://developer.firmhouse.com/graphql-api/api-reference/objects/json)!)

Returns a key value pair of product ID and the value of its ordered product count

#### totalCountPerProductSku ([JSON](https://developer.firmhouse.com/graphql-api/api-reference/objects/json)!)

Returns a key value pair of product SKU and the value of its ordered product count

#### totalQuantityPerProductId ([JSON](https://developer.firmhouse.com/graphql-api/api-reference/objects/json)!)

Returns a key value pair of product ID and the value of its ordered product total quantity

#### totalQuantityPerProductSku ([JSON](https://developer.firmhouse.com/graphql-api/api-reference/objects/json)!)

Returns a key value pair of product SKU and the value of its ordered product total quantity
