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: Head 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.
Response Headers
Authorization or validation error. Occurs when the user lacks permissions or the data is invalid.
Response Headers
Address not found