📋 Endpoint Details
Method:
GET
Path:
/api/currency
Authentication:
Required - Include Authorization: Bearer <token> header
📥 Response Example
{
"success": true,
"message": "Currencies fetched successfully",
"data": [
{
"_id": "...",
"currencyName": "US Dollar",
"currencyCode": "USD",
"status": "active"
}
]
}
💡 Usage Tips
cURL Example:
curl -X GET \
http://localhost:3000/api/currency \
-H "Authorization: Bearer YOUR_TOKEN_HERE"