POST
/
v2
/
transactions
/
{id}
/
attachments
curl --request POST \
  --url https://thirdparty.qonto.com/v2/transactions/{id}/attachments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<% multipart/form-data file data %>'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authorization header: Bearer <token>, where <token> is the access token received from the authorization server at the end of the OAuth 2.0 flow.

Headers

X-Qonto-Idempotency-Key
string

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

Example:

"4668aec5-4e9c-4a41-b6d1-fc3c13c70dd5"

X-Qonto-Staging-Token
string

Required only for Sandbox API requests; to get one, please sign up to the Developer Portal.

Path Parameters

id
string
required
Example:

"2751a41c-c17f-43f7-bd18-04efa6cd8e30"

Body

multipart/form-data
You have to specify multipart form data in order to attach the file to the request. When using `curl` it will look like that: ``` curl --request POST \ --url https://thirdparty.qonto.com/v2/transactions/{id}/attachments \ -H "Content-Type: multipart/form-data" \ -H "Authorization: {Auth}" \ -F file="@path/to/a/file.jpg" ```

The body is of type object.

Response

200

Accepts the file and returns a success status code.