Skip to content

Hostel Cancellation ​

hostel.cancellation · every change is kept in the audit log · numbered HCN-{YYYY}-{#####}

Fields ​

Every record also has id, created_at and updated_at.

FieldLabelTypeRules
studentstudentlink → core.studentrequired
applicationapplicationlink → hostel.applicationrequired
hostelhostellink → hostel.hostelrequired
requested_byrequested byselectone of: Student, Office; default "Student"
reasonreasonlongtext
account_holder_nameaccount holder nametextpersonal data
bank_namebank nametext
branch_namebranch nametext
ifsc_codeifsc codetextmax 11 characters
account_noaccount notextpersonal data
refund_amountrefund amountmoney
refund_statusrefund statusselectone of: Not applicable, Pending, Refunded; default "Pending"
refund_daterefund datedate

Permissions ​

RoleCan
hostel:adminread, create, update, delete, import, export
hostel:wardenread, create, update — only rows in the user's scope (via hostel)
hostel:accountsread, update
hostel:studentread, create — only own rows (via student)

API ​

http
GET    /api/hostel/cancellation?<field>=<value>&limit=100&offset=0
POST   /api/hostel/cancellation
GET    /api/hostel/cancellation/:id
PATCH  /api/hostel/cancellation/:id
DELETE /api/hostel/cancellation/:id

Bulk import: GET /api/_import/hostel/cancellation/template (CSV template), then POST /api/_import/hostel/cancellation. See REST API.

Edulab Bench developer documentation