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
The type of document. Supported types are jpg
, png
, and pdf
.
The document file.
The name of the document.
Response
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).
The name of the file including its extension.
The type of document.
RECEIPT
Optional unique identifier for the file, can be null if not specified.