POST
/
v2
/
insurance_contracts
/
{id}
/
attachments
curl --request POST \
  --url https://thirdparty.qonto.com/v2/insurance_contracts/{id}/attachments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-Qonto-Idempotency-Key: <x-qonto-idempotency-key>' \
  --form 'name=Contract Axa' \
  --form type=contract
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Contract Axa",
  "type": "contract"
}

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-Staging-Token
string

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

X-Qonto-Idempotency-Key
string
required

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

Path Parameters

id
string
required

UUID of the insurance you are uploading the document for

Body

multipart/form-data
PDF file representing the document

The body is of type object.

Response

201
application/json
Returns the PDF document uploaded.

The response is of type object.