Archiving and blocking orders
Admin and TenantAdmin can archive, restore, block and unblock orders, and archive deliveries. These functions exist only in the API; the field app has no button for them.
| Method | Path | Roles | Description |
|---|---|---|---|
PATCH | /api/deliveries/{id}/archive | Admin, TenantAdmin | Archives a delivery. Safe to repeat. |
PATCH | /api/deliveries/{id}/unarchive | Admin, TenantAdmin | Restores an archived delivery. |
PATCH | /api/orders/{id}/archive | Admin, TenantAdmin | Archives an order. Safe to repeat. |
PATCH | /api/orders/{id}/block | Admin, TenantAdmin | Blocks an order so its status cannot change until it is unblocked. |
PATCH | /api/orders/{id}/unarchive | Admin, TenantAdmin | Restores an archived order. |
PATCH | /api/orders/{id}/unblock | Admin, TenantAdmin | Unblocks a blocked order. |