Skip to content

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

FieldTypeRequiredNotes
productIdInt!yesArgument — parent product.
qtyInt!yesQuantity threshold (greater than or equal to 1).
valueTypeString!yesfixed or discount.
valueFloat!yesPrice or discount value.
customerGroupIdIntnonull applies the price to every group.

Released under the MIT License.