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

# Update a stock supplier

`PATCH /v1/stockDetails/{stockDetailsId}/suppliers/{stockSupplierId}`

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

## Path parameters

- `stockDetailsId` integer, required
- `stockSupplierId` integer, required

## Headers

- `Customer-Id` integer, required

## Request body

- UpdateStockSupplierModel — Represents a model that holds information to update a stock supplier
  - `contactId` integer — The identifier of the contact associated with the stock supplier. It is used for communication and relationship management with the supplier<br/><br/>Optional: Omit to retain current value
  - `warrantyPeriod` integer, nullable — The warranty period refers to the duration (in months) for which the stock supplier guarantees the inventory's quality and performance<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `cost` number, double, nullable — The cost refers to the amount charged by the stock supplier for each unit of inventory. If set to null, CurrencyCode is also changed to null. If CurrencyCode is omitted from request and it's previous value is null, the default currency is used<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>

## 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)
