Attach scan


post https://api.trivi.com/v2/accountingdocuments/{accountingDocumentId}/scans

Uploads a new scan. 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
{
    name: "filename.pdf"
}

--boundary123
Content-Type: application/pdf

[PDF_DATA]
--boundary123--

Maximum file size is 20 MB

Path Variables
accountingDocumentId
integer   required
Format int64
Body
Object
Object
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