Table of Contents

Guide de migration

Catégorie : Core
Domaine : Comptabilite
Service : FiscalYear
Méthode : GetAllFiscalYear

Contrat de la V1

Verbe : GET
URL : https://cegid-expert-webapi-core.cegid.com/Comptabilite/FiscalYearWebService/GetAllFiscalYear
Paramètres : Aucun
Réponse :
La réponse est une collection de tous les exercices fiscaux.

[
    {
        "id": "011",
        "description": "Exercice 2019",
        "shortDescription": "Exercice 2019",
        "dateStart": "2019-01-01T00:00:00",
        "dateEnd": "2019-12-31T00:00:00",
        "stateComptable": "OUV"
    },
    {
        "id": "010",
        "description": "Exercice 2018",
        "shortDescription": "Exercice 2018",
        "dateStart": "2018-01-01T00:00:00",
        "dateEnd": "2018-12-31T00:00:00",
        "stateComptable": "OUV"
    },
    {...},
    {...},
    {...},
    {...},
    {...},
    {...},
    {.},
    {...},
    {
        "id": "001",
        "description": "du 01/01/2009 au 31/12/2009",
        "shortDescription": "du 01/01/2009 ",
        "dateStart": "2009-01-01T00:00:00",
        "dateEnd": "2009-12-31T00:00:00",
        "stateComptable": "CDE"
    }
]

Contrat de la V2

Verbe : GET
URL : https://api.cegid.com/cpa-expert-coreComptabilite/FiscalYearConsultationWebService/GetAllFiscalYear Paramètres : Aucun
Réponse :
Le retour renvoie plus d’informations dans la V2.
Elles sont également organisées différemment.
Mais les informations disponibles dans la V1 le sont toujours dans la V2.

{
    "fiscalYears": [
        {
            "id": "011",
            "description": "Exercice 2019",
            "shortDescription": "Exercice 2019",
            "dateStart": "2019-01-01T00:00:00",
            "dateEnd": "2019-12-31T00:00:00",
            "stateComptableId": 1,
            "stateComptableCode": "OUV",
            "stateComptableDescription": "Ouvert"
        },
        {
            "id": "010",
            "description": "Exercice 2018",
            "shortDescription": "Exercice 2018",
            "dateStart": "2018-01-01T00:00:00",
            "dateEnd": "2018-12-31T00:00:00",
            "stateComptableId": 1,
            "stateComptableCode": "OUV",
            "stateComptableDescription": "Ouvert"
        },
        {...},
        {...},
        {...},
        {...},
        {...},
        {...},
        {...},
        {
            "id": "001",
            "description": "du 01/01/2009 au 31/12/2009",
            "shortDescription": "du 01/01/2009 ",
            "dateStart": "2009-01-01T00:00:00",
            "dateEnd": "2009-12-31T00:00:00",
            "stateComptableId": 3,
            "stateComptableCode": "CDE",
            "stateComptableDescription": "Clôturé définitivement"
        }
    ]
}