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

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

itemId
string
required

ID of the item

stockId
string
required

ID of the stock

quantityUsed
number
required

Quantity of the item