Create an attachment
This operation allows you to upload and attach a document to a transaction.
Body
-
ID of the transaction the document will be attached to.
POST /v1/attachments
curl \
-X POST https://api.memo.bank/v1/attachments \
-H "Content-Type: multipart/form-data" \
-F "document=@file" \
-F "transaction_id=3439bd9a-077a-4c02-8bd7-f14eadf8975b"
Response examples (201)
{
"id": "db2b50c0-a943-4eb1-a69f-fa37f112daa8",
"transaction_id": "20588f37-0ca6-4abd-80ae-1964d601b516",
"filename": "document.pdf",
"size": 42,
"mime_type": "application/pdf",
"date": "2024-05-04T09:42:00+00:00",
"is_deleted": true
}