Skip to main content
POST
Upload transaction document

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to multipart/form-data.

Path Parameters

businessId
string
required

The UUID of the business to upload the document for.

transactionId
string
required

The UUID of the transaction to associate this document with.

Body

multipart/form-data
documentType
enum<string>
required

The type of document being uploaded.

Available options:
RECEIPT,
UNSTRUCTURED_BOOKKEEPING_CONTEXT,
OTHER
file
file
required

The document file. For RECEIPT documents, only images (jpg, png) and PDFs are supported.

description
string

Optional description for the document.

Response

Document uploaded successfully.

data
object
required

Contains metadata about a file, including its type, name, and the category of document it represents.