Invoices
Import a bank statement completely: expenses and invoices in one call
One upload, both halves of the bank statement. Outgoing debits go through the expense importer (/expenses/import) and incoming credits through the invoice importer (/invoices/import) — settling existing unpaid invoices first, then creating invoices for the revenue that has none. This is the endpoint to use for any bank file; the per-entity import endpoints remain available and unchanged. Each half runs independently, so a failure in one still returns the other, and both can be disabled per request.
post/statements/import
Request
- Base URLhttps://api.vocal.email/v1
- Auth
- API key in header X-API-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Response
Statement processed; returns a combined summary plus the full result of each half.
Changes
No recorded changes to this operation across all 5 revisions of this API.