OBJECT

ProductVariant

link GraphQL Schema definition

1type ProductVariant implements ObjectWithAttributes, ObjectWithTranslations, Localizable {
2id: Int!
3
4name: String
5
6status: Status!
7
8variantNumber: String
9
10# Required permission: ProductVariant.internalName:read
11internalName: String
12
13unitCost: MonetaryValue
14
15# Arguments
16# format: ISO-8601
17updatedAt(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz!
18
19stockOffset: Int!
20
21shippingSpecificationSettings: ShippingSpecificationSettings
22
23# Required permission: ProductVariant.attributes:read
24#
25# All elements are always returned
26#
27# Arguments
28# where: (self-explanatory)
29attributes(where: AssignedAttributeFilter): [Attribute!]!
30
31# Required permission: Campaign:read
32#
33# Limit is optional
34#
35# Store restrictions apply.
36#
37# Arguments
38# where: (self-explanatory)
39# sort: (self-explanatory)
40# limit: (self-explanatory)
41# page: (self-explanatory)
42campaignVariants(where: CampaignVariantFilter, sort: [CampaignVariantSort!] = [id_ASC], limit: Int, page: Int): [CampaignVariant!]!
43
44# Required permission: Display:read
45#
46# All elements are always returned
47#
48# Store restrictions apply.
49displays: [Display!]!
50
51# Required permission: Translation:read
52#
53# All elements are always returned
54#
55# Arguments
56# where: (self-explanatory)
57translations(where: TranslationFilter): [LanguageTranslation!]!
58
59# Required permission: ProductMedia:read
60#
61# All elements are always returned
62media: [ProductMedia!]!
63
64# Required permission: Price:read
65#
66# Limit is optional
67#
68# Store restrictions apply.
69#
70# Arguments
71# where: (self-explanatory)
72# sort: (self-explanatory)
73# limit: (self-explanatory)
74# page: (self-explanatory)
75prices(where: PriceFilter, sort: [PriceSort!] = [pricelistId_ASC], limit: Int, page: Int): [Price!]!
76
77# Required permission: Product:read
78product: Product!
79
80# Required permission: ProductSize:read
81#
82# All elements are always returned
83#
84# Arguments
85# where: (self-explanatory)
86productSizes(where: ProductSizeFilter): [ProductSize!]!
87
88# Required permission: SizeChart:read
89sizeChart: SizeChart
90
91# Required permission: ProductVariant.stock:read
92#
93# Limit must be in range 1 - 200
94#
95# Arguments
96# where: (self-explanatory)
97# sort: (self-explanatory)
98# limit: (self-explanatory)
99# page: (self-explanatory)
100stock(where: StockFilter, sort: [StockSort!] = [warehouseId_ASC, productSizeSort_ASC], limit: Int = 20, page: Int = 1): [Stock!]!
101
102# Required permission: ProductVariant.stockTotals:read
103#
104# Arguments
105# where: (self-explanatory)
106stockTotals(where: StockTotalsFilter): StockTotals!
107
108# Required permission: SubscriptionPlan:read
109#
110# All elements are always returned
111#
112# Store restrictions apply.
113#
114# Arguments
115# where: (self-explanatory)
116# sort: (self-explanatory)
117availableInSubscriptionPlans(where: SubscriptionPlanFilter, sort: [SubscriptionPlanSort!] = [naturalSort_ASC, id_ASC]): [SubscriptionPlan!]!
118
119# Required permission: PurchaseOrderDelivery:read
120#
121# Limit must be in range 1 - 200
122#
123# Arguments
124# where: (self-explanatory)
125# sort: (self-explanatory)
126# limit: (self-explanatory)
127# page: (self-explanatory)
128purchaseOrderDeliveries(
129where: PurchaseOrderDeliveryFilter,
130sort: [PurchaseOrderDeliverySort!] = [id_DESC],
131limit: Int = 20,
132page: Int = 1
133): [PurchaseOrderDelivery!]!
134
135# Required permission: PurchaseOrder:read
136#
137# Limit must be in range 1 - 200
138#
139# Arguments
140# where: (self-explanatory)
141# sort: (self-explanatory)
142# limit: (self-explanatory)
143# page: (self-explanatory)
144purchaseOrders(where: PurchaseOrderFilter, sort: [PurchaseOrderSort!] = [id_DESC], limit: Int = 20, page: Int = 1): [PurchaseOrder!]!
145
146# Required permission: ProductVariantSupply:read
147#
148# Limit must be in range 1 - 200
149#
150# Arguments
151# where: (self-explanatory)
152# sort: (self-explanatory)
153# limit: (self-explanatory)
154# page: (self-explanatory)
155supply(where: ProductVariantSupplyFilter, sort: [ProductVariantSupplySort!] = [supplierName_ASC], limit: Int = 20, page: Int = 1): [ProductVariantSupply!]!
156
157}