Override

Override existing stock inventory given payload

put
Autorizações
Corpo
Respostas
200
OK
application/json
put
PUT /api/sales/stock/override HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 160

{
  "stocks": [
    {
      "type": "PRODUCT",
      "product_id": "text",
      "product_variation_id": "text",
      "warehouse_id": "text",
      "company_id": "text",
      "active": true,
      "total": 1,
      "reserved": 1
    }
  ]
}
[
  {
    "id": "text",
    "product_id": "text",
    "product_variation_id": "text",
    "warehouse_id": "text",
    "company_id": "text",
    "active": true,
    "total": 1,
    "available": 1,
    "reserved": 1
  }
]