---
title: "Trigger Partner Weekly"
method: POST
path: "/api/v1/internal/partner-weekly"
tags: ["v1", "Internal"]
---

# Trigger Partner Weekly

`POST /api/v1/internal/partner-weekly`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/internal/partner-weekly`
- Auth: none declared

Partner-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`.

## Query parameters

- `shop_id` integer, nullable: Shop ID (if None, runs for every eligible shop)
- `dry_run` boolean: Compose and report without touching SMTP
- `as_of` string, nullable: 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

- `X-Internal-Key` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-26** `c6134c77cadc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/internal/partner-weekly/post.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
