curl --request GET \
--url https://api.example.com/inventory/dashboard/stock-value{
"totalValue": 250430.50,
"topValuableProducts": [
{
"productId": "cffbca85-da89-4b2a-aecf-31422abcb34a",
"sku": "NOTE-GAMER",
"name": "Notebook Gamer",
"quantity": 10,
"totalProductValue": 55000.00
}
]
}
Calcula o valor financeiro alocado no estoque atual, segmentando pelo custo e oferecendo uma listagem do impacto financeiro (Top Produtos).
curl --request GET \
--url https://api.example.com/inventory/dashboard/stock-value{
"totalValue": 250430.50,
"topValuableProducts": [
{
"productId": "cffbca85-da89-4b2a-aecf-31422abcb34a",
"sku": "NOTE-GAMER",
"name": "Notebook Gamer",
"quantity": 10,
"totalProductValue": 55000.00
}
]
}
{
"totalValue": 250430.50,
"topValuableProducts": [
{
"productId": "cffbca85-da89-4b2a-aecf-31422abcb34a",
"sku": "NOTE-GAMER",
"name": "Notebook Gamer",
"quantity": 10,
"totalProductValue": 55000.00
}
]
}
Valor do estoque (top produtos e total)