Fred Accounting Documents Api (v1)

Download OpenAPI specification:

Fred Accounting Documents API

This API manages the lifecycle of accounting documents (uploaded receipts, invoices and expense bills): ingestion, OCR, tagging/extraction, workflow, indexing and the push to the accounting backend. It is part of the larger Fred platform and is consumed by other Fred services.

Authentication

All endpoints are protected and require a valid Fred bearer token, except where explicitly marked as anonymous. Authentication and authorization follow the common Inqom mechanism shared by every Fred microservice.

See the shared Inqom authentication documentation for how to obtain a token and call the API behind the gateway.

Environments

Environment Base URL
Production https://api.inqom.com/accounting-documents
Staging https://api-staging.inqom.com/accounting-documents

AccountingFirmDocumentsController

Retrieves the paginated list of documents of type Others across all the non-archived accounting folders of the given accounting firm.

Each returned document carries its metadata (including the accounting folder it belongs to) and a temporary public URL to download the file. When no start date is provided, only the documents uploaded during the last 24 hours are returned.

Authorizations:
oauth2
path Parameters
accountingFirmId
required
integer <int32>

The unique identifier of the accounting firm (cabinet).

query Parameters
startDate
string or null <date-time>

Optional upload date from which documents are returned. Defaults to 24 hours ago.

page
integer <int32>
Default: 1

1-based page number. Defaults to 1.

size
integer <int32>
Default: 100

Page size. Defaults to 100, maximum 1000.

Responses

Response samples

Content type
{
  • "Items": [
    ],
  • "TotalCount": 0,
  • "Page": 0,
  • "Size": 0
}

DocDatasController

Retrieves multiple DocData records based on various filter criteria with optional pagination.

DocData represents extracted data from documents processed by AI models or manual tagging.

Authorizations:
oauth2
query Parameters
ids
Array of integers or null <int32> [ items <int32 > ]

Optional array of DocData identifiers to filter by.

fileIds
Array of integers or null <int32> [ items <int32 > ]

Optional array of file/document identifiers to filter by.

enterpriseId
integer or null <int32>

Optional enterprise (accounting folder/Dossier) identifier to filter by.

type
string or null
Enum: "Expect" "Compute" "GoogleProvider" "CombinedInternalExternal" "AzureFormRecognizer" "Chaintrust" "ViDA"

Optional extraction type to filter by (e.g., Google, Azure, Manual, FecImported).

size
integer or null <int32>

Optional page size for pagination.

page
integer or null <int32>

Optional page number for pagination, starting at 1.

Responses

Response samples

Content type
[
  • {
    }
]

Creates a new DocData record for a document.

Used to store manually entered or corrected document data.

Authorizations:
oauth2
Request Body schema:

The DocData values to create.

Id
required
integer <int32>
FileId
required
integer <int32>
EnterpriseId
required
integer <int32>
Type
required
string
Enum: "Expect" "Compute" "GoogleProvider" "CombinedInternalExternal" "AzureFormRecognizer" "Chaintrust" "ViDA"
Category
required
string
Enum: "NormalInvoice" "DepositInvoice" "ProformaInvoice" "CreditNote" "Receipt" "DeliveryNote" "OrderForm" "BankReceipt" "Estimate" "TicketBankCarte" "Proof" "Invoice" "Other"
CountryClass
string or null
Enum: "Unknown" "France" "EuropeanUnion" "OutsideEuropeanUnion"
ValueDate
string or null <date-time>
TargetDate
string or null <date-time>
ExpDateBegin
string or null <date-time>
ExpDateEnd
string or null <date-time>
Mixed
required
boolean
DocRef
string or null
VatAmount
number or null <double>
HtAmount
number or null <double>
TtcAmount
number or null <double>
CurrencyId
integer or null <int32>
CurrencyIsoCode
string or null
CurrencyName
string or null
CountryId
integer or null <int32>
CountryName
string or null
LanguageId
integer or null <int32>
LanguageIETFTag
string or null
LanguageLabel
string or null
ContactId
integer or null <int32>
object (DocContactDto)
NatureId
integer or null <int32>
object (DocNatureDto)
Array of objects or null (DocPriceDto)
CurrencyConf
number or null <double>
CountryConf
number or null <double>
LanguageConf
number or null <double>
NatureConf
number or null <double>
PriceConf
number or null <double>
DocRefConf
number or null <double>
ValueDateConf
number or null <double>
CategoryConf
number or null <double>
GenerateEntry
required
boolean
AiModelName
string or null
PageCount
integer or null <int32>
EnterpriseSynonymId
integer or null <int32>
EnterpriseSynonymName
string or null

Responses

Request samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Retrieves a single DocData record by its unique identifier.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the DocData record.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Updates an existing DocData record with manually provided or corrected data.

The ID in the URL and the ID in the DTO must match.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the DocData record to update.

Request Body schema:

The updated DocData values.

Id
required
integer <int32>
FileId
required
integer <int32>
EnterpriseId
required
integer <int32>
Type
required
string
Enum: "Expect" "Compute" "GoogleProvider" "CombinedInternalExternal" "AzureFormRecognizer" "Chaintrust" "ViDA"
Category
required
string
Enum: "NormalInvoice" "DepositInvoice" "ProformaInvoice" "CreditNote" "Receipt" "DeliveryNote" "OrderForm" "BankReceipt" "Estimate" "TicketBankCarte" "Proof" "Invoice" "Other"
CountryClass
string or null
Enum: "Unknown" "France" "EuropeanUnion" "OutsideEuropeanUnion"
ValueDate
string or null <date-time>
TargetDate
string or null <date-time>
ExpDateBegin
string or null <date-time>
ExpDateEnd
string or null <date-time>
Mixed
required
boolean
DocRef
string or null
VatAmount
number or null <double>
HtAmount
number or null <double>
TtcAmount
number or null <double>
CurrencyId
integer or null <int32>
CurrencyIsoCode
string or null
CurrencyName
string or null
CountryId
integer or null <int32>
CountryName
string or null
LanguageId
integer or null <int32>
LanguageIETFTag
string or null
LanguageLabel
string or null
ContactId
integer or null <int32>
object (DocContactDto)
NatureId
integer or null <int32>
object (DocNatureDto)
Array of objects or null (DocPriceDto)
CurrencyConf
number or null <double>
CountryConf
number or null <double>
LanguageConf
number or null <double>
NatureConf
number or null <double>
PriceConf
number or null <double>
DocRefConf
number or null <double>
ValueDateConf
number or null <double>
CategoryConf
number or null <double>
GenerateEntry
required
boolean
AiModelName
string or null
PageCount
integer or null <int32>
EnterpriseSynonymId
integer or null <int32>
EnterpriseSynonymName
string or null

Responses

Request samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Deletes an existing DocData record.

This operation removes extracted data but does not delete the associated document.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the DocData record to delete.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Generates a DocData record using internal AI extraction models for the specified document.

This endpoint triggers on-demand extraction using Fred's internal machine learning models.

Authorizations:
oauth2
path Parameters
documentId
required
integer <int32>

The unique identifier of the document to extract data from.

query Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Generates a DocData record from the structured invoice ViDA received for the specified document.

The invoice states the tags of the document (type, number, dates, supplier, amounts, VAT breakdown), so none of them is read from the OCR. The nature, which an invoice does not state, is still predicted. The DocData is returned, not stored.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document ViDA created.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Generates a DocData record using Azure Form Recognizer for the specified document.

This endpoint triggers on-demand extraction using Microsoft Azure's Form Recognizer AI service.

Authorizations:
oauth2
path Parameters
documentId
required
integer <int32>

The unique identifier of the document to extract data from.

query Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Generates a DocData record from FEC-imported document metadata.

FEC (Fichier des Écritures Comptables) imports contain pre-existing accounting data that can be converted to DocData format.

Authorizations:
oauth2
path Parameters
documentId
required
integer <int32>

The unique identifier of the FEC-imported document.

query Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Updates an existing DocData record with data provided by an AI provider.

This endpoint is used by AI systems to update document data after processing. The ID in the URL and the ID in the DTO must match.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the DocData record to update.

Request Body schema:

The AI-generated DocData values.

Id
required
integer <int32>
FileId
required
integer <int32>
EnterpriseId
required
integer <int32>
Type
required
string
Enum: "Expect" "Compute" "GoogleProvider" "CombinedInternalExternal" "AzureFormRecognizer" "Chaintrust" "ViDA"
Category
required
string
Enum: "NormalInvoice" "DepositInvoice" "ProformaInvoice" "CreditNote" "Receipt" "DeliveryNote" "OrderForm" "BankReceipt" "Estimate" "TicketBankCarte" "Proof" "Invoice" "Other"
CountryClass
string or null
Enum: "Unknown" "France" "EuropeanUnion" "OutsideEuropeanUnion"
ValueDate
string or null <date-time>
TargetDate
string or null <date-time>
ExpDateBegin
string or null <date-time>
ExpDateEnd
string or null <date-time>
Mixed
required
boolean
DocRef
string or null
VatAmount
number or null <double>
HtAmount
number or null <double>
TtcAmount
number or null <double>
CurrencyId
integer or null <int32>
CurrencyIsoCode
string or null
CurrencyName
string or null
CountryId
integer or null <int32>
CountryName
string or null
LanguageId
integer or null <int32>
LanguageIETFTag
string or null
LanguageLabel
string or null
ContactId
integer or null <int32>
object (DocContactDto)
NatureId
integer or null <int32>
object (DocNatureDto)
Array of objects or null (DocPriceDto)
CurrencyConf
number or null <double>
CountryConf
number or null <double>
LanguageConf
number or null <double>
NatureConf
number or null <double>
PriceConf
number or null <double>
DocRefConf
number or null <double>
ValueDateConf
number or null <double>
CategoryConf
number or null <double>
GenerateEntry
required
boolean
AiModelName
string or null
PageCount
integer or null <int32>
EnterpriseSynonymId
integer or null <int32>
EnterpriseSynonymName
string or null

Responses

Request samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Creates a new DocData record with data provided by external AI providers.

This endpoint is used by third-party AI systems to submit extracted document data.

Authorizations:
oauth2
Request Body schema:

The provider-generated DocData values to create.

Id
required
integer <int32>
FileId
required
integer <int32>
EnterpriseId
required
integer <int32>
Type
required
string
Enum: "Expect" "Compute" "GoogleProvider" "CombinedInternalExternal" "AzureFormRecognizer" "Chaintrust" "ViDA"
Category
required
string
Enum: "NormalInvoice" "DepositInvoice" "ProformaInvoice" "CreditNote" "Receipt" "DeliveryNote" "OrderForm" "BankReceipt" "Estimate" "TicketBankCarte" "Proof" "Invoice" "Other"
CountryClass
string or null
Enum: "Unknown" "France" "EuropeanUnion" "OutsideEuropeanUnion"
ValueDate
string or null <date-time>
TargetDate
string or null <date-time>
ExpDateBegin
string or null <date-time>
ExpDateEnd
string or null <date-time>
Mixed
required
boolean
DocRef
string or null
VatAmount
number or null <double>
HtAmount
number or null <double>
TtcAmount
number or null <double>
CurrencyId
integer or null <int32>
CurrencyIsoCode
string or null
CurrencyName
string or null
CountryId
integer or null <int32>
CountryName
string or null
LanguageId
integer or null <int32>
LanguageIETFTag
string or null
LanguageLabel
string or null
ContactId
integer or null <int32>
object (DocContactDto)
NatureId
integer or null <int32>
object (DocNatureDto)
Array of objects or null (DocPriceDto)
CurrencyConf
number or null <double>
CountryConf
number or null <double>
LanguageConf
number or null <double>
NatureConf
number or null <double>
PriceConf
number or null <double>
DocRefConf
number or null <double>
ValueDateConf
number or null <double>
CategoryConf
number or null <double>
GenerateEntry
required
boolean
AiModelName
string or null
PageCount
integer or null <int32>
EnterpriseSynonymId
integer or null <int32>
EnterpriseSynonymName
string or null

Responses

Request samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "EnterpriseId": 0,
  • "Type": "Expect",
  • "Category": "NormalInvoice",
  • "CountryClass": "Unknown",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "Mixed": true,
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CurrencyId": 0,
  • "CurrencyIsoCode": "string",
  • "CurrencyName": "string",
  • "CountryId": 0,
  • "CountryName": "string",
  • "LanguageId": 0,
  • "LanguageIETFTag": "string",
  • "LanguageLabel": "string",
  • "ContactId": 0,
  • "Contact": {
    },
  • "NatureId": 0,
  • "Nature": {
    },
  • "Prices": [
    ],
  • "CurrencyConf": 0.1,
  • "CountryConf": 0.1,
  • "LanguageConf": 0.1,
  • "NatureConf": 0.1,
  • "PriceConf": 0.1,
  • "DocRefConf": 0.1,
  • "ValueDateConf": 0.1,
  • "CategoryConf": 0.1,
  • "GenerateEntry": true,
  • "AiModelName": "string",
  • "PageCount": 0,
  • "EnterpriseSynonymId": 0,
  • "EnterpriseSynonymName": "string"
}

Retrieves the list of available invoice category types.

Returns categories including: Autre (Other), Facture (Normal Invoice), Facture d'acompte (Deposit Invoice), Facture Proforma, Facture d'avoir (Credit Note), Reçu/Ticket (Receipt), Bon de livraison (Delivery Note), Bon de commande (Order Form), Reçu de paiement (Bank Receipt), Devis (Estimate), and Ticket carte bancaire (Bank Card Ticket).

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

Retrieves the referential list of available invoice category types.

This endpoint provides the same data as the Category endpoint but is organized under the referential route structure.

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

DocNaturesController

Retrieves document natures (categories) from the referential data with optional filtering.

DocNatures are hierarchical with up to 3 levels of classification (e.g., BIENS > emballages > specific type).

Authorizations:
oauth2
query Parameters
countryCodeId
integer or null <int32>

Optional country code identifier to filter natures by country.

level1
string or null

Optional first-level classification filter (e.g., BIENS, SERVICES).

level2
string or null

Optional second-level classification filter (e.g., emballages, matières premières).

level3
string or null

Optional third-level classification filter.

Responses

Response samples

Content type
[
  • {
    }
]

Creates a new document nature in the referential data.

The ID field in the DTO will be ignored and a new ID will be assigned automatically.

Authorizations:
oauth2
Request Body schema:

The document nature data to create.

Id
required
integer <int32>
CountryId
integer or null <int32>
Level1
string or null <= 32 characters
Level2
string or null <= 128 characters
Level3
string or null <= 128 characters
Level4
string or null <= 128 characters
Level5
string or null <= 128 characters
Value
string or null <= 128 characters
Samples
string or null <= 256 characters

Responses

Request samples

Content type
{
  • "Id": 0,
  • "CountryId": 0,
  • "Level1": "string",
  • "Level2": "string",
  • "Level3": "string",
  • "Level4": "string",
  • "Level5": "string",
  • "Value": "string",
  • "Samples": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "CountryId": 0,
  • "Level1": "string",
  • "Level2": "string",
  • "Level3": "string",
  • "Level4": "string",
  • "Level5": "string",
  • "Value": "string",
  • "Samples": "string"
}

Retrieves a single document nature (category) by its unique identifier.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the document nature.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "CountryId": 0,
  • "Level1": "string",
  • "Level2": "string",
  • "Level3": "string",
  • "Level4": "string",
  • "Level5": "string",
  • "Value": "string",
  • "Samples": "string"
}

Updates an existing document nature in the referential data.

The ID in the URL and the ID in the DTO must match.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the document nature to update.

Request Body schema:

The updated document nature data.

Id
required
integer <int32>
CountryId
integer or null <int32>
Level1
string or null <= 32 characters
Level2
string or null <= 128 characters
Level3
string or null <= 128 characters
Level4
string or null <= 128 characters
Level5
string or null <= 128 characters
Value
string or null <= 128 characters
Samples
string or null <= 256 characters

Responses

Request samples

Content type
{
  • "Id": 0,
  • "CountryId": 0,
  • "Level1": "string",
  • "Level2": "string",
  • "Level3": "string",
  • "Level4": "string",
  • "Level5": "string",
  • "Value": "string",
  • "Samples": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "CountryId": 0,
  • "Level1": "string",
  • "Level2": "string",
  • "Level3": "string",
  • "Level4": "string",
  • "Level5": "string",
  • "Value": "string",
  • "Samples": "string"
}

Deletes an existing document nature from the referential data.

This operation will fail if the nature is currently referenced by existing documents.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the document nature to delete.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "CountryId": 0,
  • "Level1": "string",
  • "Level2": "string",
  • "Level3": "string",
  • "Level4": "string",
  • "Level5": "string",
  • "Value": "string",
  • "Samples": "string"
}

DocTaggersController

Retrieves a single document tagger record by its identifier with optional data inclusion.

The URL returned in the response is public and can be accessed without authentication for a limited time.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the document tagger record.

query Parameters
withData
boolean or null

True to include full DocData with the response; false (default) returns only basic tagger information.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "FileType": "Administrative",
  • "FileUrl": "string",
  • "PdfUrl": "string",
  • "EnterpriseId": 0,
  • "EnterpriseName": "string",
  • "EnterpriseDesc": "string",
  • "UserId": 0,
  • "Status": "Waiting",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "TotalSeconds": 0,
  • "Comment": "string",
  • "Confidences": {
    },
  • "Data": {
    },
  • "Priority": 0,
  • "IsNewFile": true
}

Retrieves multiple document tagger records based on various filter criteria.

URLs returned are private and require authentication. Can filter by tagger IDs, file IDs, user IDs, status, enterprise, date range, tagging duration, and supports pagination.

Authorizations:
oauth2
query Parameters
withData
boolean
Default: false

True to include full DocData (slower); false (default) returns only basic tagger information.

ids
Array of integers or null <int32> [ items <int32 > ]

Optional array of tagger record identifiers to filter by.

fileIds
Array of integers or null <int32> [ items <int32 > ]

Optional array of file/document identifiers to filter by.

userIds
Array of integers or null <int32> [ items <int32 > ]

Optional array of user identifiers (taggers) to filter by.

status
string or null
Enum: "Waiting" "Done" "Unknow" "Illisible" "Irrelevant" "Multiple" "Queuing"

Optional tagger status to filter (Unknow, Illisible, Irrelevant, Multiple, etc.).

enterpriseId
integer or null <int32>

Optional enterprise (accounting folder/Dossier) identifier to filter by.

start
string or null <date-time>

Optional start date filter in format YYYY-MM-DD hh24:mm:ss.

end
string or null <date-time>

Optional end date filter in format YYYY-MM-DD hh24:mm:ss.

totalSecondsMin
integer or null <int32>

Optional minimum tagging duration in seconds.

totalSecondsMax
integer or null <int32>

Optional maximum tagging duration in seconds.

size
integer or null <int32>

Optional page size for pagination.

page
integer or null <int32>

Optional page number for pagination, starting at 1.

Responses

Response samples

Content type
[
  • {
    }
]

Get Next Data to tag for a tagger. Chronometer begins

Authorizations:
oauth2
query Parameters
userId
integer or null <int32>

if null, take UserId from Token

expireUrl
integer or null <int32>

Default=60m:Minutes after which Url will not be readable

isPeek
boolean or null

Default=False:If true, peek next to tag from queue but do not remove it from queue

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "FileType": "Administrative",
  • "FileUrl": "string",
  • "PdfUrl": "string",
  • "EnterpriseId": 0,
  • "EnterpriseName": "string",
  • "EnterpriseDesc": "string",
  • "UserId": 0,
  • "Status": "Waiting",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "TotalSeconds": 0,
  • "Comment": "string",
  • "Confidences": {
    },
  • "Data": {
    },
  • "Priority": 0,
  • "IsNewFile": true
}

Retrieves the total number of items in the tagging queue or the number of pages based on page size.

Authorizations:
oauth2
query Parameters
isPage
boolean or null

True to get number of pages; false or null (default) to get total item count.

sizePage
integer or null <int32>

Page size used when isPage is true to calculate page count.

Responses

Response samples

Content type
0
0

Retrieves the list of available tagger status codes with their names and labels.

Returns status options including: Unknow (Unknown), Illisible (Illegible), Irrelevant (Useless), and Multiple (Multiple documents).

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

Restarts the tagging chronometer for a document tagger record.

This endpoint allows a tagger to reset the timer if they need to restart the tagging process.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the DocTagger record (not the file ID or user ID).

Responses

Response samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "FileType": "Administrative",
  • "FileUrl": "string",
  • "PdfUrl": "string",
  • "EnterpriseId": 0,
  • "EnterpriseName": "string",
  • "EnterpriseDesc": "string",
  • "UserId": 0,
  • "Status": "Waiting",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "TotalSeconds": 0,
  • "Comment": "string",
  • "Confidences": {
    },
  • "Data": {
    },
  • "Priority": 0,
  • "IsNewFile": true
}

Submits the completed tagging results and moves the tagger status to Done.

This endpoint finalizes the tagging process and stores the tagged data. Only tagger records with status Waiting or Start can be moved to Done.

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

The unique identifier of the DocTagger record (from GetNext endpoint).

Request Body schema:

The completed tagging data to save.

Id
required
integer <int32>
FileId
required
integer <int32>
FileType
required
string
Enum: "Administrative" "Client" "Supplier" "ExpenseReport" "Bank" "Others" "TicketAttachment" "RevisionAttachment" "ImportData" "FecExport" "Sellsy" "None"
FileUrl
string or null
PdfUrl
string or null
EnterpriseId
required
integer <int32>
EnterpriseName
string or null
EnterpriseDesc
string or null
UserId
required
integer <int32>
Status
required
string
Enum: "Waiting" "Done" "Unknow" "Illisible" "Irrelevant" "Multiple" "Queuing"
StartDate
string or null <date-time>
EndDate
string or null <date-time>
TotalSeconds
integer or null <int32>
Comment
string or null <= 256 characters
object or null
object (DocDataDto)
Priority
required
integer <int32>
IsNewFile
required
boolean

Responses

Request samples

Content type
{
  • "Id": 0,
  • "FileId": 0,
  • "FileType": "Administrative",
  • "FileUrl": "string",
  • "PdfUrl": "string",
  • "EnterpriseId": 0,
  • "EnterpriseName": "string",
  • "EnterpriseDesc": "string",
  • "UserId": 0,
  • "Status": "Waiting",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "TotalSeconds": 0,
  • "Comment": "string",
  • "Confidences": {
    },
  • "Data": {
    },
  • "Priority": 0,
  • "IsNewFile": true
}

Response samples

Content type
0
0

DocumentsController

Uploads a new accounting document into the specified accounting folder and automatically initiates the document processing workflow.

The file is stored in Azure blob storage using the folder's configured container. After upload, the document enters the workflow pipeline for OCR extraction and data processing unless WithoutWorkFlow flag is set.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) where the document will be stored.

Request Body schema: multipart/form-data
TypeScan
required
string
Enum: "Administrative" "Client" "Supplier" "ExpenseReport" "Bank" "Others" "TicketAttachment" "RevisionAttachment" "ImportData" "FecExport" "Sellsy" "None"
FileSource
string or null
Enum: "Api" "Firebase" "DropBox" "SendGrid" "Magas" "Mobile" "Edi" "Sellsy" "Viseeon" "Fred" "QuickBooks" "Meg" "Billing" "CashManager" "ViDA"
ClientSource
string or null
Document
required
string <binary>
DocumentName
string or null
ContainerName
string or null
DocRef
string or null
SourceId
string or null
WithoutWorkFlow
boolean

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Name": "string",
  • "Type": "Administrative",
  • "Size": 0,
  • "OrigineId": 0,
  • "DeletedAt": "2019-08-24T14:15:22Z",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "Source": "string",
  • "SourceId": "string",
  • "ClientSource": "string",
  • "DocRef": "string",
  • "Checksum": "string",
  • "Status": "Received",
  • "StatusReason": 0,
  • "StatusUpdatedAt": "2019-08-24T14:15:22Z",
  • "StatusResponsibleUserId": 0,
  • "FileUrl": "string",
  • "ThumbUrl": "string",
  • "GoogleJsonUrl": "string",
  • "OwnerId": 0,
  • "FolderItemId": 0,
  • "OriginalName": "string",
  • "ContentSource": "DocData",
  • "StatusReasons": "None",
  • "CounterParty": "string",
  • "Amount": 0.1,
  • "EffectifDate": "2019-08-24T14:15:22Z",
  • "UserDefinedThirdPartyName": "string",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "EntryGenerationProvider": "Inqom",
  • "HasRevisedStatus": true,
  • "IsMarkedAsNotDuplicate": true,
  • "Provider": "string"
}

Retrieves multiple accounting documents by their identifiers in a single request.

Only documents belonging to the specified accounting folder are returned. Non-existent document IDs are silently ignored.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

query Parameters
documentsId
Array of integers or null <int32> [ items <int32 > ]

List of document identifiers to retrieve.

Responses

Response samples

Content type
[
  • {
    }
]

Retrieves a single accounting document by its unique identifier within the specified accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

id
required
integer <int32>

The unique identifier of the document to retrieve.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Name": "string",
  • "Type": "Administrative",
  • "Size": 0,
  • "OrigineId": 0,
  • "DeletedAt": "2019-08-24T14:15:22Z",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "Source": "string",
  • "SourceId": "string",
  • "ClientSource": "string",
  • "DocRef": "string",
  • "Checksum": "string",
  • "Status": "Received",
  • "StatusReason": 0,
  • "StatusUpdatedAt": "2019-08-24T14:15:22Z",
  • "StatusResponsibleUserId": 0,
  • "FileUrl": "string",
  • "ThumbUrl": "string",
  • "GoogleJsonUrl": "string",
  • "OwnerId": 0,
  • "FolderItemId": 0,
  • "OriginalName": "string",
  • "ContentSource": "DocData",
  • "StatusReasons": "None",
  • "CounterParty": "string",
  • "Amount": 0.1,
  • "EffectifDate": "2019-08-24T14:15:22Z",
  • "UserDefinedThirdPartyName": "string",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "EntryGenerationProvider": "Inqom",
  • "HasRevisedStatus": true,
  • "IsMarkedAsNotDuplicate": true,
  • "Provider": "string"
}

Retrieves a document prepared for preview with generated temporary public URLs for file access.

This endpoint generates time-limited public URLs for the document file and its thumbnail, allowing secure temporary access without authentication.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

id
required
integer <int32>

The unique identifier of the document to prepare for preview.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "EnterpriseId": 0,
  • "FileType": "Administrative",
  • "Status": "Received",
  • "Name": "string",
  • "FileUrl": "string",
  • "PdfUrl": "string",
  • "Owner": {
    }
}

Searches accounting documents using flexible filter criteria, sorting options, and pagination.

Default page size is 1000 if not specified. Supports multiple filter combinations including amount ranges, date ranges, file status, and full-text search.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) to search within.

Request Body schema:

Search command containing filter and sort parameters. SearchFields supports: None, AmountAbove, AmountBelow, OwnerId, FileStatus, Text, BeginUploadDate, EndUploadDate, BeginEffectiveDate, EndEffectiveDate, FileType, AmountDirection, CheckSum, SourceId, FileSource, MultiCriteria, ApproximateAmount, TargetDate, HasRevisedStatus, Relevance ('true' ranks a Text search by relevance). SortFields supports: None, Date, AbsoluteAmount, CounterParty, EffectiveDate, ApproximateAmount, Name. SortDirection values: Ascending, Descending.

object or null
object or null
object (SearchAnalyticFilter)
Page
integer or null <int32>
Size
integer or null <int32>

Responses

Request samples

Content type
{
  • "SearchFields": {
    },
  • "SortFields": {
    },
  • "AnalyticFilter": {
    },
  • "Page": 0,
  • "Size": 0
}

Response samples

Content type
[
  • {
    }
]

Retrieves a single accounting document by its file checksum with status Done.

This endpoint is useful for detecting duplicate uploads by comparing file checksums. Only documents with FileStatus.Done are considered to ensure completed processing.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) to search within.

query Parameters
checksum
required
string

The SHA-256 file checksum to search for.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Name": "string",
  • "Type": "Administrative",
  • "Size": 0,
  • "OrigineId": 0,
  • "DeletedAt": "2019-08-24T14:15:22Z",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "Source": "string",
  • "SourceId": "string",
  • "ClientSource": "string",
  • "DocRef": "string",
  • "Checksum": "string",
  • "Status": "Received",
  • "StatusReason": 0,
  • "StatusUpdatedAt": "2019-08-24T14:15:22Z",
  • "StatusResponsibleUserId": 0,
  • "FileUrl": "string",
  • "ThumbUrl": "string",
  • "GoogleJsonUrl": "string",
  • "OwnerId": 0,
  • "FolderItemId": 0,
  • "OriginalName": "string",
  • "ContentSource": "DocData",
  • "StatusReasons": "None",
  • "CounterParty": "string",
  • "Amount": 0.1,
  • "EffectifDate": "2019-08-24T14:15:22Z",
  • "UserDefinedThirdPartyName": "string",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "EntryGenerationProvider": "Inqom",
  • "HasRevisedStatus": true,
  • "IsMarkedAsNotDuplicate": true,
  • "Provider": "string"
}

Counts the total number of accounting documents for specified enterprises on a given day.

The count includes all documents regardless of status. If no enterprise IDs are provided, counts all documents in the folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) providing the search context.

query Parameters
day
string <date-time>

The reference date for counting documents.

enterpriseIds
Array of integers or null <int32> [ items <int32 > ]

Optional list of enterprise identifiers to filter the count; if empty or null, all enterprises are included.

Responses

Response samples

Content type
0
0

Retrieves a document by its external source identifier and file source type.

This endpoint is used to find documents imported from external systems using their original reference identifiers.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) to search within.

query Parameters
sourceId
required
string

The external source system's unique identifier for the document.

fileSource
required
string
Enum: "Api" "Firebase" "DropBox" "SendGrid" "Magas" "Mobile" "Edi" "Sellsy" "Viseeon" "Fred" "QuickBooks" "Meg" "Billing" "CashManager" "ViDA"

The origin system of the upload (e.g., Api, Email, Glady, BankFeed).

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Name": "string",
  • "Type": "Administrative",
  • "Size": 0,
  • "OrigineId": 0,
  • "DeletedAt": "2019-08-24T14:15:22Z",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "Source": "string",
  • "SourceId": "string",
  • "ClientSource": "string",
  • "DocRef": "string",
  • "Checksum": "string",
  • "Status": "Received",
  • "StatusReason": 0,
  • "StatusUpdatedAt": "2019-08-24T14:15:22Z",
  • "StatusResponsibleUserId": 0,
  • "FileUrl": "string",
  • "ThumbUrl": "string",
  • "GoogleJsonUrl": "string",
  • "OwnerId": 0,
  • "FolderItemId": 0,
  • "OriginalName": "string",
  • "ContentSource": "DocData",
  • "StatusReasons": "None",
  • "CounterParty": "string",
  • "Amount": 0.1,
  • "EffectifDate": "2019-08-24T14:15:22Z",
  • "UserDefinedThirdPartyName": "string",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "EntryGenerationProvider": "Inqom",
  • "HasRevisedStatus": true,
  • "IsMarkedAsNotDuplicate": true,
  • "Provider": "string"
}

Retrieves search metadata including pagination information, total counts, and faceted aggregations for accounting documents.

This endpoint provides statistical information about search results without returning the actual documents. Default page size is 1000 if not specified. Useful for building UI components like faceted search filters and pagination controls.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) to search within.

Request Body schema:

Search command containing filter and sort parameters. SearchFields supports: None, AmountAbove, AmountBelow, OwnerId, FileStatus, Text, BeginUploadDate, EndUploadDate, BeginEffectiveDate, EndEffectiveDate, FileType, AmountDirection, CheckSum, SourceId, FileSource, MultiCriteria, ApproximateAmount, TargetDate, HasRevisedStatus, Relevance ('true' ranks a Text search by relevance). SortFields supports: None, Date, AbsoluteAmount, CounterParty, EffectiveDate, ApproximateAmount, Name. SortDirection values: Ascending, Descending.

object or null
object or null
object (SearchAnalyticFilter)
Page
integer or null <int32>
Size
integer or null <int32>

Responses

Request samples

Content type
{
  • "SearchFields": {
    },
  • "SortFields": {
    },
  • "AnalyticFilter": {
    },
  • "Page": 0,
  • "Size": 0
}

Response samples

Content type
{
  • "FilesCount": 0
}

Retrieves a distinct list of counterparty names extracted from accounting documents in the folder.

Counterparty names are extracted from document data and can be filtered by file type. Useful for autocomplete fields and filtering options in the UI.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) to retrieve counterparties from.

query Parameters
types
Array of strings or null
Enum: "Administrative" "Client" "Supplier" "ExpenseReport" "Bank" "Others" "TicketAttachment" "RevisionAttachment" "ImportData" "FecExport" "Sellsy" "None"

Optional list of file types to filter counterparties (e.g., Invoice, Receipt, CreditNote); if null, all types are included.

Responses

Response samples

Content type
[
  • "string"
]

Retrieves the list of file statuses the current authenticated user is authorized to transition to for a specific document.

Status transitions are controlled by user permissions and the current document state. This ensures users can only perform authorized status changes based on their role.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document for which to retrieve authorized statuses.

Responses

Response samples

Content type
[
  • "string"
]

Generates a time-limited public URL for secure temporary access to download the specified document file.

The URL expires after a configured time period and allows unauthenticated access for the duration. Useful for sharing documents externally or embedding in emails.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document for which to generate the public URL.

Responses

Response samples

Content type
"string"

Retrieves detailed deletion impact information for multiple documents before deletion (deprecated endpoint). Deprecated

This endpoint is deprecated; use GetDocumentPreDeleteInformationAsync (POST version) instead. Returns information about linked entities (book entries, duplicates) that will be affected by deletion.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

query Parameters
deleteDocumentIds
Array of integers or null <int32> [ items <int32 > ]

List of document identifiers to analyze for deletion impacts.

Responses

Response samples

Content type
{
  • "AccountingDocumentList": [
    ],
  • "TotalDocumentCount": 0,
  • "TotalBookEntryCount": 0,
  • "TotalValidatedBookEntryCount": 0
}

Retrieves detailed deletion impact information for multiple documents before performing the deletion operation.

Returns information about linked entities (book entries, duplicate documents) that will be affected or prevent deletion. Use this endpoint to display confirmation dialogs with deletion impacts to users.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

Request Body schema:

List of document identifiers to analyze for deletion impacts.

Array
integer <int32>

Responses

Request samples

Content type
[
  • 0
]

Response samples

Content type
{
  • "AccountingDocumentList": [
    ],
  • "TotalDocumentCount": 0,
  • "TotalBookEntryCount": 0,
  • "TotalValidatedBookEntryCount": 0
}

Deletes multiple accounting documents from the folder and storage.

When deleting original documents that have duplicates, all linked duplicate documents are also deleted automatically. The physical files are removed from Azure blob storage along with database records.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

query Parameters
deleteDocumentIds
Array of integers or null <int32> [ items <int32 > ]

List of document identifiers to permanently delete.

Responses

Deletes multiple documents with granular control over deletion of documents and/or their associated book entries.

This endpoint provides flexible deletion options allowing separate control of document file deletion and accounting book entry deletion. Useful when book entries need to be preserved while removing document files, or vice versa.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

Request Body schema:

Deletion command specifying document IDs and boolean flags for deleting documents and/or book entries.

DocumentIdList
Array of integers or null <int32> [ items <int32 > ]
AreDocumentsDeleted
required
boolean
AreBookEntriesDeleted
required
boolean

Responses

Request samples

Content type
{
  • "DocumentIdList": [
    ],
  • "AreDocumentsDeleted": true,
  • "AreBookEntriesDeleted": true
}

Executes OCR (Optical Character Recognition) processing on a document and stores the extracted text result.

This triggers Google Cloud Vision OCR processing on the document file. The OCR result is stored for later retrieval and data extraction purposes.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document to process with OCR.

query Parameters
ocrRequestOrigin
string
Enum: "FileWorkflow" "FecImport"

The origin/source of the OCR request indicating who or what initiated the processing.

Responses

Response samples

Content type
{
  • "IsSuccess": true,
  • "Message": "string"
}

Retrieves the original source document for a document that was marked as a duplicate.

When documents are detected as duplicates, they are linked to their original version. This endpoint retrieves the original document and optionally generates a temporary public URL for file access.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

documentId
required
integer <int32>

The unique identifier of the duplicate document for which to find the original.

query Parameters
withPublicUrl
boolean
Default: true

True (default) to generate a temporary public URL for the original document file; false to omit URL generation.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Name": "string",
  • "Type": "Administrative",
  • "Size": 0,
  • "OrigineId": 0,
  • "DeletedAt": "2019-08-24T14:15:22Z",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "Source": "string",
  • "SourceId": "string",
  • "ClientSource": "string",
  • "DocRef": "string",
  • "Checksum": "string",
  • "Status": "Received",
  • "StatusReason": 0,
  • "StatusUpdatedAt": "2019-08-24T14:15:22Z",
  • "StatusResponsibleUserId": 0,
  • "FileUrl": "string",
  • "ThumbUrl": "string",
  • "GoogleJsonUrl": "string",
  • "OwnerId": 0,
  • "FolderItemId": 0,
  • "OriginalName": "string",
  • "ContentSource": "DocData",
  • "StatusReasons": "None",
  • "CounterParty": "string",
  • "Amount": 0.1,
  • "EffectifDate": "2019-08-24T14:15:22Z",
  • "UserDefinedThirdPartyName": "string",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "EntryGenerationProvider": "Inqom",
  • "HasRevisedStatus": true,
  • "IsMarkedAsNotDuplicate": true,
  • "Provider": "string"
}

Retrieves the unique identifiers of all users who have uploaded at least one document in the folder.

Useful for filtering documents by uploader or displaying contributor lists in the UI.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) for which to retrieve contributor user IDs.

Responses

Response samples

Content type
[
  • 0
]

Updates selected metadata fields of an accounting document without modifying the file content.

This is a partial update endpoint - only provided fields are updated, others remain unchanged. Useful for correcting document name, type, references, or linking to related resources.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document to update.

query Parameters
Name
string or null
Type
string or null
Enum: "Administrative" "Client" "Supplier" "ExpenseReport" "Bank" "Others" "TicketAttachment" "RevisionAttachment" "ImportData" "FecExport" "Sellsy" "None"
DocRef
string or null
ThumbUrl
string or null
GoogleJsonUrl
string or null <= 512 characters
OriginalId
integer or null <int32>

Responses

Updates the compressed PDF file URL for a document.

This URL points to an optimized/compressed PDF version of the document stored separately from the original file. Used for faster preview and download of large documents.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document to update.

Request Body schema:

The Azure blob storage URL of the compressed PDF file.

string or null

The Azure blob storage URL of the compressed PDF file.

Responses

Request samples

Content type
"string"

Updates the revised entry status flag indicating whether a document has associated revised accounting entries.

This flag is used for tracking documents that have been corrected or revised in the accounting system. Impacts filtering and reporting of documents with revisions.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document to update.

Request Body schema:

True if the document has revised accounting entries; false otherwise.

boolean

True if the document has revised accounting entries; false otherwise.

Responses

Request samples

Content type
true

Changes the status of a single document (authorization and coherence checks applied).

Performs authorization and coherence validation before applying the status change. The userId parameter is ignored; the authenticated user from the request context is used instead. Supports optional status reason codes for audit trails and workflow tracking.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document whose status will be changed.

query Parameters
userId
integer <int32>

User initiating the change (parameter ignored, current authenticated user is used).

newStatus
string
Enum: "Received" "ToReview" "Processing" "Duplicate" "Done" "ManualProcessing" "Deleted"

The new file status to apply to the document (e.g., Validated, Rejected).

statusReason
integer or null <int32>

Optional status reason code providing context for the status change (nullable).

Responses

Changes the status for multiple documents in a single operation.

Performs batch status updates with individual validation per document. Returns detailed results indicating success or failure for each document. Useful for bulk approval/rejection workflows in document processing pipelines.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

query Parameters
documentIds
Array of integers or null <int32> [ items <int32 > ]

List of document identifiers to update with the new status.

newStatus
string
Enum: "Received" "ToReview" "Processing" "Duplicate" "Done" "ManualProcessing" "Deleted"

The new file status to apply to all specified documents.

statusReason
integer or null <int32>

Optional status reason code applied to all documents (nullable).

Responses

Response samples

Content type
{
  • "IsSuccess": true,
  • "Results": [
    ]
}

Checks whether a document exists in the specified accounting folder.

Lightweight existence check useful for validation before performing operations on documents. Does not load full document details, optimized for quick validation scenarios.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) to check within.

documentId
required
integer <int32>

The unique identifier of the document to verify existence.

Responses

Response samples

Content type
true

Creates a ZIP archive containing all files linked to the provided document identifiers.

Dynamically generates a ZIP archive on-the-fly from Azure blob storage files. Useful for bulk document download operations in the client application. The ZIP file is streamed directly to the client without intermediate disk storage.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

Request Body schema:

List of document identifiers whose files will be included in the ZIP archive.

Array
integer <int32>

Responses

Request samples

Content type
[
  • 0
]

Retrieves external provider processing results associated with a document.

Returns machine learning or third-party processing results such as OCR data, classification, or extracted entities. Used to display automated processing outcomes before user applies or rejects them.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document whose external results will be retrieved.

Responses

Response samples

Content type
{
  • "AccountingFolderId": 0,
  • "DocumentId": 0,
  • "ExternalProvider": "string",
  • "IsSuccess": true,
  • "ErrorCode": "string",
  • "ErrorMessage": "string",
  • "RawPayload": "string"
}

Applies external provider processing results to a document.

Accepts and persists external provider processing results (e.g., OCR text, extracted fields, classifications). Typically invoked after user reviews and approves automated processing results. Updates document metadata and associated entities with the applied results.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document to which results will be applied.

Request Body schema:

Command payload containing the external provider results to persist.

IsSuccess
required
boolean
ErrorCode
string or null
ErrorMessage
string or null
DocumentType
required
string
Enum: "None" "BuyInvoice" "SellInvoice" "ExpenseReport" "SellCreditNote" "BuyCreditNote" "Other"
DuplicateOriginalDocumentId
integer or null <int32>
object (ExternalBookEntry)
object (DocumentMetaData)
ExternalProviderId
string or null

Responses

Request samples

Content type
{
  • "IsSuccess": true,
  • "ErrorCode": "string",
  • "ErrorMessage": "string",
  • "DocumentType": "None",
  • "DuplicateOriginalDocumentId": 0,
  • "BookEntry": {
    },
  • "DocumentMetaData": {
    },
  • "ExternalProviderId": "string"
}

Reports an external provider event (e.g., status update) for a folder.

Receives webhook or callback events from external processing providers. Used to track processing pipeline status, completion notifications, or error reports. Enables asynchronous integration with third-party document processing services.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) associated with the event.

Request Body schema:

Command payload containing external provider event data and metadata.

IsError
required
boolean
EventType
string or null
EventCode
string or null
EventDescription
string or null
ExternalResourceId
string or null

Responses

Request samples

Content type
{
  • "IsError": true,
  • "EventType": "string",
  • "EventCode": "string",
  • "EventDescription": "string",
  • "ExternalResourceId": "string"
}

Generates the entries of a document again: its entries not validated yet are deleted, then the entries are proposed again from the data already extracted from the document, without reading it again.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document whose entries are generated again.

Responses

Tells whether the entries of a document can be generated again, and why not when they cannot.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document.

Responses

Response samples

Content type
{
  • "BlockedReason": "ValidatedEntry"
}

Tells that a document flagged as a duplicate is not one: it is processed again from what has already been read from it; once its mark is read, a later duplicate result from stability or Chaintrust sends it to review instead of flagging it.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
documentId
required
integer <int32>

Responses

Retrieves the duplicate history of a document: of which document it was flagged as a duplicate and when, and who told it is not a duplicate and when.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the document.

documentId
required
integer <int32>

The unique identifier of the document.

Responses

Response samples

Content type
{
  • "OriginalDocumentId": 0,
  • "FlaggedAt": "2019-08-24T14:15:22Z",
  • "UnmarkedByUserId": 0,
  • "UnmarkedAt": "2019-08-24T14:15:22Z"
}

Tells, for each document of a selection, whether its entries can be generated again, why not when they cannot, and whether it already has entries.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

Request Body schema:

The documents of the selection, 1 to 500 of them.

DocumentIds
Array of integers or null <int32> [ items <int32 > ]

The unique identifiers of the selected documents.

Responses

Request samples

Content type
{
  • "DocumentIds": [
    ]
}

Response samples

Content type
{
  • "Documents": [
    ]
}

Generates again the entries of each eligible document of a selection, as for a single document, and tells the outcome document by document: a document refused, or whose entries the accounting backend refuses to delete, does not stop the others.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

Request Body schema:

The documents of the selection, 1 to 500 of them.

DocumentIds
Array of integers or null <int32> [ items <int32 > ]

The unique identifiers of the selected documents.

Responses

Request samples

Content type
{
  • "DocumentIds": [
    ]
}

Response samples

Content type
{
  • "Results": [
    ]
}

Tells that each document of a selection flagged as a duplicate is not one, exactly as for a single document, and tells the outcome document by document: a document that is not a duplicate is left as it is, and a document whose unblocking fails does not stop the others.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

Request Body schema:

The documents of the selection, 1 to 500 of them.

DocumentIds
Array of integers or null <int32> [ items <int32 > ]

The unique identifiers of the selected documents.

Responses

Request samples

Content type
{
  • "DocumentIds": [
    ]
}

Response samples

Content type
{
  • "Results": [
    ]
}

DocumentsDataController

Retrieves extracted data for multiple accounting documents identified by their IDs.

DocumentData corresponds to the data extracted from a document through AI processing or manual tagging. Only documents belonging to the specified accounting folder can be retrieved.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) containing the documents.

query Parameters
documentIds
Array of integers or null <int32> [ items <int32 > ]

List of document identifiers for which to retrieve extracted data.

Responses

Response samples

Content type
[
  • {
    }
]

Retrieves all extracted data records for a single accounting document.

A document may have multiple DocumentData records if it was processed by different extraction sources or updated over time.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

documentId
required
integer <int32>

The unique identifier of the document.

Responses

Response samples

Content type
[
  • {
    }
]

Retrieves a specific extracted data record by its unique identifier.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

documentId
required
integer <int32>

The unique identifier of the document.

id
required
integer <int32>

The unique identifier of the DocumentData record.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "DocumentId": 0,
  • "NatureId": 0,
  • "CurrencyId": 0,
  • "LanguageId": 0,
  • "DueDate": "2019-08-24T14:15:22Z",
  • "Country": {
    },
  • "CountryClass": "Unknown",
  • "FileType": "Administrative",
  • "OwnerId": 0,
  • "Type": "Expect",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "GenerateEntry": true,
  • "Category": "NormalInvoice",
  • "AiModelName": "string",
  • "PageCount": 0,
  • "DocumentDataConfidences": {
    },
  • "DocumentDataContact": {
    },
  • "DocumentDataDataPrices": [
    ]
}

Retrieves lightweight identifiers and types of all DocumentData records for a document.

This endpoint returns only the ID and type of each DocumentData record, useful for listing available extractions without loading full content.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

documentId
required
integer <int32>

The unique identifier of the document.

Responses

Response samples

Content type
[
  • {
    }
]

Retrieves the most recent DocumentData record for a document filtered by extraction type.

When multiple DocumentData records exist for the same type, only the latest one is returned based on creation timestamp.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

documentId
required
integer <int32>

The unique identifier of the document.

type
required
string
Enum: "Expect" "Compute" "GoogleProvider" "CombinedInternalExternal" "AzureFormRecognizer" "Chaintrust" "ViDA"

The extraction type to filter by (e.g., Google, Azure, Manual, FecImported).

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "DocumentId": 0,
  • "NatureId": 0,
  • "CurrencyId": 0,
  • "LanguageId": 0,
  • "DueDate": "2019-08-24T14:15:22Z",
  • "Country": {
    },
  • "CountryClass": "Unknown",
  • "FileType": "Administrative",
  • "OwnerId": 0,
  • "Type": "Expect",
  • "ValueDate": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "ExpDateBegin": "2019-08-24T14:15:22Z",
  • "ExpDateEnd": "2019-08-24T14:15:22Z",
  • "DocRef": "string",
  • "VatAmount": 0.1,
  • "HtAmount": 0.1,
  • "TtcAmount": 0.1,
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "GenerateEntry": true,
  • "Category": "NormalInvoice",
  • "AiModelName": "string",
  • "PageCount": 0,
  • "DocumentDataConfidences": {
    },
  • "DocumentDataContact": {
    },
  • "DocumentDataDataPrices": [
    ]
}

Retrieves the nature identifier (document category) for documents with the same third party and file type.

This endpoint helps predict the nature of a new document based on historical data from similar documents. The query can filter by either ThirdPartyId or Counterparty name.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

Request Body schema:

Query containing FileType and either ThirdPartyId or Counterparty name for matching.

ThirdPartyId
integer or null <int32>
CounterpartyName
string or null

Responses

Request samples

Content type
{
  • "ThirdPartyId": 0,
  • "CounterpartyName": "string"
}

Response samples

Content type
0
0

DocumentsTaggersController

Retrieves the list of available VAT rates for document tagging workflows, currently supporting French VAT rates only.

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

EnterpriseEmailProvidersController

Retrieves all enterprise email providers for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder.

Responses

Response samples

Content type
[
  • {
    }
]

Creates a new enterprise email provider for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder.

Request Body schema:

Request body containing the email address to register.

Email
string or null

Responses

Request samples

Content type
{
  • "Email": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Email": "string"
}

Retrieves document email addresses for each file type (Client, Supplier, ExpenseReport, Others) for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder.

Responses

Response samples

Content type
[
  • {
    }
]

Creates a new enterprise email provider at the company level. Stored with AccountingFolderId = companyId so that GET by accounting folder returns folder-level + company-level providers in a single query.

Authorizations:
oauth2
path Parameters
companyId
required
integer <int32>

The unique identifier of the company (cabinet).

Request Body schema:

Request body containing the email address to register.

Email
string or null

Responses

Request samples

Content type
{
  • "Email": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Email": "string"
}

Deletes an enterprise email provider by its identifier within the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder.

id
required
integer <int32>

The unique identifier of the enterprise email provider to delete.

Responses

Response samples

Content type
{
  • "property1": null,
  • "property2": null
}

ExpenseBillsController

Uploads a new expense bill document to the specified accounting folder.

This endpoint creates an expense bill document with beneficiary information and automatically processes it through the document workflow. The file is stored in the accounting folder's configured Azure storage container.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier) where the expense bill will be stored.

Request Body schema: multipart/form-data
File
required
string <binary>

Document content data

BeneficiaryFullName
required
string

Beneficiary full name as it is intended to be displayed

FileNameWithExtension
string or null

File name with extension to override real one

DocumentReference
string or null

Document unique reference

Responses

Response samples

Content type
{
  • "DocumentId": 0
}

FileContentsController

Retrieves all FileContent records for the specified enterprise.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier) for which to retrieve file contents.

Responses

Response samples

Content type
[
  • {
    }
]

Retrieves the FileContent data for a specific document by its file identifier.

FileContent contains key accounting document data extracted by AI models, including the document text, useful for analysis.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier).

fileId
required
integer <int32>

The unique identifier of the file/document.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "EnterpriseId": 0,
  • "FileId": 0,
  • "Counterparty": "string",
  • "AmountTtc": 0.1,
  • "Date": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "IssuerDocRef": "string",
  • "Text": "string"
}

Performs a full update of all FileContent fields for a specific document.

All fields provided in the viewModel are applied; fields not provided will be set to null or default values.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier).

fileId
required
integer <int32>

The unique identifier of the file/document.

query Parameters
Id
integer <int32>
EnterpriseId
integer <int32>
FileId
integer <int32>
Counterparty
string or null
AmountTtc
number or null <double>
Date
string or null <date-time>
TargetDate
string or null <date-time>
StartDate
string or null <date-time>
EndDate
string or null <date-time>
IssuerDocRef
string or null
Text
string or null

Responses

Response samples

Content type
{
  • "Id": 0,
  • "EnterpriseId": 0,
  • "FileId": 0,
  • "Counterparty": "string",
  • "AmountTtc": 0.1,
  • "Date": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "IssuerDocRef": "string",
  • "Text": "string"
}

Creates a new FileContent record for a document.

If a FileContent already exists for the document, it will be updated instead of creating a duplicate.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier).

fileId
required
integer <int32>

The unique identifier of the file/document.

Request Body schema:

FileContent data to create.

Id
required
integer <int32>
EnterpriseId
required
integer <int32>
FileId
required
integer <int32>
Counterparty
string or null
AmountTtc
number or null <double>
Date
string or null <date-time>
TargetDate
string or null <date-time>
StartDate
string or null <date-time>
EndDate
string or null <date-time>
IssuerDocRef
string or null
Text
string or null

Responses

Request samples

Content type
{
  • "Id": 0,
  • "EnterpriseId": 0,
  • "FileId": 0,
  • "Counterparty": "string",
  • "AmountTtc": 0.1,
  • "Date": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "IssuerDocRef": "string",
  • "Text": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "EnterpriseId": 0,
  • "FileId": 0,
  • "Counterparty": "string",
  • "AmountTtc": 0.1,
  • "Date": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "IssuerDocRef": "string",
  • "Text": "string"
}

Deletes the FileContent record associated with a specific document.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier).

fileId
required
integer <int32>

The unique identifier of the file/document whose content should be deleted.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "EnterpriseId": 0,
  • "FileId": 0,
  • "Counterparty": "string",
  • "AmountTtc": 0.1,
  • "Date": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "IssuerDocRef": "string",
  • "Text": "string"
}

Retrieves FileContent records for multiple files identified by their file identifiers.

A POST method is used instead of GET to avoid query string length limitations when many file IDs are provided.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier).

Request Body schema:

List of file/document identifiers to retrieve content for.

Array
integer <int32>

Responses

Request samples

Content type
[
  • 0
]

Response samples

Content type
[
  • {
    }
]

Performs a partial update of FileContent fields for a specific document.

Only provided (non-null) fields are updated; other fields remain unchanged.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier).

fileId
required
integer <int32>

The unique identifier of the file/document.

query Parameters
text
string or null

Extracted text content from the document (optional).

counterparty
string or null

Name of the counterparty or third party (optional).

date
string or null <date-time>

Document date (optional).

targetDate
string or null <date-time>

Target or due date for the document (optional).

startDate
string or null <date-time>
endDate
string or null <date-time>
amountTtc
number or null <double>

Total amount including tax (optional).

issueRefDoc
string or null

Issuer document reference number (optional).

Responses

Response samples

Content type
{
  • "Id": 0,
  • "EnterpriseId": 0,
  • "FileId": 0,
  • "Counterparty": "string",
  • "AmountTtc": 0.1,
  • "Date": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "IssuerDocRef": "string",
  • "Text": "string"
}

Updates only the text field of a FileContent record, creating the record if it does not exist.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier).

fileId
required
integer <int32>

The unique identifier of the file/document.

Request Body schema:

Command containing the text content to update.

FileId
required
integer <int32>
Text
string or null

Responses

Request samples

Content type
{
  • "FileId": 0,
  • "Text": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "EnterpriseId": 0,
  • "FileId": 0,
  • "Counterparty": "string",
  • "AmountTtc": 0.1,
  • "Date": "2019-08-24T14:15:22Z",
  • "TargetDate": "2019-08-24T14:15:22Z",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "IssuerDocRef": "string",
  • "Text": "string"
}

Records the amounts a certified source declares for a document.

Meant for electronic invoices, whose issuer states the amounts instead of leaving them to be extracted. Declared this way, they are kept even when the extraction that follows the upload infers different ones — typically when it misses an exempt line. Call it right after the document is uploaded, before the extraction completes.

Authorizations:
oauth2
path Parameters
enterpriseId
required
integer <int32>

The unique identifier of the enterprise (accounting folder/Dossier).

fileId
required
integer <int32>

The unique identifier of the file/document.

Request Body schema:

The VAT breakdown declared by the issuer.

Array of objects or null (VatBreakdownLineCommand)
IssuerDocRef
string or null

Responses

Request samples

Content type
{
  • "VatBreakdown": [
    ],
  • "IssuerDocRef": "string"
}

InvoiceController

Submits invoices to the Glady integration asynchronous processing workflow.

This endpoint queues invoices for background processing by the Glady integration system. Processing results can be retrieved later using the integration results endpoint.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

Request Body schema:

Command containing the list of invoices to process.

Array of objects or null (GladyInvoice)

Responses

Request samples

Content type
{
  • "Invoices": [
    ]
}

Retrieves Glady integration processing results for a list of invoice references.

A POST method is used instead of GET to avoid query string length limitations when many invoice references are provided.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

Request Body schema:

Query containing the list of invoice references to retrieve results for.

InvoiceReferences
Array of strings or null

Responses

Request samples

Content type
{
  • "InvoiceReferences": [
    ]
}

Response samples

Content type
{
  • "AccountingFolderId": 0,
  • "Details": [
    ]
}

Retrieves detailed Glady invoice information for a list of invoice references.

A PUT method is used instead of GET to avoid query string length limitations when many invoice references are provided.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

Request Body schema:

Query containing the list of invoice references to retrieve.

InvoiceReferences
Array of strings or null

Responses

Request samples

Content type
{
  • "InvoiceReferences": [
    ]
}

Response samples

Content type
[
  • {
    }
]

Retrieves invoices associated with a list of document identifiers.

A POST method is used instead of GET to avoid query string length limitations when many document IDs are provided.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

Request Body schema:

List of document identifiers to retrieve associated invoices for.

Array
integer <int32>

Responses

Request samples

Content type
[
  • 0
]

Response samples

Content type
[
  • {
    }
]

Retrieves invoices by their reference numbers.

A POST method is used instead of GET to avoid query string length limitations when many invoice references are provided.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

Request Body schema:

List of invoice reference strings to retrieve.

Array
string

Responses

Request samples

Content type
[
  • "string"
]

Response samples

Content type
[
  • {
    }
]

Updates the integration status of an invoice with an external system.

This endpoint allows updating the status of invoice integration processes (e.g., marking as sent, processed, or failed).

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The unique identifier of the accounting folder (Dossier).

Request Body schema:

Command containing invoice identifier and new integration status.

InvoiceReference
string or null
Status
required
string
Enum: "Unknown" "IntegrationInProgress" "IntegrationSuccessful" "IntegrationFailed"
ErrorCode
string or null
Enum: "Unknown" "ERR_2101" "ERR_2102" "ERR_2103" "ERR_2104" "ERR_2105" "ERR_2106" "ERR_2107" "ERR_2108" "ERR_2109"

Responses

Request samples

Content type
{
  • "InvoiceReference": "string",
  • "Status": "Unknown",
  • "ErrorCode": "Unknown"
}