Appearance
Delivery / Dispatch
sfc.delivery · every change is kept in the audit log
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
application | application | link → sfc.application | required |
student | student | link → core.student | required |
recipient | recipient | link → sfc.recipient | |
mode | mode | select | required; one of: Digital, Courier, Pickup |
status | status | select | one of: Ready, Dispatched, Delivered, Collected, Emailed, Failed; default "Ready" |
courier_name | courier name | text | |
tracking_no | tracking no | text | |
barcode | barcode | text | |
weight | weight | text | |
addressee_name | addressee name | text | personal data |
address | address | longtext | personal data |
city | city | text | |
district | district | text | |
state | state | text | |
pincode | pincode | text | |
email | personal data | ||
mobile | mobile | phone | personal data |
sender_mobile | sender mobile | phone | personal data |
collector_name | collector name | text | personal data |
collector_id_document | collector id document | file | personal data |
dispatched_at | dispatched at | datetime | |
delivered_at | delivered at | datetime |
Permissions
| Role | Can |
|---|---|
sfc:admin | read, create, update, delete |
sfc:dispatcher | read, create, update |
sfc:printer | read |
sfc:verifier | read |
sfc:student | read — only own rows (via student) |
API
http
GET /api/sfc/delivery?<field>=<value>&limit=100&offset=0
POST /api/sfc/delivery
GET /api/sfc/delivery/:id
PATCH /api/sfc/delivery/:id
DELETE /api/sfc/delivery/:id