The structure is good: small functions, parameterized SQL, `newline=""` on the CSV, `raise_for_status()`, and the connection closed in `finally`. Two things need fixing before you merge, and both are small. I only read the file. I haven't run it or looked at `test_export_job.py`.

**High (fix before merge)**

1. **Failures are swallowed (`export_job.py:56-57`).** `run()` catches every exception, logs one line, and exits 0. Example: the finance endpoint returns a 500 at 02:00. The CSV is written, the upload fails, cron sees success, and nobody finds out until finance asks where the file is. Fix: re-raise after logging, or call `sys.exit(1)`. Use `log.exception` so the traceback is kept.
2. **Customer emails are written to the logs (`export_job.py:52`).** The info line logs `[row[1] for row in rows]`, which is every customer's email address every night, in a log file that is probably retained and widely readable. Log the count and the day only.

**Medium**

3. **No timeout on `requests.post` (`export_job.py:42`).** If the endpoint hangs, the job hangs forever and the next night's run stacks on top of it. Add `timeout=(5, 60)` or similar.
4. **Money is converted with float division (`export_job.py:37`).** `amount_cents / 100` gives `10.0` for 1000 cents and `0.1` for 10, so the formatting is inconsistent. Float rounding is also a risk in a finance file. Use `Decimal(amount_cents) / 100` formatted to 2 places, or write `amount_cents` as-is and rename the column.
5. **The day boundary depends on timezones (`export_job.py:47` and `:28`).** `date.today()` uses the cron host's timezone. The query compares `paid_at` to bare dates, so Postgres applies its session timezone. If those two differ, or `paid_at` is `timestamptz`, invoices paid near midnight land in the wrong day's file. Pick one timezone (probably UTC), make it explicit in both places, and add a test for an invoice at 23:59 and one at 00:00.
6. **The tests are thin.** The docstring says the tests cover "CSV header and one row". Missing cases:
   - an empty day
   - the day boundaries
   - an upload failure
   - amount formatting
   - the failure path from item 1
   
   `fetch_invoices`, `upload` and `run` are untested. Your own standards require the failure cases.
7. **A rerun uploads a duplicate.** If you rerun after a partial failure, the file is overwritten and uploaded again with nothing to deduplicate it. This depends on whether finance's endpoint is idempotent. Confirm that, or document it. Nothing retries, so a transient network blip means a manual rerun, and `run()` has no way to take a day argument for that.

**Low**

8. **`FINANCE_UPLOAD_URL` is read at import time (`export_job.py:16`).** A missing variable raises `KeyError` on import, which makes the module awkward to test. Read it inside `run()` or pass it in.
9. **No logging configuration.** Nothing calls `logging.basicConfig`, so under cron the `log.info` lines may never appear.
10. **The export directory isn't managed.** `EXPORT_DIR` is hardcoded and never created. The files contain customer emails, are written with default permissions, and are never cleaned up. Consider `os.makedirs`, mode `0o600`, and a retention policy.
11. **CSV formula injection.** A `customer_email` starting with `=`, `+`, `-` or `@` would be evaluated as a formula if finance opens the file in Excel. The risk is low for emails, but it is cheap to guard against.
12. **`paid_at.isoformat()` assumes `paid_at` is never NULL.** That is probably true for `PAID` rows, but the code doesn't enforce it, so one bad row would fail the whole export.
13. **The file write isn't atomic.** A crash mid-write leaves a partial CSV at the final path. Write to a temp file and `os.replace` it.
14. **Mixing `with conn.cursor()` and a manual `conn.close()` is slightly inconsistent.** It is harmless, but you could use `contextlib.closing`.

Items 1 and 2 are each a few lines. With those two fixed, plus the timeout (3) and a couple of tests for the failure path and the day boundaries, this is safe to merge. The rest can go in follow-up tickets. I'd note items 4, 5 and 7 explicitly as known debt if you don't fix them tomorrow.

VERDICT: READY WITH CHANGES
