curl --request POST \
--url https://thirdparty.qonto.com/v2/supplier_invoices/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'supplier_invoices={
"file": "<string>",
"idempotency_key": "<string>"
}' \
--form source=pay_by_invoice \
--form 'meta={
"integration_type": "dropbox",
"connector": "grover"
}' \
--form skip_attachment_matcher=false \
--form supplier_invoices.items.0.file='@example-file'{
"supplier_invoices": [
{
"id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"is_einvoice": false,
"has_discrepancies": false,
"organization_id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"file_name": "my-invoice.pdf",
"status": "to_review",
"source_type": "email",
"created_at": "2022-03-04T17:58:30+02:00",
"updated_at": "2022-03-04T17:58:30+02:00",
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"declined_note": "",
"e_invoice_type": "zugferd",
"has_duplicates": false,
"invoice_number": "QONTO-JAN-2022",
"supplier_name": "McDonald's",
"vat_number": "IT12345678901",
"tin": "1234567890",
"description": "This is an invoice for Ronald!",
"total_amount": {
"value": "22.10",
"currency": "EUR"
},
"issue_date": "2022-03-01",
"due_date": "2022-03-01",
"payment_date": "2022-03-01",
"scheduled_date": "2022-03-01",
"iban": "FR1420041010050500013M02606",
"initiator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "email_forward",
"is_attachment_invoice": true,
"attachment_category": "INVOICE",
"is_attachment_non_financial": true,
"analyzed_at": "2022-03-04T17:58:30+02:00",
"matched_transactions": [
"4d5418bb-bd0d-4df4-865c-c07afab8bb48"
],
"transfer_ids": [
"4d5418bb-bd0d-4df4-865c-c07afab8bb48"
],
"request_transfer": {
"id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"initiator_id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48"
},
"einvoicing_lifecycle_events": [
{
"status_code": 200,
"reason": "DOUBLE FACTURE",
"reason_message": "I already received this invoice",
"timestamp": "2024-12-04T11:05:16.4497Z"
}
],
"meta": {
"integration_type": "amazon",
"connector": "grover",
"accounting_recorded_at": "2023-11-07T05:31:56Z",
"accounting_recorded_source": "regate"
},
"available_actions": {
"delete": true,
"archive": true,
"unarchive": true,
"pay": true,
"reasons": {
"pay": [
"is_credit_note"
],
"delete": [
"invalid_status"
],
"archive": [
"invalid_status"
],
"unarchive": [
"invalid_status"
]
}
},
"approval_workflow": {
"approver_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"supplier_invoice_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verified_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_approved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"payable_amount": {
"value": "22.10",
"currency": "EUR"
},
"total_amount_credit_notes": {
"value": "22.10",
"currency": "EUR"
},
"is_credit_note": false,
"has_suggested_credit_notes": false,
"related_invoices": [
{
"id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"invoice_number": "QONTO-JAN-2022",
"total_amount": {
"value": "22.10",
"currency": "EUR"
},
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_name": "my-invoice.pdf"
}
],
"suggested_transactions": [
{
"id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"score": "0.8"
}
]
}
],
"errors": [
{
"code": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}OAuth scope: supplier_invoice.write
Creates supplier invoices in bulk for the authenticated organization by uploading files.
Price plans: this endpoint is available for all Qonto price plans.
curl --request POST \
--url https://thirdparty.qonto.com/v2/supplier_invoices/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'supplier_invoices={
"file": "<string>",
"idempotency_key": "<string>"
}' \
--form source=pay_by_invoice \
--form 'meta={
"integration_type": "dropbox",
"connector": "grover"
}' \
--form skip_attachment_matcher=false \
--form supplier_invoices.items.0.file='@example-file'{
"supplier_invoices": [
{
"id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"is_einvoice": false,
"has_discrepancies": false,
"organization_id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"file_name": "my-invoice.pdf",
"status": "to_review",
"source_type": "email",
"created_at": "2022-03-04T17:58:30+02:00",
"updated_at": "2022-03-04T17:58:30+02:00",
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"declined_note": "",
"e_invoice_type": "zugferd",
"has_duplicates": false,
"invoice_number": "QONTO-JAN-2022",
"supplier_name": "McDonald's",
"vat_number": "IT12345678901",
"tin": "1234567890",
"description": "This is an invoice for Ronald!",
"total_amount": {
"value": "22.10",
"currency": "EUR"
},
"issue_date": "2022-03-01",
"due_date": "2022-03-01",
"payment_date": "2022-03-01",
"scheduled_date": "2022-03-01",
"iban": "FR1420041010050500013M02606",
"initiator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "email_forward",
"is_attachment_invoice": true,
"attachment_category": "INVOICE",
"is_attachment_non_financial": true,
"analyzed_at": "2022-03-04T17:58:30+02:00",
"matched_transactions": [
"4d5418bb-bd0d-4df4-865c-c07afab8bb48"
],
"transfer_ids": [
"4d5418bb-bd0d-4df4-865c-c07afab8bb48"
],
"request_transfer": {
"id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"initiator_id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48"
},
"einvoicing_lifecycle_events": [
{
"status_code": 200,
"reason": "DOUBLE FACTURE",
"reason_message": "I already received this invoice",
"timestamp": "2024-12-04T11:05:16.4497Z"
}
],
"meta": {
"integration_type": "amazon",
"connector": "grover",
"accounting_recorded_at": "2023-11-07T05:31:56Z",
"accounting_recorded_source": "regate"
},
"available_actions": {
"delete": true,
"archive": true,
"unarchive": true,
"pay": true,
"reasons": {
"pay": [
"is_credit_note"
],
"delete": [
"invalid_status"
],
"archive": [
"invalid_status"
],
"unarchive": [
"invalid_status"
]
}
},
"approval_workflow": {
"approver_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"supplier_invoice_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verified_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_approved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"payable_amount": {
"value": "22.10",
"currency": "EUR"
},
"total_amount_credit_notes": {
"value": "22.10",
"currency": "EUR"
},
"is_credit_note": false,
"has_suggested_credit_notes": false,
"related_invoices": [
{
"id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"invoice_number": "QONTO-JAN-2022",
"total_amount": {
"value": "22.10",
"currency": "EUR"
},
"attachment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_name": "my-invoice.pdf"
}
],
"suggested_transactions": [
{
"id": "4d5418bb-bd0d-4df4-865c-c07afab8bb48",
"score": "0.8"
}
]
}
],
"errors": [
{
"code": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}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.
Required only for Sandbox API requests; to get one, please sign up to the Developer Portal.
You have to specify multipart form data in order to attach the file to the request. When using curl it will look like that:
curl --location --request POST 'https://thirdparty.qonto.com/supplier_invoices/bulk' \
--form 'supplier_invoices[][file]=@"/path/to/file1.png"' \
--form 'supplier_invoices[][idempotency_key]="4d5418bb-bd0d-4df4-865c-c07afab8bb48"' \
--form 'supplier_invoices[][file]=@"/path/to/file2.png"' \
--form 'supplier_invoices[][idempotency_key]="4d5418bb-bd0d-4df4-865c-c07afab8bb49"' \
--form 'source="pay_by_invoice"' \
--form 'meta="{\"integration_type\":\"dropbox\",\"connector\":\"grover\"}"' \
--form 'skip_attachment_matcher=true'pay_by_invoice, supplier_invoices, integration, transaction_attachment, generic_upload "pay_by_invoice"
If true, skips the attachment matcher step for all invoices in the bulk request.
false
Returns the supplier invoices created.
This endpoint will always return a 200 regardless if there are any errors. Clients must ensure to check the errors property in order to confirm if all operations were successful.
A 400 will be returned only if the whole request fails.
Show child attributes
"4d5418bb-bd0d-4df4-865c-c07afab8bb48"
indicates if the invoice is an e-invoice, currently ONLY for the German organizations
false
false
"4d5418bb-bd0d-4df4-865c-c07afab8bb48"
"my-invoice.pdf"
Initial status for invoices.
"to_review""to_review"
email, e_invoicing, direct_upload "email"
"2022-03-04T17:58:30+02:00"
"2022-03-04T17:58:30+02:00"
Note specified when invoice was archived
zugferd, xrechnung "zugferd"
false
"QONTO-JAN-2022"
"McDonald's"
VAT number of the invoice issuer
"IT12345678901"
Tax Identification Number (TIN) of the invoice issuer
"1234567890"
"This is an invoice for Ronald!"
"2022-03-01"
"2022-03-01"
"2022-03-01"
"2022-03-01"
"FR1420041010050500013M02606"
email_forward, e_invoicing, supplier_invoices, pay_by_invoice, integration, regate, generic_upload, pay_later "email_forward"
The category of the attachment
INVOICE, EXPENSE_RECEIPT, CARD_RECEIPT, CREDIT_CARD_RECEIPT, CREDIT_NOTE, OTHER_FINANCIAL_DOCUMENT, OTHER_NON_FINANCIAL_DOCUMENT, UNKNOWN "INVOICE"
"2022-03-04T17:58:30+02:00"
IDs of the transfer payments associated with this invoice, if any
Show child attributes
Status code of the operation. - 200: Déposée (Submitted) - 201: Emise par la plateforme (Issued by the platform) - 202: Reçue de la plateforme (Received from the platform) - 203: Mise à disposition (Made available) - 204: Prise en charge (Taken over) - 205: Approuvée (Approved) - 206: Approuvée partiellement (Partially approved) - 207: En litige (In dispute) - 208: Suspendue (Suspended) - 209: Complétée (Completed) - 210: Refusée (Refused) - 211: Paiement transmis (Payment sent) - 212: Encaissée (Collected) - 213: Rejetée (Rejected) - 214: Visée (Vised)
200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214 200
The reason label associated with a given event
"DOUBLE FACTURE"
The reason message associated with a given event (comment provided by the user generating the event)
"I already received this invoice"
The timestamp of the event
"2024-12-04T11:05:16.4497Z"
Available actions for the invoice
Show child attributes
Indicates if the invoice can be deleted
Indicates if the invoice can be archived
Indicates if the invoice can be unarchived
Indicates if the invoice can be paid
Detailed reasons for why certain actions are not available
Show child attributes
List of reasons why the invoice cannot be paid
is_credit_note, missing_iban, missing_data, invalid_status, incorrect_approval_workflow List of reasons why the invoice cannot be deleted
invalid_status, linked_self_invoice, is_recorded List of reasons why the invoice cannot be archived
invalid_status List of reasons why the invoice cannot be unarchived
invalid_status Show child attributes
Membership IDs of the users who are next in line to approve the invoice
ID of the membership that verified the supplier invoice and send it to approval workflow
ID of the last membership that approved the supplier invoice request
false
false
Show child attributes
"4d5418bb-bd0d-4df4-865c-c07afab8bb48"
"QONTO-JAN-2022"
"my-invoice.pdf"
Was this page helpful?