Audit Job Status
audit_statusCheck whether a creditor-file audit job is paid and get the report download link once payment is confirmed. Pass the job id and the Stripe session id from the checkout success redirect to retrieve the full report immediately.
Instructions
Check the status of a creditor-file audit job created by audit_creditor_file: whether it is paid, and the download link once it is. USE WHEN: following up on a job id after a human may have paid through the Checkout URL, to learn whether the full report is ready. RETURNS: the same free-preview fields as audit_creditor_file, plus paid, paid_at, and download — a GET /v1/audit/report/{job}?session_id=... path, non-null only once paid AND session_id matches the paying session. Pass the session_id from the Checkout URL's success redirect (its session_id= query parameter) so a just-completed payment is confirmed immediately instead of waiting for the webhook. COST: free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | The job id returned by audit_creditor_file. | |
| session_id | No | The Stripe Checkout session id, from the success redirect (?session_id=...). Confirms payment immediately when the webhook has not landed yet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | ||
| lang | No | ||
| paid | Yes | ||
| rows | No | ||
| tier | No | ||
| price | No | ||
| paid_at | No | ||
| preview | No | ||
| summary | No | ||
| checkout | No | ||
| currency | No | ||
| download | No | GET path for the .xlsx report. Non-null only when paid and session_id matched. | |
| retention | No | ||
| expires_at | No |