cURL
curl --request GET \ --url https://api.example.com/api/settings \ --header 'Content-Type: application/json' \ --data ' { "companySettings": {}, "maintenanceMode": {}, "loanSettings": {}, "enabled": true, "message": "<string>", "allowedUsers": [ {} ] } '
{ "companySettings": { "companyName": "<string>", "address": "<string>", "phone": "<string>", "email": "<string>", "logo": "<string>" }, "maintenanceMode": { "enabled": true, "message": "<string>", "allowedUsers": [ {} ] }, "loanSettings": { "defaultLateFeePercentage": 123, "gracePeriodDays": 123, "autoApprovalThreshold": 123 } }
Show Company Settings
Show Maintenance Mode Settings
Show Loan Settings
curl -X GET "https://api.millenium-potters.com/api/settings" \ -H "Authorization: Bearer YOUR_TOKEN"
{ "companySettings": { "companyName": "Millenium Potters Cooperative", "address": "123 Main Street, Lagos, Nigeria", "phone": "+234-800-POTTER", "email": "[email protected]", "logo": "/uploads/company/logo.png" }, "maintenanceMode": { "enabled": false, "message": "System maintenance in progress. Please try again later.", "allowedUsers": [] }, "loanSettings": { "defaultLateFeePercentage": 5.0, "gracePeriodDays": 3, "autoApprovalThreshold": 0 } }
curl -X PUT "https://api.millenium-potters.com/api/settings" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "companySettings": { "companyName": "Millenium Potters Cooperative Ltd", "phone": "+234-800-NEW-NUMBER" }, "loanSettings": { "gracePeriodDays": 5 } }'
{ "enabled": false, "message": "System maintenance in progress" }
401 Unauthorized
403 Forbidden
400 Bad Request