v2

latestOpenAPI 3.0.3raw.githubusercontent.com2025-01-245593419.2 KB
Insurance Contracts

Upload a PDF document for a specific insurance contract

OAuth scope: insurance_contract.write


This endpoint allows you to upload a PDF file representing a document for a specific insurance contract.

post/v2/insurance_contracts/{id}/attachments

Path parameters

idstring required

UUID of the insurance you are uploading the document for

Headers

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.

X-Qonto-Idempotency-Keystring required

A unique key to ensure that the same request is not processed multiple times

Response

Attachment created successfully

idstring uuid

ID of the newly created attachment

namestring string

the name of the file

typestring string

type of the file

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Contract Axa",
  "type": "contract"
}