Admin API / Types
ProductSales
ObjectSales of one listing in the counted sold orders. Amounts are in USD.
type ProductSalesFields
| Field | Type | Description |
|---|---|---|
itemSales | Money! | Sum of the line totals of the listing's items, at the purchase price. It does not include shipping, tax or discounts, so the sum of itemSales over listings is not totalSales. |
orderCount | NonNegativeInt! | Number of counted orders with at least one item of the listing. |
product | Product | The listing. Null when the listing is deleted or the caller cannot read it. Reading its fields needs the admin:products:read scope. |
productId | ID! | The listing ID, also when product is null. |
unitsSold | NonNegativeInt! | Sum of the quantities of the listing's items. |