Trigger Partner Weekly
Changed onPartner-network email sweep. Called DAILY at 15:00 UTC by workers/notification_scheduler.py (the route name predates the daily cadence and is kept so the scheduler, this route and the Actions workflow dropdown stay in step).
Unlike every other job here, this mails people who are NOT our users - partner shops - so it is gated by its own master switch (PARTNER_WEEKLY_EMAIL_ENABLED, default false). The scheduler calls this endpoint whether or not the switch is on; while off it returns skipped_disabled and sends nothing, which keeps "is it wired up?" separable from "is it sending?".
There is deliberately NO global once-per-day claim anymore. Who receives mail is decided per shop by the reminder cadence plus claim_partner_email (one atomic claim per shop, 2-day floor), so a sweep that crashes halfway loses nothing: the next call - same day or next - picks up the shops the first one never reached. A global claim would have burned the whole day on a partial run. That also retires the force flag this route used to take: there is no day-slot to bypass, and the per-shop floor must not be bypassable.
dry_run composes every email and reports what WOULD go out without claiming, stamping or sending - run it repeatedly while reviewing copy.
The response's unreachable list names every shop with outstanding RFQs that had neither an owner email nor a usable poc_email. Shops with a poc_email but no portal user are NOT in it: they get the setup escalation ("we sent you a request to quote, set up your shop to see it"), counted separately as sent_setup.
Request
- Base URLhttps://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Query parameters
Shop ID (if None, runs for every eligible shop)
Compose and report without touching SMTP
ISO timestamp to evaluate the cadence at (testing only; default now). Lets three weeks of reminder behaviour be replayed without waiting out real days.
Headers
Response
Successful Response
Changes
- info
endpoint added
- info