Skip to main content
POST
/
v2
/
client_invoices
/
bulk
Import client invoices in bulk
curl --request POST \
  --url https://thirdparty.qonto.com/v2/client_invoices/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'client_invoices=<string>' \
  --form client_invoices.items='@example-file'
{
  "client_invoices": [
    {
      "invoice_id": "019c688e-4adc-795b-b0fb-c9be149262dd",
      "file_name": "invoice1.pdf"
    },
    {
      "invoice_id": "019c6890-1f2a-7b3c-9d4e-2a1b3c4d5e6f",
      "file_name": "invoice2.pdf"
    }
  ]
}

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

You have to specify multipart form data in order to attach the files to the request. Repeat the client_invoices field once per file. When using curl it will look like this:

curl --location --request POST 'https://thirdparty.qonto.com/v2/client_invoices/bulk' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--form 'client_invoices=@"/path/to/invoice1.pdf"' \
--form 'client_invoices=@"/path/to/invoice2.pdf"'
client_invoices
file[]
required

The invoice files to import (repeat the client_invoices field once per file). Supported formats:

  • PDF (.pdf), including Factur-X
  • JPEG (.jpeg, .jpg)
  • PNG (.png)

Each file must not exceed 5 MB, and the whole request must not exceed 15 MB.

Maximum array length: 5

Response

Returns the list of successfully imported client invoices.

client_invoices
object[]
required