Skip to main content

updateProductUOMListPrice

Requires permission products:pricing:update.

Set the list price of one unit (pack) of a product. It applies to every row of that unit on the product, including variant-level rows. Needs the pricing update permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation UpdateProductUOMListPrice($listPrice: Float!, $productId: String!, $uomId: String!) {
updateProductUOMListPrice(
listPrice: $listPrice
productId: $productId
uomId: $uomId
) {
success
}
}

Variables:

{
"listPrice": 0,
"productId": "string",
"uomId": "string"
}

Response:

{
"data": {
"updateProductUOMListPrice": {
"success": true
}
}
}
updateProductUOMListPrice(
listPrice: Float!
productId: String!
uomId: String!
): BooleanResponse!

Arguments​

updateProductUOMListPrice.listPrice ● Float! non-null scalar​

The new list price of one of this unit.

updateProductUOMListPrice.productId ● String! non-null scalar​

The ID of the product.

updateProductUOMListPrice.uomId ● String! non-null scalar​

The ID of the unit of measure.

Type​

BooleanResponse object​

A yes or no outcome.