Skip to main content
POST
/
inventory
/
stocks
/
unlink-supplier
Unlink Supplier From Stock
curl --request POST \
  --url https://api.decodahealth.com/inventory/stocks/unlink-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
  }
]
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

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