Attachments

Upload attachment

OAuth scope: attachment.write


Upload an attachment


This endpoint allows you to upload an attachment to be then linked to an external transfer. Valid files are: JPEG, PNG and PDFs. The endpoint is particularly useful when you want to link an attachment to an external transfer via POST /v2/external_transfers and POST /v2/external_transfers/checkout.

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.

post/v2/attachments

Request

  • Base URL
    https://thirdparty.qonto.com
  • Auth
    • OAuth 2
      Authorization codehttps://oauth.qonto.com/oauth2/auth
      Token URLhttps://oauth.qonto.com/oauth2/token
      Scopesattachment.write
    • or API key in header Authorization

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.

Request body application/x-www-form-urlencoded

filestring

Response

returns an attachment ID

Changes

No recorded changes to this operation across all 2 revisions of this API.