Check Order Complete
smi_check_order_completeChecks the status of a deep report or export record (by its record id, e.g. from smi_create_deep_report draftIds). Returns state = ready | in_progress | draft | failed | unknown and a terminal flag. Poll with bounded attempts and backoff while in_progress; stop as soon as terminal is true (ready or failed) — a failed record will never become ready. Also stop when state is draft: the record was never submitted, so it will not progress until smi_submit_deep_reports or smi_submit_exports is called on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Deep-report or export record id — the same id returned as draftIds by smi_create_deep_report and accepted by fetch. There is no separate order-level id. Product-prefixed ids are accepted and stripped: RB = Research Bundle, DR = Deep Report (both orderType "deep_report"), EX = Export (orderType "export"). | |
| orderType | Yes | Whether the order is a deep report or an export |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ready | Yes | ||
| state | Yes | ||
| status | Yes | ||
| orderId | Yes | ||
| terminal | Yes | ||
| orderType | Yes |