API Reference
Trip management URL patterns for crelio-app — b2b-logistics
👤 Utsav Katiyar📅 Updated: Apr 7, 2026🏷️ feature
API Reference (crelio-app trip management)
Prefix: api-v3/trip-management/<trip_type>/
For B2B Collection, trip_type = b2b-logistics.
Trips
From admin/trip_management/urls/trip_urls.py (relative to …/b2b-logistics/trips/):
| Method | Pattern | Notes |
|---|---|---|
| GET | list | Trip list |
| GET | <trip_id>/details | Trip detail |
| POST | new | Create trip |
| POST | new/bulk | Create scheduled series |
| PUT | <trip_id>/update | Update trip |
| PUT | <trip_id>/update/bulk | Update series |
| PUT | <trip_id>/<status> | Status change (e.g. cancelled) |
| GET | <trip_id>/<visiting_person_id>/trail | Trail |
| POST | <trip_id>/calculate-distance | Internal distance webhook |
Nested: location/<trip_location_id>/details → trip stop detail.
Routes
From route_urls.py (relative to …/b2b-logistics/routes/):
| Method | Pattern |
|---|---|
| GET | list |
| GET | <route_id>/details |
| POST | new |
| PUT | <route_id>/update |
| PATCH | <route_id>/<action> |
Locations (stops)
From location_urls.py (relative to …/b2b-logistics/location/):
| Method | Pattern |
|---|---|
| GET | list |
| GET | <location_id>/details |
| POST | new |
| PUT | <location_id>/update |
| PATCH | <location_id>/<action> |