Skip to main content

Additional Resources

Key Files for Reference

  • ondeliv-backend.js - Main application entry point
  • app/models/index.js - Database model aggregation
  • app/middleware/authJwt.js - Authentication logic
  • app/utility/check-fee.util.js - Fee calculation logic
  • app/utility/waybill.util.js - Waybill utilities

Third-Party Documentation

  1. Start with ondeliv-backend.js to understand application initialization
  2. Review app/routes/auth.routes.js for authentication flow
  3. Study app/controllers/waybill/create-waybill.controller.js for core business logic
  4. Examine app/models/scans.model.js for tracking data structure
  5. Check app/controllers/3p/ for courier integration patterns

Appendix

Status Code Reference

CodeDescriptionUsage
BKDBookedInitial waybill creation
PKDPackedPackage prepared for shipping
HNDHandoverTransferred to courier/hub
DPTDepartureLeft origin hub
TRSTransitIn transit between hubs
ARVArrivalArrived at destination hub
RCVReceivingReceived at DC
OFDOut for DeliveryWith delivery driver
DLVDeliveredSuccessfully delivered
PRBProblemIssue encountered
RTNReturnPackage being returned
CNLCancelShipment cancelled

Service Type Codes

CodeDescription
REGRegular Service
EXPExpress Service
CARGOCargo Service
SAMESame Day Delivery
NEXTNext Day Delivery

Problem Type Codes

CodeDescription
DMGDamaged
LSTLost
RFSRefused by Recipient
INCIncomplete Address
CLOClosed/Not Available
WTHWeather Issues
OTHOther