Objective: Returns a list of products or a single one regardless of whether it is a PRODUCT or KIT
JSON Composition for sending:
{
"auth" : authentication token
,"skus" : vector with SKUs to be consulted
[
"sku" : product SKU or "*" for all
]
}
Success return:
{
"code": 200,
"stock": [
{
"type": K or P
"ean": product EAN
"sku": SKU of product or kit
"kit": kit SKU
"descricao": product description
"unidade": unit of measure
"code": 200 for found, 404 for not found
"amount": available quantity in OMS
"composition": [
{
"sku": SKU composing the kit
"descricao": product description
"unidade": packaging unit
"use": quantity used in the kit
"amount": quantity available in OMS stock
}
]
}
]
}
Code:
400: auth already in use
404: apikey/token not identified
500: client blocked