JPPL Orchid Prism Common API
Shared background jobs for Orchid Prism, such as auto-approving estimates and daily report mails.
Status
Checking...
Database: -
Auto-approve estimates
Checks every estimate in the SENT status whose client has auto-convert estimate to booking turned on. An estimate is approved once the client's production wait period has passed since it was sent and the payment terms, advance and credit checks pass. Everything else is listed as skipped with the reason.
Send incoming payment report
Emails the incoming payments of the chosen day (same columns as the portal's Incoming Payment Report) with the Excel file attached, to the IncomingPaymentReport recipients in appsettings. Leave the date empty to use the default day.
Endpoints
- GET / POST
/api/estimates/auto-approve
Scheduler: approves all due auto-convert estimates. GET does the same as POST. - GET / POST
/api/reports/incoming-payments/send-daily?date=yyyy-MM-dd
Scheduler: emails the day's incoming payments with the Excel attached. Without date the call date plus DayOffset is used. - GET / POST
/api/report-subscriptions/run-due
Scheduler (every 15 minutes is fine): emails every report subscription that is due, as Excel and/or PDF. A day is sent once; a missed weekly or monthly day is caught up for a few days. - POST
/api/report-subscriptions/{id}/send-now?userId=
The portal's "Send report now" button: emails that one subscription immediately, whatever its schedule. - GET
/health
Health check and database connection.