Objective: Returns the quantity of inbound/outbound in a specific period
JSON Composition for sending:
{
*"auth" : key obtained in get/auth method
,*"start" : period start date (dd/mm/yyyy) - default 7 days ago
,"end" : period end date (dd/mm/yyyy) - default today
,"resume" : integer – to show the summary occurred before "start" (0/no, 1/yes)
,"sku" :
[
{
"sku" : text
}
]
}
(If the sku tag is filled with "*" all active skus will be returned)
ex:
{"sku":
[
{"sku":"*"}
]
}
(If the end tag is not provided, today’s date will be assumed as the end)
Returns with:
{
"code" : integer
,"stock" :
[
{
"sku" : text
,"code" : integer (200 or 404)
,"in" : integer – total outbound
,"out" : integer – total inbound
,"balance" : integer – balance of the informed period
,"active" : integer
,"more" :
[
{
"lote" : text (batch)
,"valid" : expiration date (dd/mm/yyyy)
,"amount" : integer
}
]
,"resume": corresponds to the movement prior to the informed period
[
"in" : integer representing entries
,"out" : integer representing exits
,"balance" : integer representing the balance
]
}
}
}
code:
200: request fulfilled
404: no SKUs found
405: SKU tag not informed
406: SKU parameter is not an array type
407: invalid resume tag (must be 0 or 1)
408: invalid START tag (use dd/mm/yyyy)
409: invalid END tag (use dd/mm/yyyy)
500: invalid auth