Ingest upload into the books
ingest_uploadCommit a validated upload into the entity’s books. This is a TWO-CALL approval: if the upload has any warnings, or would permanently delete existing trial-balance rows for a period it covers, the first call writes NOTHING and refuses with every warning, the exact record counts, and a short-lived removal_token. Show your user every warning and both counts, get their explicit go-ahead, then resend the SAME call adding removal_token and removal_count exactly as returned. acknowledge_warnings is IGNORED on this connection — the token is the only acknowledgment, so sending it changes nothing. A clean, additive ingest needs no token and succeeds on the first call. Returns the ingestion outcome including any notices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | The upload session id returned by upload_trial_balance. | |
| removal_count | No | The exact removal count returned by the removal preview. | |
| removal_token | No | Only include the short-lived token returned by the removal preview for this exact upload. | |
| confirm_merges | No | ||
| acknowledge_warnings | No | ||
| acknowledged_state_digest | No | Browser/REST only, and IGNORED on the agent connection exactly as acknowledge_warnings is: the destroy_state_digest returned by the confirm-mapping step, resent unchanged so the server can prove the acknowledgment was given against the data that is still there. On this connection the removal_token already pins the rows at risk, so sending this changes nothing. |