Skip to main content
POST
/
inventory
/
stocks
/
link-supplier
Link Supplier To Stock
curl --request POST \
  --url https://api.decodahealth.com/inventory/stocks/link-supplier \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
[
  {
    "supplierId": "<string>",
    "stockId": "<string>",
    "supplierPartNumber": "<string>",
    "price": 123,
    "leadTime": 1
  }
]
'
[
  {
    "supplierId": "<string>",
    "stockId": "<string>",
    "supplierPartNumber": "<string>",
    "price": 123,
    "leadTime": 1
  }
]

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json
supplierId
string
required

ID of the supplier

stockId
string
required

ID of the stock

supplierPartNumber
string
required

Supplier part number for this stock

price
integer | null

Price in cents

leadTime
integer | null

Lead time in days (must be > 0)

Required range: x > 0

Response

Successful Response

supplierId
string
required

ID of the supplier

stockId
string
required

ID of the stock

supplierPartNumber
string
required

Supplier part number for this stock

price
integer | null

Price in cents

leadTime
integer | null

Lead time in days (must be > 0)

Required range: x > 0