POST/importFEC
Import of entries in FEC format
Example Value
Schema
{
"codeIbs": "string",
"URI": "string",
"URL": "string"
}
API Request/Response
example Code Description Links 200 class response
Media type
application/json Controls Accept header.
Therefore, all responses from the API are in the JSON format and all payloads to the API must be in the JSON format.
The request headers must contain Content-Type: application-json
.
Base URL
The base URL has the same structure for all public API requests. It consists of:
Domain | Mode | Role | |
---|---|---|---|
Example | https://developers.cegid.com/| /YPN | /cabinet |
on cegid Developers : https://developers.cegid.com/api-details#api=loop-api-publiques&operation
For the purpose of this document, Base URL will be referred to as <baseUrl>
.
Parameter
"url": https://api.cegid.com/loop-api-publiques/importFEC
Name | Description | example | mandatory | |
---|---|---|---|---|
codeIbs | Code Dossier | CEGID001 | Yes | |
URI | File path in Azure Storage | NO | ||
URL | where the file is located | https://... | YES |
Note to be entered either URL or URI not both at the same time
The URL or URI for authentication to "fichier" must be valid for at least 24 hours (Microsoft recommendation) The objective is to be able to manage the "retry" process ,and track the service disruptions, whether voluntary or involuntary.
example :
{
"codeIbs": "CEGID003",
"URI": "",
"URL": "https://looptestcabinetrdd.blob.core.windows.net/api-import-ecritures-dev/005e3c2d-8352-49e5-82f3-8704a079b9f3/842008161FEC20201231.txt?sv=2020-08-04&st=2022-03-25T15%3A23%3A51Z&se=2022-03-26T15%3A23%3A51Z&sr=b&sp=r&sig=Woems51XulQt0XiMMF4lyk9VleNWIGNeqvw86eEC0Pw%3D"
}
Response
{
"accountingImportRequestId": "ca85671e-6f98-4c2e-b075-c5cd9fea57ed"
}
Note accountingImportRequestId can be used for status by getstatus