🛣️ Address routes
Address routes are SDK composers, not Express middleware. Mount them through the Address service.
Inventory
| Route | Method / protocol | Path | Schema | Validators | Success status |
|---|---|---|---|---|---|
findAddressRoute | GET / HTTP | /addresses | findAddressSchema | isAuthenticated() | 200 |
Details
findAddressRoute
Implementation
Endpoint: GET /addresses
Access: Authenticated by isAuthenticated().
Request: Required postalCode query parameter; see findAddressSchema.
Pipeline: Calls findAddress with context.findAddressDriver, query postalCode, and optional configuration.findAddressCache.
Success: 200 with the resolved address.
Failure: 404 when the postal code is not found; 500 for lookup service failure; authentication failures occur in validators first.View complete source