Subscription (v4)
A standing subscription (item or assortment box)
| # | Field | Type | Description |
|---|---|---|---|
| 0 | id | int | subscription record id |
| 1 | itemid | int | item id (positive) or negated abo-box id (negative for assortment subscriptions) |
| 2 | amount | double | ordered amount (1 for assortment boxes) |
| 3 | unit | string | unit name |
| 4 | start | date | subscription start date |
| 5 | end | date | subscription end date |
| 6 | period | int | delivery rhythm (e.g. 1=every delivery, 2=every other) |
| 7 | lastDelivery | date | date of last delivery generation |
| 8 | tourid | int | tour id (0 for all tours) |
| 9 | notes | string | subscription notes/hints (translatable) |
| 10 | state | string | subscription state |
| 11 | season | int | seasonal flag |
| 12 | mperiod | int | month-based rhythm (0 if week-based) |
| 13 | addressid | int | delivery address id (0 for default) |
Used in endpoints
- /api/client/addfavourite1
- /api/client/addpause2
- /api/client/addsubscription2
- /api/client/cancelorder7
- /api/client/changeorder8
- /api/client/changesubscription2
- /api/client/dropdeselected1
- /api/client/dropfavourite1
- /api/client/droppause2
- /api/client/dropsubscription2
- /api/client/neworder8
- /api/client/regorder2
- /api/client/settour5
- /api/dates13