Query

Retrieve stock data given a query

post
Autorizações
Corpo
typestring · enumObrigatórioValores possíveis:
idstringOpcional
company_idstringOpcional
warehouse_idstringOpcional
product_idsstring[]Opcional
product_variation_idstringOpcional
only_activebooleanOpcional
Respostas
200
OK
application/json
post
POST /api/sales/stock/query HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 144

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