Base URL
All shipment endpoints are available at:Authentication
The API currently operates without authentication. In production environments, implement proper authentication mechanisms.
Available Endpoints
The Shipment Service provides comprehensive shipment management functionality:Shipment Operations
- POST /api/v1/envios - Create a new shipment
- GET /api/v1/envios/ - Get shipment by ID
- GET /api/v1/envios - List all shipments
- GET /api/v1/envios/seguimiento/ - Track shipment by tracking code
Status Management
- PUT /api/v1/envios/actualizar-estado - Update shipment status
- PUT /api/v1/envios//disponible - Mark shipment as available for pickup
- PUT /api/v1/envios//cancelar - Cancel a shipment
- GET /api/v1/envios/estado/ - Get shipments by status (paginated)
Package Operations
- POST /api/v1/envios/retirar - Process package pickup/delivery
- POST /api/v1/envios/asignar-placa - Assign vehicle plate to shipment
Client History
- GET /api/v1/envios/mis-envios - Get shipment history by client email
Shipment States
Shipments can have the following states:PENDIENTE- Initial state when shipment is createdEN_TRANSITO- Shipment is in transitDISPONIBLE- Shipment is available for pickup at destinationENTREGADO- Shipment has been deliveredCANCELADO- Shipment has been cancelled
Response Format
All endpoints return JSON responses. Successful operations return appropriate HTTP status codes:200 OK- Successful GET, PUT operations201 Created- Successful POST operations404 Not Found- Resource not found500 Internal Server Error- Server error