Check if purchase allowed
Check if purchase allowed
GET /selling/api/loans/purchase/purchaseAllowed
Check if loan purchasing is allowed on a specific date based on system configuration and business rules (e.g., fed days, blackout periods, system maintenance).
Query parameters
Parameter | Type | Required | Description |
|---|---|---|---|
date | String | Yes | Date to check in YYYY-MM-DD format (e.g., 2026-08-05) |
Response
200 OK - Returns a boolean
true
- true - Purchases are allowed on this date
- false - Purchases are not allowed on this date
Example request
GET /selling/api/loans/purchase/purchaseAllowed?date=2026-08-05
Use cases
- Pre-purchase validation: Verify the date is valid before attempting purchase
- Calendar planning: Check multiple dates to plan purchase schedules
- UI validation: Disable purchase buttons for invalid dates
- Date picker restrictions: Only allow selection of valid purchase dates