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