Skip to content

WasteReasons ​

Waste reasons define the categories used when registering product waste. Each customer configures their own set of waste reasons to track why products are discarded.

Storage Location ​

{customer_id}-waste_reason.json

Fields ​

FieldTypeRequiredDescription
idstringYesUnique waste reason identifier.
customer_idintegerYesReference to Customer.
namestringYesWaste reason name (displayed to users).
statusstringYesStatus: active or inactive.

Example ​

json
{
  "id": "6478",
  "customer_id": 10352,
  "name": "Slutt dag",
  "status": "active"
}

Example - Multiple Waste Reasons ​

json
[
  {
    "id": "8219",
    "customer_id": 10352,
    "name": "Intern rep.",
    "status": "active"
  },
  {
    "id": "6477",
    "customer_id": 10352,
    "name": "Ødelagt",
    "status": "active"
  },
  {
    "id": "6478",
    "customer_id": 10352,
    "name": "Slutt dag",
    "status": "active"
  },
  {
    "id": "6479",
    "customer_id": 10352,
    "name": "Utgått på dato",
    "status": "active"
  },
  {
    "id": "6480",
    "customer_id": 10352,
    "name": "Kundeklage",
    "status": "active"
  },
  {
    "id": "6481",
    "customer_id": 10352,
    "name": "Smaksprøve",
    "status": "active"
  }
]

Common Waste Reasons ​

NameDescription
Slutt dagEnd of day - products discarded at closing
ØdelagtDamaged - products broken or damaged
Utgått på datoExpired - past expiration/best-before date
KundeklageCustomer complaint - returned by customer
SmaksprøveTasting/sampling - used for product sampling
Intern rep.Internal repair/adjustment
  • Customers - Parent customer/tenant
  • ArticleWaste - Waste records reference waste reason via waste_reason_id

Technical documentation for partners and integrators