Skip to main content
POST
/
v2
/
client_invoices
/
uploads
Create a client invoice upload
curl --request POST \
  --url https://thirdparty.qonto.com/v2/client_invoices/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form client_invoices_upload='@example-file'
{
  "client_invoice_upload": {
    "id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
    "organization_id": "9f8e7d6c-5b4a-3c2d-1e0f-1a2b3c4d5e6f",
    "filename": "invoice_document.pdf",
    "content_type": "application/pdf",
    "file_size": 524288,
    "url": "https://qonto-uploads.s3.eu-central-1.amazonaws.com/uploads/4d5418bb-bd0d-4df4-865c-c07afab8bb48/invoice_document.pdf",
    "created_at": "2022-03-04T17:58:30+02:00",
    "updated_at": "2022-03-04T17:58:30+02:00"
  }
}

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.

Body

multipart/form-data
client_invoices_upload
file
required

The file to upload. Supported formats:

  • PDF (.pdf)
  • JPEG (.jpeg, .jpg)
  • PNG (.png)

Response

Returns the client invoice upload created.

client_invoice_upload
object
required

Represents a file upload that can be attached to client invoices or quotes.