Update product stock information

POST /stocks

This endpoint is used to manually update stocks and set specific stock for each marketplaces

This endpoint is used to update stock info for your products - it can be used to update only one product based on our ID or your own product ID. If provided with array of ID's it will be handled as batch

application/json

Body Required

This endpoint is used to manually update stocks and set specific stock for each marketplaces

  • operationId string
  • items array[object]
    Hide items attributes Show items attributes object
    • remoteId string
    • productSetId integer
    • stockSupplyStrategy array[object]
      Hide stockSupplyStrategy attributes Show stockSupplyStrategy attributes object
      • stock number(float)
      • connectorId string

Responses

  • 404

    Product not found

  • default

    Default response

POST /stocks
curl \
 --request POST 'api.services.omnicado.com/api/v2/stocks' \
 --header "X-OMNICADO-TOKEN: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"operationId":"stockUpdate","items":[{"remoteId":"H1234443","productSetId":1234,"stockSupplyStrategy":[{"stock":4.0,"connectorId":"mallCz"}]}]}'
Request examples
{
  "operationId": "stockUpdate",
  "items": [
    {
      "remoteId": "H1234443",
      "productSetId": 1234,
      "stockSupplyStrategy": [
        {
          "stock": 4.0,
          "connectorId": "mallCz"
        }
      ]
    }
  ]
}