# Update product pricing

Partially updates an existing Product Pricing. Only provided fields will be updated.

Endpoint: PATCH /site/{siteId}/ahds/v1/product-pricing/{productPricingId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `productPricingId` (string, required)
    Product Pricing unique identifier (UUID)

## Request fields (application/json):

  - `basedOn` (string)
    Indicates whether the pricing is defined directly by sell price or derived from markup on cost.
    Enum: "price", "markup"

  - `costPrice` (string)
    Net cost price for the product in the billing currency, as a decimal string.
    Example: 100.00

  - `currency` (string)
    ISO 4217 currency code for all monetary amounts in this record.
    Example: CODE-001

  - `dispenseFee` (string)
    Additional dispense or handling fee applied per unit, as a decimal string.
    Example: 100.00

  - `extensions` (object)
    Vendor- or practice-specific extensions.

  - `isActive` (boolean)
    Whether this pricing record is currently active.
    Example: true

  - `markup` (number)
    Markup percentage applied to costPrice to derive sellPrice when basedOn = 'markup'. Expressed as a percentage (e.g., 20 for 20%).
    Example: 1.23

  - `ownershipId` (string)
    Identifier of the ownership or business entity context for this pricing.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `productId` (string)
    Identifier of the product this pricing applies to.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `sellPrice` (string)
    Sell price excluding tax in the billing currency, as a decimal string.
    Example: 100.00

  - `sellPriceTax` (string)
    Tax amount applicable to the sellPrice, as a decimal string.
    Example: 100.00

  - `taxRate` (object)
    Tax rate applied to this product pricing.

## Response 200:

  - `200` (unknown)
    Product Pricing updated successfully

## Response 200 fields (application/json):

  - `basedOn` (string, required)
    Indicates whether the pricing is defined directly by sell price or derived from markup on cost.
    Enum: "price", "markup"

  - `costPrice` (string, required)
    Net cost price for the product in the billing currency, as a decimal string.
    Example: 100.00

  - `createdAt` (string, required)
    Timestamp when this pricing record was created.
    Example: 2025-01-01T00:00:00.000Z

  - `currency` (string, required)
    ISO 4217 currency code for all monetary amounts in this record.
    Example: CODE-001

  - `dispenseFee` (string, required)
    Additional dispense or handling fee applied per unit, as a decimal string.
    Example: 100.00

  - `extensions` (object, required)
    Vendor- or practice-specific extensions.

  - `isActive` (boolean, required)
    Whether this pricing record is currently active.
    Example: true

  - `markup` (number, required)
    Markup percentage applied to costPrice to derive sellPrice when basedOn = 'markup'. Expressed as a percentage (e.g., 20 for 20%).
    Example: 1.23

  - `ownershipId` (string, required)
    Identifier of the ownership or business entity context for this pricing.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `productId` (string, required)
    Identifier of the product this pricing applies to.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `productPricingId` (string, required)
    Canonical identifier for this product pricing record.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `sellPrice` (string, required)
    Sell price excluding tax in the billing currency, as a decimal string.
    Example: 100.00

  - `sellPriceTax` (string, required)
    Tax amount applicable to the sellPrice, as a decimal string.
    Example: 100.00

  - `taxRate` (object, required)
    Tax rate applied to this product pricing.

  - `updatedAt` (string, required)
    Timestamp when this pricing record was last updated.
    Example: 2025-01-01T00:00:00.000Z

## Response 400:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 404:

  - `404` (unknown)
    Product Pricing not found

