Skip to content

Product Customer-Group Prices — Update (GraphQL)

Updates an existing customer-group (tier) price row. This is a parent-scoped mutation — pass the product as the productId argument and the row IRI as input.id. Send only the fields you want to change. The new qty / customerGroupId combination must remain unique for the product. A null customerGroupId makes the price apply to every customer group.

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.
idID!yesTier-price row IRI.
qtyIntnoQuantity threshold (greater than or equal to 1).
valueTypeStringnofixed or discount.
valueFloatnoPrice or discount value.
customerGroupIdIntnonull applies the price to every group.

Released under the MIT License.