---
title: "Update purchase price V2"
method: PATCH
path: "/api/v2/purchasePrices/{id}"
tags: ["Purchase Price"]
---

# Update purchase price V2

`PATCH /api/v2/purchasePrices/{id}`

Updates details of a single purchase price

## Path parameters

- `id` string, required — Resource identifier.

## Request body

- object
  - `supplier` object — Reference to a supplier for this price
    - `id` string, required — Resource identifier.
  - `isStandardSupplier` union — Loose boolean type which accepts boolean, number 0 or 1 and string 'true' or 'false'
    - boolean
    - 0 | 1
    - 'true' | 'false' | 'True' | 'False' | 'TRUE' | 'FALSE'
  - `supplierDesignation` string — The designation of the supplier
  - `supplierItemNumber` string — Supplier item number
  - `fromQuantity` number, float — Minimum quantity for this price
  - `packageAmount` number, float, nullable — Amount of items in a package
  - `price` object — Price of the product
    - `amount` number, float
    - `currency` 'EUR' | 'PLN' | 'CHF' | 'USD' | 'GBP'
  - `validFrom` string, date, nullable — Date from which the price is valid
  - `expiresAt` string, date, nullable — Date until which the price is valid
  - `additionalInformation` object, nullable — Purchase Price
    - `supplierStockLevel` number
    - `supplierStockDate` string, date
    - `safetyStockLevel` number
    - `standardDeliveryTime` number
    - `standardDeliveryTimeUnit` 'days' | 'weeks'
    - `currentDeliveryTime` number
    - `currentDeliveryTimeUnit` 'days' | 'weeks'
  - `internalComment` string — Internal Comment

## Response `204`

Operation completed successfully, no response body

## Other responses

- `400` — IETF RFC 9457 Problem API compliant response
- `401` — Unable to authenticate the client
- `403` — Unable to authorize the client
- `404` — Resource was not found or not enough access privileges
- `409` — IETF RFC 9457 Problem API compliant response
- `429` — Too many API calls made.

---

[API](https://skmtc.net/xentral/apis/xentral-api.md) · [All operations](https://skmtc.net/xentral/apis/xentral-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xentral/xentral-api/revisions/8a27ba392442/schema)
