{
"name": "List Addresses",
"route": "GET /customer/address/:type?",
"description": "List customer addresses with optional type filtering (shipping or billing).",
"parameters": [
{
"name": "type",
"type": "string",
"description": "Optional. Can be 'shipping' or 'billing'",
"required": false
}
],
"body": null,
"response": {
"success": {
"code": 200,
"description": "Returns an array of address objects"
},
"error": [
{
"code": 400,
"description": "Bad Request - Invalid type parameter"
},
{
"code": 401,
"description": "Unauthorized - User is not authenticated"
},
{
"code": 403,
"description": "Forbidden - User does not have permission to access this resource"
}
]
},
"notes": [
"This endpoint requires authentication (InternalGuard and AuthorizationGuard).",
"If no type is specified, it defaults to 'shipping'."
]
}