Documentation
Backend API Reference
Digital Vehicle Control Form (VCF) System for PT. Industri Nabati Lestari. Standardized endpoints for logistics tracking and security inspection.
Base API URL
http://103.193.145.61:3007/api
Environment
● Production ReadyAuthentication
Secure access using Laravel Sanctum tokens. Obtain a token via the login endpoint and include it in all subsequent requests.
Authorization: Bearer 1|AbCdEfG12345...
VCF Step 1: Main Gate
POST
/vcf
Petugas
Register new vehicle entry
Request Body Parameters
| Field | Type | Description |
|---|---|---|
| tanggal* | date | YYYY-MM-DD |
| logistik_id* | int | ID from master logistik |
| produk_id* | int | ID from master produk |
| tipe_kegiatan* | string | loading_lokal, loading_export, etc. |
| no_polisi* | string | Vehicle plate number |
| jam_masuk* | string | HH:mm (24h format) |
| kelengkapan_supir | array | Array of {item_id, nilai, keterangan} |
Response 201
{
"message": "VCF Bagian 1 berhasil disimpan.",
"data": { "id": 1, "nomor_urut": "00001", "status": "bagian1_selesai", ... }
}
GET
/vcf/next-number
Get predicted next sequence number
Rejection Mechanism
Security or Weighbridge officers can reject a VCF if discrepancies are found during inspection.
POST
/vcf/{id}/reject
Authorized User
Reject a VCF with a reason
Payload
{ "catatan_reject": "Ban kendaraan gundul/tidak layak." }
Master: Users
GET
/master/users
Admin
Query Filters
Supports search (nama/username) and role (admin/petugas).