Compras por ingrediente
curl --request GET \
--url https://api.service.getjusto.com/v3/tabs/reports/purchases-by-ingredients \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"_id": "<string>",
"ingredients": [
{
"ingredientId": "<string>",
"ingredientName": "<string>",
"totalAmount": 123,
"taxAmount": 123,
"netAmount": 123,
"count": 123,
"storesInfo": [
{
"storeId": "<string>",
"storeName": "<string>",
"totalAmount": 123,
"taxAmount": 123,
"netAmount": 123,
"count": 123,
"accountingMovements": [
{
"accountingmovementId": "<string>",
"totalAmount": 123,
"netAmount": 123,
"taxAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"quantity": 123,
"unitNetCost": 123,
"paidAt": "2023-11-07T05:31:56Z",
"providerId": "<string>",
"invoiceId": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"issueDate": "2023-11-07T05:31:56Z",
"voidedAt": "2023-11-07T05:31:56Z",
"ingredientName": "<string>"
}
],
"quantity": 123
}
],
"unitOfMeasurement": "<string>",
"quantity": 123
}
],
"stores": [
{
"storeId": "<string>",
"storeName": "<string>"
}
],
"dates": {
"fromDate": "2023-11-07T05:31:56Z",
"toDate": "2023-11-07T05:31:56Z"
},
"stockRooms": [
{
"stockRoomId": "<string>",
"stockRoomName": "<string>",
"totalAmount": 123,
"taxAmount": 123,
"netAmount": 123,
"count": 123,
"storesInfo": [
{
"storeId": "<string>",
"storeName": "<string>",
"totalAmount": 123,
"taxAmount": 123,
"netAmount": 123,
"count": 123,
"accountingMovements": [
{
"accountingmovementId": "<string>",
"totalAmount": 123,
"netAmount": 123,
"taxAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"quantity": 123,
"unitNetCost": 123,
"paidAt": "2023-11-07T05:31:56Z",
"providerId": "<string>",
"invoiceId": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"issueDate": "2023-11-07T05:31:56Z",
"voidedAt": "2023-11-07T05:31:56Z",
"ingredientName": "<string>"
}
]
}
]
}
]
}
}Inventario y compras
Compras por ingrediente
Agrupa compras por ingrediente, local y bodega, mostrando montos, impuestos, cantidades y movimientos contables asociados. La data siempre queda limitada al website autorizado.
GET
/
tabs
/
reports
/
purchases-by-ingredients
Compras por ingrediente
curl --request GET \
--url https://api.service.getjusto.com/v3/tabs/reports/purchases-by-ingredients \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"_id": "<string>",
"ingredients": [
{
"ingredientId": "<string>",
"ingredientName": "<string>",
"totalAmount": 123,
"taxAmount": 123,
"netAmount": 123,
"count": 123,
"storesInfo": [
{
"storeId": "<string>",
"storeName": "<string>",
"totalAmount": 123,
"taxAmount": 123,
"netAmount": 123,
"count": 123,
"accountingMovements": [
{
"accountingmovementId": "<string>",
"totalAmount": 123,
"netAmount": 123,
"taxAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"quantity": 123,
"unitNetCost": 123,
"paidAt": "2023-11-07T05:31:56Z",
"providerId": "<string>",
"invoiceId": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"issueDate": "2023-11-07T05:31:56Z",
"voidedAt": "2023-11-07T05:31:56Z",
"ingredientName": "<string>"
}
],
"quantity": 123
}
],
"unitOfMeasurement": "<string>",
"quantity": 123
}
],
"stores": [
{
"storeId": "<string>",
"storeName": "<string>"
}
],
"dates": {
"fromDate": "2023-11-07T05:31:56Z",
"toDate": "2023-11-07T05:31:56Z"
},
"stockRooms": [
{
"stockRoomId": "<string>",
"stockRoomName": "<string>",
"totalAmount": 123,
"taxAmount": 123,
"netAmount": 123,
"count": 123,
"storesInfo": [
{
"storeId": "<string>",
"storeName": "<string>",
"totalAmount": 123,
"taxAmount": 123,
"netAmount": 123,
"count": 123,
"accountingMovements": [
{
"accountingmovementId": "<string>",
"totalAmount": 123,
"netAmount": 123,
"taxAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"quantity": 123,
"unitNetCost": 123,
"paidAt": "2023-11-07T05:31:56Z",
"providerId": "<string>",
"invoiceId": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"issueDate": "2023-11-07T05:31:56Z",
"voidedAt": "2023-11-07T05:31:56Z",
"ingredientName": "<string>"
}
]
}
]
}
]
}
}Documentation Index
Fetch the complete documentation index at: https://docs.getjusto.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Example:
"2020-01-01T00:00:00.000Z"
Example:
"2020-01-01T00:00:00.000Z"
⌘I