Fred PermanentFile Api (v1)

Download OpenAPI specification:

Fred Permanent File API

This API manages the permanent file (dossier permanent) of an accounting folder: long-lived reference data attached to a company such as buildings, shareholders, agricultural activities, accounting policies and account certifications. 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/permanent-file
Staging https://api-staging.inqom.com/permanent-file

AccountCertificationAccountCertificationInstance

Récupération de toutes les attestations par identifiant de dossier

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

AccountingFolderId

Responses

Response samples

Content type
[
  • {
    }
]

Création d'une attestation

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

AccountingFolderId

Request Body schema: multipart/form-data
FormData.StartDate
required
string <date-time>

Period start date

FormData.EndDate
required
string <date-time>

Period end date

FormData.PdfFile
string <binary>

Uploaded PDF

FormData.ProvidedPdfFilename
string

Provided PDF filename (optional if PdfFile is provided as MemoryStream)

FormData.RawText
string

Raw Text

Responses

Response samples

Content type
0
0

Récupération d'une attestation par identifiant d'attestation

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

AccountingFolderId

accountCertificationId
required
integer <int32>

AccountCertificationId

Responses

Response samples

Content type
{
  • "CertificateId": 0,
  • "AccountingFolderId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "FileName": "string",
  • "PublicUrl": "string",
  • "PrivateUrl": "string",
  • "Size": 0,
  • "HtmlRawText": "string",
  • "Attestation": {
    }
}

Suppression d'une attestation par identifiant

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

AccountingFolderId

accountCertificationId
required
integer <int32>

AccountCertificationId

Responses

Récupération d'une attestation par période

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

AccountingFolderId

query Parameters
StartDate
required
string <date-time>

Début de la période

EndDate
required
string <date-time>

Fin de la période

Responses

Response samples

Content type
{
  • "CertificateId": 0,
  • "AccountingFolderId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "FileName": "string",
  • "PublicUrl": "string",
  • "PrivateUrl": "string",
  • "Size": 0,
  • "HtmlRawText": "string",
  • "Attestation": {
    }
}

Création d'une attestation depuis un template

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

AccountingFolderId

Request Body schema: multipart/form-data
FormData.StartDate
required
string <date-time>

Period start date

FormData.EndDate
required
string <date-time>

Period end date

FormData.PdfFile
string <binary>

Uploaded PDF. When provided, the template body fields are ignored.

FormData.ProvidedPdfFilename
string

Provided PDF filename (optional, used when PdfFile is provided)

FormData.Header
string

En-tête de l'attestation

FormData.Footer
string

Pied de page de l'attestation

FormData.ThemeId
integer <int32>

Thème de plaquette utilisé pour générer les états financiers

FormData.CreationDate
string <date-time>

Date de création affichée sur l'attestation

FormData.Location
string

Lieu affiché sur l'attestation

FormData.Issuers
string

Émetteurs de l'attestation (2 maximum). À envoyer sous forme de tableau JSON sérialisé en string. Exemple : [{"FullName":"John","Position":"CEO"}]

FormData.Lines
string

Lignes de l'état SyntheseDesComptes à afficher sur l'attestation. À envoyer sous forme de tableau JSON sérialisé en string. Exemple : [{"Identifier":"ROW_A","Label":"Ventes","Value":1234.56}]

Responses

Response samples

Content type
0
0

Rafraîchit la dernière attestation générée pour la période fournie : re-résout les valeurs FSCP (SyntheseDesComptes / Montant) pour les lignes stockées, re-génère le PDF avec le thème demandé (à défaut celui déjà enregistré) et remplace le blob associé.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

AccountingFolderId

query Parameters
StartDate
required
string <date-time>

Début de la période

EndDate
required
string <date-time>

Fin de la période

ThemeId
integer or null <int32>

Thème de plaquette à appliquer au PDF régénéré. Non fourni : le thème déjà enregistré sur l'attestation est conservé.

Responses

Response samples

Content type
{
  • "CertificateId": 0,
  • "AccountingFolderId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "FileName": "string",
  • "PublicUrl": "string",
  • "PrivateUrl": "string",
  • "Size": 0,
  • "HtmlRawText": "string",
  • "Attestation": {
    }
}

AccountingPolicies

PermanentFileAccountingPolicies_Get Deprecated

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
{
  • "Answers": [
    ]
}

PermanentFileAccountingPolicies_Save Deprecated

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
required
object (AccountingPolicies)

Responses

Request samples

Content type
{
  • "AccountingPolicies": {
    }
}

Response samples

Content type
{
  • "FullName": "string",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

PermanentFileAccountingPolicies_GetAllAccountingPolicies

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileAccountingPolicies_GetByExerciceId

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
exerciseId
required
integer <int32>
query Parameters
chartOfAccountsType
string

Responses

Response samples

Content type
{
  • "Groups": [
    ],
  • "User": {
    }
}

PermanentFileAccountingPolicies_SaveByExerciseId

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
exerciseId
required
integer <int32>
Request Body schema:
required
required
object (AccountingPolicies)

Responses

Request samples

Content type
{
  • "AccountingPolicies": {
    }
}

Response samples

Content type
{
  • "FullName": "string",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

AgriculturalAgricultural

Retrieves a list of eligible persons for applicable agricultural measures within the specified accounting folder.

This method requires the caller to have read access to the Permanent File resource.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder. Must be a positive integer greater than 0.

Responses

Response samples

Content type
[
  • {
    }
]

Retrieves the agricultural identifiers associated with the specified accounting folder.

This endpoint returns a 200 OK response with the agricultural identifiers if the request is successful. It may also return a 400 Bad Request response if the input is invalid.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder. Must be a positive integer greater than or equal to 1.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Bdni": "string",
  • "Msa": "string",
  • "Pacage": "string",
  • "PrimaryBreedingNumber": "string",
  • "SecondaryBreedingNumber": "string",
  • "TernaryBreedingNumber": "string"
}

Creates agricultural identifiers for a specified accounting folder.

Possible HTTP response codes:

  • 200 OK: The agricultural identifiers were successfully created.
  • 400 Bad Request: The request data is invalid.
  • 409 Conflict: A conflict occurred while creating the identifiers.
  • 417 Expectation Failed: The operation could not be completed as expected.
Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder. Must be a positive integer greater than zero.

Request Body schema: application/json
required

The command containing the details of the agricultural identifiers to be created.

Bdni
string or null
Msa
string or null
Pacage
string or null
PrimaryBreedingNumber
string or null
SecondaryBreedingNumber
string or null
TernaryBreedingNumber
string or null

Responses

Request samples

Content type
application/json
{
  • "Bdni": "string",
  • "Msa": "string",
  • "Pacage": "string",
  • "PrimaryBreedingNumber": "string",
  • "SecondaryBreedingNumber": "string",
  • "TernaryBreedingNumber": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Bdni": "string",
  • "Msa": "string",
  • "Pacage": "string",
  • "PrimaryBreedingNumber": "string",
  • "SecondaryBreedingNumber": "string",
  • "TernaryBreedingNumber": "string"
}

Updates the agricultural identifiers for a specified accounting folder.

Possible HTTP response codes:

  • 200 OK: The agricultural identifiers were successfully updated.
  • 400 Bad Request: The request data is invalid.
  • 404 Not Found: The specified accounting folder does not exist.
  • 417 Expectation Failed: The operation could not be completed as expected.
Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder. Must be a positive integer greater than zero.

Request Body schema: application/json
required

The command containing the updated agricultural identifiers, including administrative and breeding identifiers.

Bdni
string or null
Msa
string or null
Pacage
string or null
PrimaryBreedingNumber
string or null
SecondaryBreedingNumber
string or null
TernaryBreedingNumber
string or null

Responses

Request samples

Content type
application/json
{
  • "Bdni": "string",
  • "Msa": "string",
  • "Pacage": "string",
  • "PrimaryBreedingNumber": "string",
  • "SecondaryBreedingNumber": "string",
  • "TernaryBreedingNumber": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Bdni": "string",
  • "Msa": "string",
  • "Pacage": "string",
  • "PrimaryBreedingNumber": "string",
  • "SecondaryBreedingNumber": "string",
  • "TernaryBreedingNumber": "string"
}

AgriculturalAgriculturalActivities

Get the reference list of all agricultural activities (catalog), independent of the accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The identifier of the accounting folder (not used in the query, kept for route consistency and authorization).

Responses

Response samples

Content type
[
  • {
    }
]

Get harvested quantity units.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The identifier of the accounting folder (not used in the query, kept for route consistency and authorization).

Responses

Response samples

Content type
[
  • {
    }
]

Get agricultural folder activities for the specified accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The identifier of the accounting folder.

Responses

Response samples

Content type
[
  • {
    }
]

Create a new agricultural folder activity for the specified accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The identifier of the accounting folder.

Request Body schema:
required

The creation command describing the agricultural folder activity to create.

StartDate
required
string <date-time>
EndDate
required
string <date-time>
DairyContractQuantity
required
number <decimal>
DirectSalesQuantity
required
number <decimal>
IncludingThoseSoldInDairiesQuantity
required
number <decimal>
IncludingInternalTransfersQuantity
required
number <decimal>
IncludingThoseSoldDirectly
required
number <decimal>
IncludingTransformed
required
number <decimal>
Array of objects or null (CreatePlantProductionCommandModel)
Array of objects or null (CreateAnimalProductionCommandModel)

Responses

Request samples

Content type
{
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "DairyContractQuantity": 0,
  • "DirectSalesQuantity": 0,
  • "IncludingThoseSoldInDairiesQuantity": 0,
  • "IncludingInternalTransfersQuantity": 0,
  • "IncludingThoseSoldDirectly": 0,
  • "IncludingTransformed": 0,
  • "PlantProductions": [
    ],
  • "AnimalProductions": [
    ]
}

Response samples

Content type
0
0

Delete an agricultural folder activity for the specified accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The identifier of the accounting folder.

agriculturalFolderActivityId
required
integer <int32>

The identifier of the agricultural folder activity to delete.

Responses

Update an existing agricultural folder activity for the specified accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The identifier of the accounting folder.

agriculturalFolderActivityId
required
integer <int32>

The identifier of the agricultural folder activity to update.

Request Body schema:
required

The update command describing the new values for the agricultural folder activity.

DairyContractQuantity
required
number <decimal>
DirectSalesQuantity
required
number <decimal>
IncludingThoseSoldInDairiesQuantity
required
number <decimal>
IncludingInternalTransfersQuantity
required
number <decimal>
IncludingThoseSoldDirectly
required
number <decimal>
IncludingTransformed
required
number <decimal>
Array of objects or null (CreatePlantProductionCommandModel)
Array of objects or null (UpdatePlantProductionCommandModel)
Array of objects or null (CreateAnimalProductionCommandModel)
Array of objects or null (UpdateAnimalProductionCommandModel)

Responses

Request samples

Content type
{
  • "DairyContractQuantity": 0,
  • "DirectSalesQuantity": 0,
  • "IncludingThoseSoldInDairiesQuantity": 0,
  • "IncludingInternalTransfersQuantity": 0,
  • "IncludingThoseSoldDirectly": 0,
  • "IncludingTransformed": 0,
  • "NewPlantProductions": [
    ],
  • "UpdatedPlantProductions": [
    ],
  • "NewAnimalProductions": [
    ],
  • "UpdatedAnimalProductions": [
    ]
}

Export agricultural activities for the specified accounting folder and exercise period.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The identifier of the accounting folder.

query Parameters
startDate
required
string <date-time>

The start date of the exercise period.

endDate
required
string <date-time>

The end date of the exercise period.

Responses

Response samples

Content type
"string"

AgriculturalAgriculturalApefAggregator

PermanentFileAgriculturalApefAggregator_GetAgriculturalApefAggregator

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

Responses

Response samples

Content type
{
  • "ExceptionalAgriculturalIncomeViewModels": [
    ],
  • "PrecautionarySavingDeductionViewModels": [
    ],
  • "AgriculturalProductionMeanViewModels": [
    ],
  • "ThreeYearAverageViewModels": [
    ],
  • "WorkforceReadViewModels": [
    ],
  • "YoungFarmerProfitAllowanceViewModels": [
    ],
  • "EligiblePersonsViewModels": [
    ],
  • "AgriculturalIdentifiers": {
    }
}

AgriculturalExceptionalAgriculturalIncome

Get the exceptional agricultural incomes for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

UpSert exceptional agricultural incomes for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
required
Array of objects or null (UpsertExceptionalAgriculturalIncomeRequest)

Responses

Request samples

Content type
{
  • "ReaList": [
    ]
}

Delete exceptional agricultural income for the given accounting folder and identifier.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
exceptionalAgriculturalIncomeId
required
integer <int32>
eligiblePersonId
required
integer <int32>

Responses

AgriculturalPrecautionarySavingsDeduction

Get Precautionary Saving Deductions for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

Add Precautionary Saving Deduction for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
ExerciseSavingDate
required
string <date-time>
AmountDeducted
required
number <decimal>
required
Array of objects or null (SavingDeductionExerciceCreationRequest)

Responses

Request samples

Content type
{
  • "ExerciseSavingDate": "2019-08-24T14:15:22Z",
  • "AmountDeducted": 0,
  • "SavingDeductionExercices": [
    ]
}

Response samples

Content type
{
  • "Id": 0,
  • "ExerciseSavingDate": "2019-08-24T14:15:22Z",
  • "AmountDeducted": 0,
  • "SavingDeductionExercices": [
    ]
}

Update Precautionary Saving Deduction for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
precautionarySavingDeductionId
required
integer <int32>
Request Body schema:
required
AmountDeducted
required
number <decimal>
required
Array of objects or null (SavingDeductionExerciceUpdateRequest)

Responses

Request samples

Content type
{
  • "AmountDeducted": 0,
  • "SavingDeductionExercices": [
    ]
}

Response samples

Content type
{
  • "Id": 0,
  • "ExerciseSavingDate": "2019-08-24T14:15:22Z",
  • "AmountDeducted": 0,
  • "SavingDeductionExercices": [
    ]
}

Delete Precautionary Saving Deduction for the given accounting folder and identifier.

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

Responses

AgriculturalProductionMean

PermanentFileProductionMean_GetAgriculturalProductionMeansByAccountingFolderId

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileProductionMean_CreateAgriculturalProductionMeans

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
OwnedLands
required
number <decimal>
LeasedLands
required
number <decimal>
SharecroppedLands
required
number <decimal>
LandsProvidedByTenantPartner
required
number <decimal>
LandsProvidedByOwnerPartner
required
number <decimal>
OtherProvidedLands
required
number <decimal>
OtherSurfaces
required
number <decimal>
UtilizedAgriculturalArea
required
number <decimal>
EligibleForEuropeanSubsidies
required
number <decimal>
IrrigatedLands
required
number <decimal>
DrainedLands
required
number <decimal>
OrganicFarmingLands
required
number <decimal>
OwnedBuildings
required
number <decimal>
BareOwnershipBuildings
required
number <decimal>
LeasedBuildings
required
number <decimal>
OtherBuildings
required
number <decimal>
OtherBuildingsComment
string or null
StartDate
required
string <date-time>
EndDate
required
string <date-time>

Responses

Request samples

Content type
{
  • "OwnedLands": 0,
  • "LeasedLands": 0,
  • "SharecroppedLands": 0,
  • "LandsProvidedByTenantPartner": 0,
  • "LandsProvidedByOwnerPartner": 0,
  • "OtherProvidedLands": 0,
  • "OtherSurfaces": 0,
  • "UtilizedAgriculturalArea": 0,
  • "EligibleForEuropeanSubsidies": 0,
  • "IrrigatedLands": 0,
  • "DrainedLands": 0,
  • "OrganicFarmingLands": 0,
  • "OwnedBuildings": 0,
  • "BareOwnershipBuildings": 0,
  • "LeasedBuildings": 0,
  • "OtherBuildings": 0,
  • "OtherBuildingsComment": "string",
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
0
0

PermanentFileProductionMean_UpdateAgriculturalProductionMeans

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
productionMeanId
required
integer <int32>
Request Body schema:
OwnedLands
required
number <decimal>
LeasedLands
required
number <decimal>
SharecroppedLands
required
number <decimal>
LandsProvidedByTenantPartner
required
number <decimal>
LandsProvidedByOwnerPartner
required
number <decimal>
OtherProvidedLands
required
number <decimal>
OtherSurfaces
required
number <decimal>
UtilizedAgriculturalArea
required
number <decimal>
EligibleForEuropeanSubsidies
required
number <decimal>
IrrigatedLands
required
number <decimal>
DrainedLands
required
number <decimal>
OrganicFarmingLands
required
number <decimal>
OwnedBuildings
required
number <decimal>
BareOwnershipBuildings
required
number <decimal>
LeasedBuildings
required
number <decimal>
OtherBuildings
required
number <decimal>
OtherBuildingsComment
string or null

Responses

Request samples

Content type
{
  • "OwnedLands": 0,
  • "LeasedLands": 0,
  • "SharecroppedLands": 0,
  • "LandsProvidedByTenantPartner": 0,
  • "LandsProvidedByOwnerPartner": 0,
  • "OtherProvidedLands": 0,
  • "OtherSurfaces": 0,
  • "UtilizedAgriculturalArea": 0,
  • "EligibleForEuropeanSubsidies": 0,
  • "IrrigatedLands": 0,
  • "DrainedLands": 0,
  • "OrganicFarmingLands": 0,
  • "OwnedBuildings": 0,
  • "BareOwnershipBuildings": 0,
  • "LeasedBuildings": 0,
  • "OtherBuildings": 0,
  • "OtherBuildingsComment": "string"
}

PermanentFileProductionMean_DeleteAgriculturalProductionMeans

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

Responses

PermanentFileProductionMean_ExportProductionMeans

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
query Parameters
startDate
required
string <date-time>
endDate
required
string <date-time>

Responses

Response samples

Content type
"string"

AgriculturalThreeYearAverage

Get the three-year averages for the given accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

Upsert the three-year averages for the given accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
Array
PersonId
required
integer <int32>
PersonType
required
string
Enum: "Unknown" "NaturalPerson" "LegalPerson"
required
Array of objects or null (UpsertThreeYearAveragesPeriod)

Responses

Request samples

Content type
[
  • {
    }
]

Delete the three-year average for the given route arguments

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
beneficiaryId
required
integer <int32>
periodId
required
integer <int32>

Responses

AgriculturalWorkforces

Get human workforce information for specified AccountingFolderId and ExerciseId.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The ID of the accounting folder.

exerciseId
required
integer <int32>

The ID of the Exercise.

Responses

Response samples

Content type
{
  • "AccountingFolderId": 0,
  • "ExerciseId": 0,
  • "ExternalWorkforce": {
    },
  • "SalariedWorkforce": {
    },
  • "NonSalariedWorkforce": {
    }
}

Create human workforce information for specified AccountingFolderId and ExerciseId.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The ID of the accounting folder.

exerciseId
required
integer <int32>

The ID of the Exercise.

Request Body schema: application/json

The content used to create human workforce information.

object (ExternalWorkforceWriteDto)
object (SalariedWorkforceWriteDto)
object (NonSalariedWorkforceWriteDto)

Responses

Request samples

Content type
application/json
{
  • "ExternalWorkforce": {
    },
  • "SalariedWorkforce": {
    },
  • "NonSalariedWorkforce": {
    }
}

Response samples

Content type
{
  • "AccountingFolderId": 0,
  • "ExerciseId": 0,
  • "ExternalWorkforce": {
    },
  • "SalariedWorkforce": {
    },
  • "NonSalariedWorkforce": {
    }
}

Update human workforce information for specified AccountingFolderId and ExerciseId.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The ID of the accounting folder.

exerciseId
required
integer <int32>

The ID of the Exercise.

Request Body schema: application/json

The content used to fully update human workforce information.

object (ExternalWorkforceWriteDto)
object (SalariedWorkforceWriteDto)
object (NonSalariedWorkforceWriteDto)

Responses

Request samples

Content type
application/json
{
  • "ExternalWorkforce": {
    },
  • "SalariedWorkforce": {
    },
  • "NonSalariedWorkforce": {
    }
}

Response samples

Content type
{
  • "AccountingFolderId": 0,
  • "ExerciseId": 0,
  • "ExternalWorkforce": {
    },
  • "SalariedWorkforce": {
    },
  • "NonSalariedWorkforce": {
    }
}

Remove human workforce information for specified AccountingFolderId and ExerciseId.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The ID of the accounting folder.

exerciseId
required
integer <int32>

The ID of the Exercise.

Responses

Get human workforce information collection for specified AccountingFolderId.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The ID of the accounting folder.

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileWorkforces_Export

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
query Parameters
startDate
required
string <date-time>
endDate
required
string <date-time>

Responses

Response samples

Content type
"string"

AgriculturalYoungFarmerProfitAllowance

Get the young farmer profit allowances for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

Create young farmer profit allowances for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
Array
PersonId
required
integer <int32>
Type
required
string
Enum: "Unknown" "NaturalPerson" "LegalPerson"
GrantDate
required
string <date-time>
ApplicationStartDate
required
string <date-time>
ApplicationEndDate
required
string <date-time>
InstallationJaDate
string or null <date-time>

Responses

Request samples

Content type
[
  • {
    }
]

Response samples

Content type
[
  • {
    }
]

Update young farmer profit allowances for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
Array
Id
required
integer <int32>
GrantDate
required
string <date-time>
ApplicationStartDate
required
string <date-time>
ApplicationEndDate
required
string <date-time>
InstallationJaDate
string or null <date-time>

Responses

Request samples

Content type
[
  • {
    }
]

Response samples

Content type
[
  • {
    }
]

Delete young farmer profit allowance for the given accounting folder and identifier.

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

Responses

BlocNotes

Get all notes for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

Add note for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
Title
string or null
Content
string or null

Responses

Request samples

Content type
{
  • "Title": "string",
  • "Content": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "Title": "string",
  • "Content": "string",
  • "LastUpdateDate": "2019-08-24T14:15:22Z",
  • "EditorId": 0
}

Update note for the given accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
noteId
required
integer <int32>
Request Body schema:
required
Title
string or null
Content
string or null

Responses

Request samples

Content type
{
  • "Title": "string",
  • "Content": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "Title": "string",
  • "Content": "string",
  • "LastUpdateDate": "2019-08-24T14:15:22Z",
  • "EditorId": 0
}

Delete note for the given accounting folder.

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

Responses

Building

PermanentFileBuilding_GetBuildingsByAccountingFolderId

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileBuilding_CreateBuilding

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
PurchaseDate
required
string <date-time>
ExitDate
string or null <date-time>
object (LocationCommand)
BuildingNumber
required
string non-empty
Nature
required
string
Enum: "NotSet" "U" "R" "IR" "AP" "M" "P" "AU"
IsBuilt
required
string
Enum: "NotSet" "B" "NB"
SpecificDeduction
integer or null <int32>
AmortizationDeduction
integer or null <int32>
PremisesCount
integer or null <int32>
FreeBeneficiaryLegalPersonIds
Array of integers or null <int32> [ items <int32 > ]
FreeBeneficiaryNaturalPersonIds
Array of integers or null <int32> [ items <int32 > ]

Responses

Request samples

Content type
{
  • "PurchaseDate": "2019-08-24T14:15:22Z",
  • "ExitDate": "2019-08-24T14:15:22Z",
  • "Address": {
    },
  • "BuildingNumber": "string",
  • "Nature": "NotSet",
  • "IsBuilt": "NotSet",
  • "SpecificDeduction": 0,
  • "AmortizationDeduction": 0,
  • "PremisesCount": 0,
  • "FreeBeneficiaryLegalPersonIds": [
    ],
  • "FreeBeneficiaryNaturalPersonIds": [
    ]
}

Response samples

Content type
0
0

PermanentFileBuilding_GetBuildingNumberAlreadyExists

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
query Parameters
buildingNumber
string

Responses

Response samples

Content type
true

PermanentFileBuilding_GetBuildingById

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

Responses

Response samples

Content type
{
  • "Id": 0,
  • "Address": {
    },
  • "BuildingNumber": "string",
  • "Nature": {
    },
  • "PurchaseDate": "2019-08-24T14:15:22Z",
  • "ExitDate": "2019-08-24T14:15:22Z",
  • "IsBuilt": {
    },
  • "SpecificDeduction": {
    },
  • "AmortizationDeduction": {
    },
  • "PremisesCount": 0,
  • "TagId": 0,
  • "FreeBeneficiaryLegalPersonIds": [
    ],
  • "FreeBeneficiaryNaturalPersonIds": [
    ],
  • "IsDeletable": true
}

PermanentFileBuilding_UpdateBuilding

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
buildingId
required
integer <int32>
Request Body schema:
PurchaseDate
required
string <date-time>
ExitDate
string or null <date-time>
object (LocationCommand)
BuildingNumber
required
string non-empty
Nature
required
string
Enum: "NotSet" "U" "R" "IR" "AP" "M" "P" "AU"
IsBuilt
required
string
Enum: "NotSet" "B" "NB"
SpecificDeduction
integer or null <int32>
AmortizationDeduction
integer or null <int32>
PremisesCount
integer or null <int32>
FreeBeneficiaryLegalPersonIds
Array of integers or null <int32> [ items <int32 > ]
FreeBeneficiaryNaturalPersonIds
Array of integers or null <int32> [ items <int32 > ]

Responses

Request samples

Content type
{
  • "PurchaseDate": "2019-08-24T14:15:22Z",
  • "ExitDate": "2019-08-24T14:15:22Z",
  • "Address": {
    },
  • "BuildingNumber": "string",
  • "Nature": "NotSet",
  • "IsBuilt": "NotSet",
  • "SpecificDeduction": 0,
  • "AmortizationDeduction": 0,
  • "PremisesCount": 0,
  • "FreeBeneficiaryLegalPersonIds": [
    ],
  • "FreeBeneficiaryNaturalPersonIds": [
    ]
}

PermanentFileBuilding_DeleteBuilding

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

Responses

PermanentFileBuilding_GetBuildingFreeBeneficiariesByBuildingId

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

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileBuilding_GetAllFreeBeneficiariesForAccountingFolderId

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileBuilding_CreateBuildingFreeBeneficiary

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
buildingId
required
integer <int32>
Request Body schema:
FreeBeneficiaryLegalPersonId
integer or null <int32>
FreeBeneficiaryNaturalPersonId
integer or null <int32>

Responses

Request samples

Content type
{
  • "FreeBeneficiaryLegalPersonId": 0,
  • "FreeBeneficiaryNaturalPersonId": 0
}

PermanentFileBuilding_DeleteBuildingFreeBeneficiary

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
buildingId
required
integer <int32>
query Parameters
freeBeneficiaryLegalPersonId
integer or null <int32>
freeBeneficiaryNaturalPersonId
integer or null <int32>

Responses

BuildingApefAggregator

PermanentFileBuildingApefAggregator_GetAgriculturalApefAggregator

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

Responses

Response samples

Content type
{
  • "BuildingViewModels": [
    ],
  • "BuildingSpecificDeductionViewModels": [
    ],
  • "BuildingAmortizationDeductionViewModels": [
    ],
  • "FreeBeneficiaryWithBuildingViewModels": [
    ],
  • "CountryCodes": [
    ]
}

BuildingReferential

PermanentFileBuildingReferential_GetAllNatures

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileBuildingReferential_GetAllIsBuiltTypes

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileBuildingReferential_GetAllSpecificDeductions

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileBuildingReferential_GetAllAmortizationDeductions

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

CodesNaf

PermanentFileCodesNaf_GetAllCodesNaf

Authorizations:
oauth2
query Parameters
revision
string
Default: "NafRev2"
Enum: "NafRev2" "Naf2025"

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileCodesNaf_GetCodeNafByCode

Authorizations:
oauth2
path Parameters
code
required
string

Responses

Response samples

Content type
[
  • {
    }
]

PermanentFileCodesNaf_GetCodeNafById

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

Responses

Response samples

Content type
{
  • "Id": 0,
  • "Code": "string",
  • "Label": "string",
  • "LabelOn40": "string",
  • "LabelOn65": "string",
  • "Revision": "NafRev2"
}

FiscalTaxComplianceReviewers

Retrieves the tax compliance reviewer information for a specified accounting folder.

This method requires the caller to have the appropriate permissions to access the tax compliance reviewer data.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder for which the tax compliance reviewer is to be retrieved.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "Name": "string",
  • "Siren": "string",
  • "NameComplement1": "string",
  • "NameComplement2": "string",
  • "Address": "string",
  • "AddressComplement": "string",
  • "Locality": "string",
  • "City": "string",
  • "CountryId": 0,
  • "ZipCode": "string"
}

Creates the tax compliance reviewer for a specified accounting folder.

This method requires the caller to have the appropriate permissions to manage the tax compliance reviewer data.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder for which the tax compliance reviewer is to be created.

Request Body schema: application/json

The content used to create the tax compliance reviewer.

Name
required
string or null
Siren
string or null
CountryId
integer or null <int32> [ 1 .. 2147483647 ]
NameComplement1
string or null
NameComplement2
string or null
Address
string or null
AddressComplement
string or null
Locality
string or null
ZipCode
string or null
City
string or null

Responses

Request samples

Content type
application/json
{
  • "Name": "string",
  • "Siren": "string",
  • "CountryId": 1,
  • "NameComplement1": "string",
  • "NameComplement2": "string",
  • "Address": "string",
  • "AddressComplement": "string",
  • "Locality": "string",
  • "ZipCode": "string",
  • "City": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "Name": "string",
  • "Siren": "string",
  • "NameComplement1": "string",
  • "NameComplement2": "string",
  • "Address": "string",
  • "AddressComplement": "string",
  • "Locality": "string",
  • "City": "string",
  • "CountryId": 0,
  • "ZipCode": "string"
}

Updates the tax compliance reviewer of a specified accounting folder.

This method requires the caller to have the appropriate permissions to manage the tax compliance reviewer data.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder whose tax compliance reviewer is to be updated.

Request Body schema: application/json

The content used to fully update the tax compliance reviewer.

Name
required
string or null
Siren
string or null
CountryId
integer or null <int32> [ 1 .. 2147483647 ]
NameComplement1
string or null
NameComplement2
string or null
Address
string or null
AddressComplement
string or null
Locality
string or null
ZipCode
string or null
City
string or null

Responses

Request samples

Content type
application/json
{
  • "Name": "string",
  • "Siren": "string",
  • "CountryId": 1,
  • "NameComplement1": "string",
  • "NameComplement2": "string",
  • "Address": "string",
  • "AddressComplement": "string",
  • "Locality": "string",
  • "ZipCode": "string",
  • "City": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "Name": "string",
  • "Siren": "string",
  • "NameComplement1": "string",
  • "NameComplement2": "string",
  • "Address": "string",
  • "AddressComplement": "string",
  • "Locality": "string",
  • "City": "string",
  • "CountryId": 0,
  • "ZipCode": "string"
}

Deletes the tax compliance reviewer of a specified accounting folder.

This method requires the caller to have the appropriate permissions to manage the tax compliance reviewer data.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder whose tax compliance reviewer is to be deleted.

Responses

Determines whether a tax compliance reviewer exists for a specified accounting folder.

This method requires the caller to have the appropriate permissions to access the tax compliance reviewer data.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32> [ 1 .. 2147483647 ]

The unique identifier of the accounting folder for which the existence of a tax compliance reviewer is checked.

Responses

Response samples

Content type
true

PolicyQuestion

PermanentFilePolicyQuestion_GetAll

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
{
  • "Groups": [
    ],
  • "User": {
    }
}

PolicyQuestionAdmin

ReferencedPersons

Get the persons referenced by the permanent file of the given accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
[
  • {
    }
]

Replace the person ids referenced by the permanent file of the given accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
Array
SourcePersonId
required
integer <int32>
DestinationPersonId
required
integer <int32>
PersonType
required
string
Enum: "Unknown" "NaturalPerson" "LegalPerson"

Responses

Request samples

Content type
[
  • {
    }
]

Shareholders

PermanentFileShareholders_Export

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
"string"