Request a bank statement upload session
Asks for a one-time upload slot for a bank statement belonging to this account. Upload the file to the returned endpoint, then pass the session id to the connect endpoint as statementUploadSessionIds. Statements may be images or PDFs of up to 20 MB.
Authorization
AuthorizationstringrequiredPath parameters
bankAccountIdstringrequiredThe bank account the statement belongs to. A Snowflake id sent as a decimal string.
Body
application/json
fileNamestringrequiredThe name to store the statement under. 1 to 250 characters.
fileSizeintegerrequiredThe size of the file in bytes. Statements are limited to 20 MB.
contentTypestringrequiredThe file's media type. Statements must be an image type or application/pdf.
Response
200 · The upload slot. Post the file to `endpoint` with `method`, including every entry in `fields` as a form field, before the session expires.
sessionIdstringThe session. Pass it to the connect endpoint as one of statementUploadSessionIds once the file has been uploaded.
endpointstringThe URL to upload the file to.
methodstringThe HTTP method to upload with.
fieldsobjectForm fields that must accompany the upload, as a name-to-value map. Send them exactly as given.
expiresstring · date-timeWhen the slot stops accepting the upload, in the company's timezone.