Upload bank statement


post https://api.trivi.com/v2/bankaccounts/{bankAccountId}/statements

Uploads a new bank statement. Use the multipart request.

Body example:

Content-Type: multipart/related; boundary=boundary123
Content-Length: [NUMBER_OF_BYTES_IN_ENTIRE_REQUEST_BODY]

--boundary123
Content-Type: application/json; charset=UTF-8

{
    "name": "Document Name.pdf"
}

--boundary123
Content-Type: application/pdf

[PDF_DATA]
--boundary123--

Maximum file size is 20 MB

Path Variables
bankAccountId
integer   required
Format int64
Body
Statement
id
number   optional

Only in GET

Format int64
name
string   optional
authorName
string   optional

Only in GET

uploaded
string   optional

Only in GET

Format date-time
fileIds
Array of Object   optional

Only in GET

bankAccountId
number   optional

Only in GET

Format int64
processingState
number   optional

Only in GET 0 - Not Processed, 1 - Processed, 2 - Error, 3 - In Progress

processingMessage
string   optional

Only in GET

Statement
id
number   optional

Only in GET

Format int64
name
string   optional
authorName
string   optional

Only in GET

uploaded
string   optional

Only in GET

Format date-time
fileIds
Array of Object   optional

Only in GET

bankAccountId
number   optional

Only in GET

Format int64
processingState
number   optional

Only in GET 0 - Not Processed, 1 - Processed, 2 - Error, 3 - In Progress

processingMessage
string   optional

Only in GET

ValidationError
code
string   optional
message
string   optional
params
object   optional
fieldsAffected
Array of ValidationFieldError   optional
ValidationFieldError
name
string   optional
message
string   optional
code
string   optional
params
object   optional
Object