Skip to main content
POST
/
inventory
/
stocks
/
unlink-stock
Unlink Stock From Item
curl --request POST \
  --url https://api.decodahealth.com/inventory/stocks/unlink-stock \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
[
  {
    "itemId": "<string>",
    "stockId": "<string>",
    "quantityUsed": 123
  }
]
'
{
  "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
itemId
string
required

ID of the item

stockId
string
required

ID of the stock

quantityUsed
number
required

Quantity of the item

Response

Successful Response