Upload transaction document
Upload a document for a transaction, such as a receipt or invoice. Images (jpg & png) and PDFs are supported. The document will be associated with the provided transaction id. This functionality is built into Layer’s <BankTransactions> embedded component, but can be used directly if needed. This endpoint expects a multipart upload.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Content-Type must be set to multipart/form-data.
Path Parameters
The UUID of the business to upload the document for.
The UUID of the transaction to associate this document with.
Body
Response
Document uploaded successfully.
Contains metadata about a file, including its type, name, and the category of document it represents.
The type of the file (e.g., PDF, DOCX, JPEG).
"JPEG"
The name of the file including its extension.
"exampleFile.jpg"
The type of document.
RECEIPT, UNSTRUCTURED_BOOKKEEPING_CONTEXT, OTHER Optional unique identifier for the file, can be null if not specified.