🔐 API Key Authentication

All endpoints require API key authentication using the native rest_framework_api_key library.

Use the "Authorize" button in Swagger UI to set your API key.

📋 How to Use API Key Authentication
  1. Get your API key: Create an API key using the Django admin interface or management commands
  2. Click "Authorize" button: Look for the 🔒 button in the Swagger UI
  3. Enter your API key: Use format: Api-Key YOUR_PREFIX.YOUR_KEY
  4. Test endpoints: All endpoints will now use your API key for authentication
🔧 API Key Format

Your API key should be in the format: Api-Key prefix.key

Example: Api-Key tF2GH4L8.6HvX3lb6jm8LrhVEWVDR9Qic8X1ZD5Zk

💡 Testing with curl

You can also test endpoints directly with curl:

curl -X POST "http://localhost:8000/ecollect/api/GetRecordsForPayment" \
  -H "Authorization: Api-Key YOUR_PREFIX.YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"your": "data"}'