ArticleDynamicStatuses
Article dynamic statuses track real-time availability of products at specific locations. Used to mark items as sold out, hidden, or disabled on kiosks and webshops.
Storage Location
{customer_id}-article_dynamic_status.jsonFields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique status record identifier. |
customer_id | integer | Yes | Reference to Customer. |
article_id | integer | Yes | Reference to Article. |
article_name | string | Yes | Article name (denormalized). |
installation_id | integer | Yes | Reference to Installation. |
installation_name | string | Yes | Installation name (denormalized). |
start_at | datetime | Yes | Status effective from. |
end_at | datetime | Yes | Status effective until. |
status | string | Yes | Availability status. |
message | string | No | Customer-facing message (e.g., "Sold out"). |
deleted | string | No | Soft-delete flag ("true" if record is deleted). |
Status Values
| Status | Description |
|---|---|
hidden | Article hidden from display (not shown on kiosk/webshop) |
disabled | Article visible but not orderable |
available | Article available for sale (default, usually no record needed) |
Example - Hidden Article
json
{
"id": "768490",
"customer_id": 10352,
"article_id": 584768,
"article_name": "Spesialmelk",
"installation_id": 15136,
"installation_name": "Kanelsnurren Østbanehallen",
"start_at": "2025-03-30T13:17:05",
"end_at": "2025-03-31T03:00:00",
"status": "hidden",
"message": "Sold out"
}Example - Disabled Article (Soft Deleted)
json
{
"id": "765675",
"customer_id": 10352,
"article_id": 584779,
"article_name": "Brus",
"installation_id": 15136,
"installation_name": "Kanelsnurren Østbanehallen",
"start_at": "2025-03-25T07:52:05",
"end_at": "2025-03-26T03:00:00",
"status": "disabled",
"message": "Sold out",
"deleted": "true"
}Example - Multiple Statuses
json
[
{
"id": "768490",
"customer_id": 10352,
"article_id": 584768,
"article_name": "Spesialmelk",
"installation_id": 15136,
"installation_name": "Kanelsnurren Østbanehallen",
"start_at": "2025-03-30T13:17:05",
"end_at": "2025-03-31T03:00:00",
"status": "hidden",
"message": "Sold out"
},
{
"id": "768537",
"customer_id": 10352,
"article_id": 584779,
"article_name": "Brus",
"installation_id": 15136,
"installation_name": "Kanelsnurren Østbanehallen",
"start_at": "2025-03-30T12:00:00",
"end_at": "2025-03-31T03:00:00",
"status": "disabled",
"message": "Sold out"
}
]Usage Notes
- Statuses are time-bounded with
start_atandend_attimestamps - Records with
deleted: "true"should be ignored - Installation-specific: allows different availability per location
- Commonly used for "86ing" items (kitchen term for running out)
Related Entities
- Customers - Parent customer/tenant
- Articles - Article reference
- Installations - Location where status applies