Skip to main content

Retrieve a bank statement

GET 

/api/v1/bank_statements/:id

Returns one statement. This is the poll target after an upload or a retry, and state is the field to read. started_at and finished_at are the extraction's own clocks now: a processing file publishes a start and no end, and both stay null on a file no pass has claimed.

A pending that does not move is not necessarily working. pending means stored and not yet reviewable, and a file sits there whether its extraction was queued, was refused at upload (meta.unqueued_statement_ids on the 202), or was never going to run because the company has AI extraction switched off. processing is the state that does mean work is running. So bound your polling: a statement that stays pending is one to re-drive with POST /bank_statements/{id}/retry, not one to keep waiting on - when its retryable is true. A pending with retryable false belongs to a company with AI extraction switched off: the retry is refused with operation_failed until the setting is turned on in Scribee.

Request​

Responses​

The bank statement.