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

Request

  • Base URL
    https://thirdparty.qonto.com
  • Auth
    OAuth 2
    Authorization codehttps://oauth.qonto.com/oauth2/auth
    Token URLhttps://oauth.qonto.com/oauth2/token
    Scopesinsurance_contract.write

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

Request body multipart/form-data

filestring binary required

The PDF file to upload

namestring string required

the name of the file

typestring string required

type of the file, for example - contract, statement

Example request

{
  "name": "Contract Axa",
  "type": "contract"
}

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"
}

Changes

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