---
title: "Update a stock details"
method: PATCH
path: "/v1/stockDetails/{stockDetailsId}"
tags: ["Stock"]
---

# Update a stock details

`PATCH /v1/stockDetails/{stockDetailsId}`

Update the details of a single stock details (required scope stock:write)

## Path parameters

- `stockDetailsId` integer, required

## Headers

- `Customer-Id` integer, required

## Request body

- UpdateStockDetailsModel — Update stock details model
  - `productCategoryId` integer — The unique identifier of the product category associated to this stock details<br/><br/>Optional: Omit to retain current value
  - `model` string — The model name of the stock details<br/><br/>Optional: Omit to retain current value
  - `make` string, nullable — The manufacturer or brand of the stock<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `sellingPrice` number, double, nullable — The selling price of the stock. Cannot set to null if CurrencyCode is set<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `currencyCode` 'EUR' | 'AUD' | 'GBP' | 'BGN' | 'CAD' | 'CZK' | 'DKK' | 'HUF' | 'ILS' | 'LVL' | 'LTL' | 'MXN' | 'NZD' | 'NOK' | 'PLN' | 'RON' | 'RUB' | 'ZAR' | 'SEK' | 'CHF' | 'AED' | 'USD' — CurrencyCode definitions enum, matches currencies available in the BigChange Client Site<p>Possible values:</p><ul><li><b>EUR</b>: Euro</li><li><b>AUD</b>: Australian Dollar</li><li><b>GBP</b>: Pound Sterling</li><li><b>BGN</b>: Bulgarian Lev</li><li><b>CAD</b>: Canadian Dollar</li><li><b>CZK</b>: Czech Koruna</li><li><b>DKK</b>: Danish Krone</li><li><b>HUF</b>: Forint</li><li><b>ILS</b>: New Israeli Sheqel</li><li><b>LVL</b>: Latvian Lats - replaced by Euro</li><li><b>LTL</b>: Lithuanian Litas - replaced by Euro</li><li><b>MXN</b>: Mexican Peso</li><li><b>NZD</b>: New Zealand Dollar</li><li><b>NOK</b>: Norwegian Krone</li><li><b>PLN</b>: Zloty</li><li><b>RON</b>: Romanian Leu</li><li><b>RUB</b>: Russian Ruble</li><li><b>ZAR</b>: Rand</li><li><b>SEK</b>: Swedish Krona</li><li><b>CHF</b>: Swiss Franc</li><li><b>AED</b>: UAE Dirham</li><li><b>USD</b>: US Dollar</li></ul>
  - `departmentCodeId` integer, nullable — The department code of the stock<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `nominalCodeId` integer, nullable — The nominal code associated with the stock for accounting purposes<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `notes` string, nullable — Notes associated with the stock<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `modelNumber` string, nullable — The unique number assigned by the manufacturer to identify the model of the stock<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `stockCode` string, nullable — The unique number or barcode assigned to each individual stock for identification and tracking<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `batchNumber` string, nullable — The batch number of the stock<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `size` number, double, nullable — The dimensions or volume of the stock (m3)<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `weight` number, double, nullable — The weight of the stock (kg)<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `taxId` integer, nullable — The identifier of the tax (vat) associated with the stock. If null, the user's default tax rate will be applied<br/><br/>Optional: Omit to retain current value or provide null to unset

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

[API](https://skmtc.net/bigchange/apis/bigchange-dx.md) · [All operations](https://skmtc.net/bigchange/apis/bigchange-dx/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bigchange/bigchange-dx/revisions/916e669fc527/schema)
