Download OpenAPI specification:
This API sends French tax declarations (Liasse fiscale, 2571 / 2572, CVAE solde and acompte) to the French tax authorities, through the Teledec / Teleportail channel or the internal ApEF channel. It is part of the larger Fred platform and is consumed by other Fred services.
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: Inqom API authentication.
| Environment | Base URL |
|---|---|
| Production | https://apim-fred-prod.azure-api.net/tax-declaration |
| Staging | https://apim-fred-staging.azure-api.net/tax-declaration |
Replace the URLs above and the authentication link with the values for this service if they differ.
| accountingFolderId required | integer <int32> Identifier of the accounting folder |
The JeDeclare send parameters
| EndDate required | string <date-time> |
| Sujet required | string |
| DeclarationType required | string Enum: "Liasse" "IS2571" "IS2572" "IS2573" "LiasseTeteDeGroupe" "CVAESolde" "CVAEAcompte" "Inconnu" |
{- "EndDate": "2019-08-24T14:15:22Z",
- "Sujet": "string",
- "DeclarationType": "Liasse"
}{- "NumeroADS": "string"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| endDate required | string <date-time> End date of the declaration period |
| declarationType | string Enum: "Liasse" "IS2571" "IS2572" "IS2573" "LiasseTeteDeGroupe" "CVAESolde" "CVAEAcompte" "Inconnu" Declaration type (defaults to Liasse) |
| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate | string <date-time> Start date of the targeted exercise |
| endDate | string <date-time> End date of the targeted exercise |
| declarationType | string Default: "Liasse" Enum: "Liasse" "IS2571" "IS2572" "IS2573" "LiasseTeteDeGroupe" "CVAESolde" "CVAEAcompte" "Inconnu" Type of declaration targeted by the reminders (defaults to Liasse) |
[- {
- "Message": "string",
- "Level": "Warning",
- "DeclarationType": [
- "Liasse"
]
}
]| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate required | string <date-time> Start date of the targeted exercise |
| endDate required | string <date-time> End date of the targeted exercise |
{- "AccountingFolderId": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DisableReadOnlyForms": true,
- "AllowSendingDeclarationWithFscpError": true
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate | string <date-time> Start date of the targeted exercise |
| endDate | string <date-time> End date of the targeted exercise |
| declarationType | string Default: "Liasse" Enum: "Liasse" "IS2571" "IS2572" "IS2573" "LiasseTeteDeGroupe" "CVAESolde" "CVAEAcompte" "Inconnu" Type of the declaration whose EDI file is requested (defaults to Liasse) |
{- "DomainDeclarationId": 0,
- "TeledecId": 0,
- "EdiContent": "string"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| testPayload | boolean Default: false If true, the declaration will not be sent to Teledec |
Set of data required for sending a declaration (check subsets of PublishDeclarationCommand for additional parameters)
| StartDate required | string <date-time> |
| EndDate required | string <date-time> |
| DeclarationType required | string Enum: "Liasse" "IS2571" "IS2572" "IS2573" "LiasseTeteDeGroupe" "CVAESolde" "CVAEAcompte" "Inconnu" |
| DeclarationSourceType required | string Enum: "Manual" "Inqom" |
{- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DeclarationType": "Liasse",
- "DeclarationSourceType": "Manual"
}{- "TeledecUrl": "string",
- "JsonContent": "string",
- "Reminders": [
- {
- "Message": "string",
- "Level": "Warning",
- "DeclarationType": [
- "Liasse"
]
}
], - "TransmissionChannel": "Teledec",
- "DeclarationId": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DeclarationType": "Liasse"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| declarationType | string Enum: "Liasse" "IS2571" "IS2572" "IS2573" "LiasseTeteDeGroupe" "CVAESolde" "CVAEAcompte" "Inconnu" Declaration type |
| bloquerSiIncoherence | boolean Default: true Do not send declaration if errors are detected by Teledec |
Set of data required for sending a declaration (check subsets of PublishExistingDeclarationCommand for additional parameters)
| StartDate required | string <date-time> |
| EndDate required | string <date-time> |
{- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}{- "Message": "string",
- "TeledecId": 0
}| accountingFolderId required | integer <int32> Identifier of the accounting folder. |
| refreshTeledecData | boolean or null When true, refreshes only the Teledec-channel declarations (reconciliation against Teledec). JeDeclare declarations are left untouched. Ignored when refreshData is true. |
| refreshData | boolean or null When true, refreshes declaration data from all providers (Teledec reconciliation + JeDeclare sync). Takes priority over refreshTeledecData when both are supplied. |
[- {
- "Id": 0,
- "Label": "string",
- "DateDebut": "2019-08-24T14:15:22Z",
- "DateFin": "2019-08-24T14:15:22Z",
- "DateEnvoiDGFIP": "2019-08-24T14:15:22Z",
- "DateRetourDGFIP": "2019-08-24T14:15:22Z",
- "LienDeclarationPdf": "string",
- "LienDeclaration": "string",
- "LienAccuseDeReceptionPDF": "string",
- "LienFichierEDI": "string",
- "Status": "None",
- "DeclarationType": "Liasse",
- "DeclarationSourceType": "Manual",
- "ExerciseId": 0,
- "TeledecId": 0,
- "RejectionReason": "string",
- "TransmissionChannel": "Teledec",
- "RejectionReasons": [
- {
- "Formulaire": "string",
- "Code": "string",
- "Libelle": "string"
}
], - "JedeclareNumeroADS": "string"
}
]| accountingFolderId required | integer <int32> Identifier of the accounting folder |
Declarations to add
| AccountingFolderId required | integer <int32> |
Array of objects or null (AddOrUpdateTaxDeclarationCommand) |
{- "AccountingFolderId": 0,
- "Declarations": [
- {
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "Type": "Liasse",
- "Status": "string",
- "Name": "string",
- "TeledecId": 0,
- "TeledecCreationDate": "2019-08-24T14:15:22Z",
- "Links": {
- "DeclarationPdfUrl": "string",
- "DeclarationUrl": "string",
- "ReceiptPDFUrl": "string",
- "EDIFileUrl": "string"
}, - "DeclarationSourceType": "Manual",
- "IsIgnoreWhenRejected": true,
- "RejectionReason": "string"
}
]
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
Declarations to update
| AccountingFolderId required | integer <int32> |
Array of objects or null (AddOrUpdateTaxDeclarationCommand) |
{- "AccountingFolderId": 0,
- "Declarations": [
- {
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "Type": "Liasse",
- "Status": "string",
- "Name": "string",
- "TeledecId": 0,
- "TeledecCreationDate": "2019-08-24T14:15:22Z",
- "Links": {
- "DeclarationPdfUrl": "string",
- "DeclarationUrl": "string",
- "ReceiptPDFUrl": "string",
- "EDIFileUrl": "string"
}, - "DeclarationSourceType": "Manual",
- "IsIgnoreWhenRejected": true,
- "RejectionReason": "string"
}
]
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| StartDate required | string <date-time> Start date of the targeted exercise |
| EndDate required | string <date-time> End date of the targeted exercise |
[- [
- "2019-08-24T14:15:22Z"
]
]| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| declarationId required | integer <int32> Identifier of the declaration |
| downloadType required | string Enum: "Unknown" "Pdf" "Edi" Type of document to download |
"string"