List a statement's extracted lines
GET/api/v1/bank_statements/:id/lines
Returns the lines the extraction read, in statement order (operation_date ascending, then id) - the order a statement is read in. This is what an operator reviews before the figures are committed.
Request
Responses
- 200
- 400
- 401
- 403
- 404
The statement's lines, in statement order.
The page query parameter is not an integer greater than or equal to 1, or it names a page beyond the statement's last one.
The request carries no bearer token, or one that is invalid or expired. doorkeeper_authorize! is the first gate of the chain, so this is answered before the workspace, the company, the feature flag and the statement are ever resolved - and before any Idempotency-Key is claimed.
The token may not perform this call. On a GET the scope is read, which every token holds, so what answers here is one of the other three gates of the shared chain: the workspace GRANT, the bank_reconciliation FEATURE FLAG, or the action's own Pundit check. All render the same body, so message is what distinguishes them. The example below is refused by the flag.
No statement with this id is reachable by the token's grants. One belonging to another workspace answers the same way, so the response cannot be used to probe for one.