ArticleWaste
ArticleWaste is a collection containing waste actions performed on POS terminals and in Munu portal systems. Waste data is stored in daily JSON files organized by business date.
Storage Location
{customer_id}/article_waste/{year}/{month}/{yyyymmdd}.jsonFields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique waste record identifier. |
date | datetime | Yes | Date and time when waste was registered. |
customer_id | integer | Yes | Reference to Customer. |
article_id | integer | Yes | Reference to Article. |
article_name | string | Yes | Name of the article (denormalized). |
terminal_id | integer | Yes | Reference to Terminal where waste was registered. |
terminal_name | string | Yes | Name of terminal (denormalized). |
user_guid | guid | Yes | Reference to User who registered the waste. |
waste_reason_id | integer | Yes | Reference to WasteReason. |
waste_reason | string | Yes | Name of waste reason (denormalized). |
quantity | float | Yes | Quantity wasted. |
unit_net_price_high_tax | float | No | Unit net price at high tax rate. |
net_price_high_tax | float | No | Total net price at high tax rate. |
unit_net_price_medium_tax | float | No | Unit net price at medium tax rate. |
net_price_medium_tax | float | No | Total net price at medium tax rate. |
unit_gross_price_high_tax | float | No | Unit gross price at high tax rate. |
gross_price_high_tax | float | No | Total gross price at high tax rate. |
unit_gross_price_medium_tax | float | No | Unit gross price at medium tax rate. |
gross_price_medium_tax | float | No | Total gross price at medium tax rate. |
Price Fields
Waste records include pricing at multiple tax rates to accurately reflect the value of wasted items:
- High tax (25% in Norway): Used for non-food items
- Medium tax (15% in Norway): Used for food items
Both unit prices and total prices are provided for flexibility in reporting.
Example
json
{
"id": "3555906",
"date": "2026-01-20T16:51:29",
"customer_id": 10352,
"article_id": 643932,
"article_name": "Kanelsnurr",
"terminal_id": 26347,
"terminal_name": "BB Kanelsnurren Jar 01",
"user_guid": "1A10CB10F128E094E0630A01000ABB04",
"waste_reason_id": 6478,
"waste_reason": "Slutt dag",
"quantity": 8,
"unit_net_price_high_tax": 46.4,
"net_price_high_tax": 371.2,
"unit_net_price_medium_tax": 50.43,
"net_price_medium_tax": 403.44,
"unit_gross_price_high_tax": 58,
"gross_price_high_tax": 464,
"unit_gross_price_medium_tax": 58,
"gross_price_medium_tax": 464
}Example - Multiple Waste Records
json
[
{
"id": "3555906",
"date": "2026-01-20T16:51:29",
"customer_id": 10352,
"article_id": 643932,
"article_name": "Kanelsnurr",
"terminal_id": 26347,
"terminal_name": "BB Kanelsnurren Jar 01",
"user_guid": "1A10CB10F128E094E0630A01000ABB04",
"waste_reason_id": 6478,
"waste_reason": "Slutt dag",
"quantity": 8
},
{
"id": "3555916",
"date": "2026-01-20T16:51:32",
"customer_id": 10352,
"article_id": 584739,
"article_name": "4-kornbrød",
"terminal_id": 26347,
"terminal_name": "BB Kanelsnurren Jar 01",
"user_guid": "1A10CB10F128E094E0630A01000ABB04",
"waste_reason_id": 6478,
"waste_reason": "Slutt dag",
"quantity": 2
}
]Common Waste Reasons
| ID | Name | Description |
|---|---|---|
| - | Slutt dag | End of day waste |
| - | Ødelagt | Damaged/broken |
| - | Utgått på dato | Past expiration date |
| - | Kundeklage | Customer complaint |
| - | Smaksprøve | Tasting/sampling |
| - | Intern rep. | Internal repair/adjustment |
Note: Waste reason IDs are customer-specific. See WasteReasons for the customer's configured reasons.
Related Entities
- Articles - Product reference
- Terminals - Terminal where waste was registered
- Users - User who registered waste
- WasteReasons - Waste reason configuration
- Customers - Parent customer/tenant