The document extraction APIs have been improved to better support multi page handling:
The accepted inputs are restricted to multiple pdfs or multiple images, each of them represents a document. Pdfs and images are not accepted simultaneously,
The response of a request is redefined to be a single output, that is the output of the extraction on a single document (a list of pdf or a list of images).
New verification controls are now available for pay slip documents:
matchName: matches the name provided by user in userInput with the name extracted from the document.
matchAddress: matches the address provided by user in userInput with the address extracted from the document.
rentLocationLessThan100KM: verifies if the rent address provided by the user in userInput is located less than 100 kilometers from the company's address.
nSSConformity: verifies the conformity of the social security number extracted from the document: starts with 1 or 2 and has 13 or 15 numbers.
periodConformity: verifies if the month and year of the pay slip respect the creation date of the company thanks to on Insee API. The period should proceed the creation date.
companyAddressConformity: verifies if the company's name extracted from the document matches the company's name found in Insee API.
companyNameConformity: verifies if the company's address extracted from the document matches the company's address found in Insee API.
siretConformity: verifies the company SIRET extracted from the document is registered in Insee API.
apeCodeConformity: verifies if the company's ape code extracted from the document matches the company's ape code found in Insee API.
paymentVariance: Search for following keywords in the document: acompte, saisie, retenue E / P, arrêt maladie.
SSCeilingConformity: verifies if the social security ceiling extracted from the document is less than the designated amount for the year