Get full details of an address
GET/truckers/address/:id
Returns all details of a specific address.
Validations:
- The ID must correspond to an existing address
- Only the address owner can view its details
- Requires valid JWT authentication
Response example:
{
_id: 507f1f77bcf86cd799439011,
name: Main Office,
street: Calle Mayor 10,
city: Madrid,
state: Madrid,
country: Spain,
postalCode: 28013,
location: {
lat: 40.4168,
lng: -3.7038
},
createdAt: 2025-01-15T10:30:00.000Z,
updatedAt: 2025-01-15T10:30:00.000Z
}
Request
Responses
- 200
- 403
- 404
Successful response containing the complete data of an address. Includes all fields from the Address schema.
Error retrieving details. Possible causes:
- Address not found
- You don't have permission to view this address
Address not found