Skip to main content

priceUpdate

Update an existing price record's information.

Modifies price details including base pricing, cost information, volume discounts, effective dates, and pricesheet assignments. Only provided fields will be updated, others remain unchanged.

Possible errors:

  • PRICE_NOT_FOUND_ERROR: Price with the specified ID does not exist
  • PRICE_UPDATE_ERROR: Failed to update the price
  • PRICE_VALIDATION_ERROR: Updated price data validation failed
  • PRODUCT_NOT_FOUND_ERROR: Specified product does not exist
  • PRICESHEET_NOT_FOUND_ERROR: Specified pricesheet does not exist
  • UNAUTHENTICATED: Invalid or missing authentication
  • FORBIDDEN: Insufficient permissions to update prices

AUTH: Role=[pricing.OWNER,pricing.EDITOR]

priceUpdate(
id: String!
input: PriceUpdateInput!
): Price!

Arguments

priceUpdate.id ● String! non-null scalar

Unique identifier of the price record to update.

Must be a valid UUID format representing an existing price in the system.

priceUpdate.input ● PriceUpdateInput! non-null input

Updated price information.

Contains the price properties to update. Only provided fields will be changed, others remain unchanged.

Type

Price object