Bank statements
Start upload session
Changed onUse the Start upload session endpoint to initiate a bank statement upload session for a given company.
A session is a one-time process that enables you to upload bank statements to Codat. It will time out after 90 minutes if no data is uploaded.
You can only have one active session per data type at a time. You can complete or cancel a session using the End upload session endpoint.
post/companies/{companyId}/connections/{connectionId}/bankStatements/upload/startSession
Request
- Base URLhttps://api.codat.io
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Success
Example response
{
"id": "97d60846-f07a-4d42-b5a0-0bdcc6ebf56b",
"companyId": "4645bd78-8988-45bc-ac9e-67ba5df6e4e5",
"connectionId": "51baa045-4836-4317-a42e-3542e991e581",
"dataType": "invoices",
"status": "Initial",
"statusDescription": "Paused until 2022-10-23T00:00:00.000Z",
"requested": "2022-11-14T11:18:37.2798351Z",
"progress": 10,
"isCompleted": false,
"isErrored": false
}Changes
- info
removed the
Routingenum value from theresponse property for the response status - info
removed the
RoutingErrorenum value from theresponse property for the response status
- info
- info
endpoint added
- info