POST /api/currency/add 🔒 Auth Required

Create a new currency lookup entry

📋 Endpoint Details

Method: POST
Path: /api/currency/add
Authentication: Required - Include Authorization: Bearer <token> header

📤 Request Body

{ "currencyName": "string (required)", "currencyCode": "string (required, 3 letters, e.g., USD)", "status": "string (optional, 'active' | 'inactive')" }

📥 Response Example

{ "success": true, "message": "Currency created successfully", "data": { "_id": "...", "currencyName": "US Dollar", "currencyCode": "USD", "status": "active" } }

💡 Usage Tips

cURL Example:

curl -X POST \ http://localhost:3000/api/currency/add \ -H "Content-Type: application/json" \ -d '{ "currencyName": "string (required)", "currencyCode": "string (required, 3 letters, e.g., USD)", "status": "string (optional, 'active' | 'inactive')" }' \ -H "Authorization: Bearer YOUR_TOKEN_HERE"
← Back to Home