Product Customer-Group Prices — Create (GraphQL)
Adds a new customer-group (tier) price to a product. This is a parent-scoped mutation — pass the product as the productId argument alongside the input. The combination of qty and customerGroupId must be unique for the product. A null customerGroupId makes the price apply to every customer group.
valueType is fixed (a flat price at that quantity) or discount (a discount off the base price).
TIP
See the Products overview for how the catalog product menu fits together.
All admin operations require an admin Bearer token — see Authentication.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
productId | Int! | yes | Argument — parent product. |
qty | Int! | yes | Quantity threshold (greater than or equal to 1). |
valueType | String! | yes | fixed or discount. |
value | Float! | yes | Price or discount value. |
customerGroupId | Int | no | null applies the price to every group. |

