v2

latestOpenAPI 3.0.3raw.githubusercontent.com2025-01-245593419.2 KB
Attachments in Transactions

Upload attachment to a transaction

OAuth scope: attachment.write


Upload an attachment to a transaction


This endpoint allows you to upload an attachment to a transaction.

Inside Qonto, attachments are files uploaded onto transactions by users. Attachments typically correspond to the invoice or receipt, and are used to justify the transactions from a bookkeeping standpoint.

Probative attachment is another version of attachment, compliant with PAdES standard.

Important: for security reasons, the url you retrieve for each Attachment is only valid for 30 minutes. If you need to download the file after more than 30 minutes, you will need to perform another authenticated call in order to generate a new download URL.

<!-- theme: info -->

The uploaded file will be processed in the background. This means that the created attachment will not be visible immediately.

post/v2/transactions/{id}/attachments

Path parameters

idstring uuid required

Headers

X-Qonto-Idempotency-Keystring uuid

The API supports idempotency for safely retrying requests without accidentally performing the same operation twice.

X-Qonto-Staging-Tokenstring

Required only for Sandbox API requests; to get one, please submit the following form: https://getqonto.atlassian.net/servicedesk/customer/portal/5/group/47/create/143.

Response

accepts the file and returns a success status code