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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Content-Type must be set to multipart/form-data
The UUID of the business to upload the document for
The UUID of the transaction to associate this document with
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 Optional unique identifier for the file, can be null if not specified.