frontend


frontend / api/inventory/priceMutations / changePrice

Function: changePrice()

changePrice(req): Promise<boolean>

Defined in: src/api/inventory/priceMutations.ts:46

Change item unit price. Updates the unit price for the specified item.

Parameters

req

ChangePriceRequest

Price change payload with item id and new price

Returns

Promise<boolean>

true if successful, false otherwise

Enterprise

Server commonly exposes: PATCH /{id}/price?price= Price validation (minimum/maximum) typically handled by backend.

Example

// Update item price
const success = await changePrice({
  id: 'ITEM-123',
  price: 29.99
});

if (!success) {
  console.error('Price update failed');
}