Stock

Create a stock details

Creates a new stock details entity (required scope stock:write)

post/v1/stockDetails

Headers

Customer-Idinteger required

The customer identifier

Request body

modelstring required

The model name of the stock details

productCategoryIdinteger required

The unique identifier of the product category related to this stock details

makestring nullable

The manufacturer or brand of the stock

sellingPricenumber double nullable

The selling price of the stock

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>

departmentCodeIdinteger nullable

The department code of the stock

nominalCodeIdinteger nullable

The nominal code associated with the stock for accounting purposes

notesstring nullable

Notes associated with the stock

isConsumableboolean

Indicates whether the stock is a consumable item or not. Default is false

modelNumberstring nullable

The unique number assigned by the manufacturer to identify the model of the stock

stockCodestring nullable

The unique number or barcode assigned to each individual stock for identification and tracking

batchNumberstring nullable

The batch number of the stock

sizenumber double nullable

The dimensions or volume of the stock (m3)

weightnumber double nullable

The weight of the stock (kg)

taxIdinteger nullable

The identifier of the tax (vat) associated with the stock. If null or omitted, the user's default tax rate will be applied

Example request

{
  "model": "F1 Cleaner",
  "productCategoryId": 5514123,
  "make": "DustGone Solutions",
  "sellingPrice": 19.99,
  "currencyCode": "EUR",
  "departmentCodeId": 123,
  "nominalCodeId": 1234,
  "notes": "Great for cleaning windows",
  "isConsumable": true,
  "modelNumber": "F1-00010",
  "stockCode": "B10",
  "batchNumber": "S8",
  "size": 199,
  "weight": 6.3,
  "taxId": 1234
}

Response

Created

idinteger

Identifier of the newly created record