Download OpenAPI specification:
This API hosts the Fred Stability service for the banking rules engine (MTR — Moteur de Règles): the per-accounting-folder allocation rule configuration, the bank stability (reconciliation) process and the consultation of interbank operations. 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.
| Environment | Base URL |
|---|---|
| Production | https://api.inqom.com/stability |
| Staging | https://api-staging.inqom.com/stability |
| accountingFolderId required | integer <int32> Accounting Folder Id |
{- "Accounts": [
- {
- "AccountId": 0,
- "AccountNumber": 0,
- "AccountLabel": "string",
- "SubAccountId": 0,
- "SubAccountCode": "string",
- "SubAccountLabel": "string",
- "IsImpactable": true,
- "IsDividable": true,
- "AccountName": "string",
- "AccountCategory": "ImpactableAccount"
}
]
}| accountingFolderId required | integer <int32> Accounting Folder Id |
{- "RuleSetId": 0,
- "Rules": [
- {
- "IsActive": true,
- "Terms": [
- {
- "PropertyName": "string",
- "OperatorId": "string",
- "Values": [
- "string"
]
}
], - "Actions": [
- {
- "Type": "Unknown",
- "ReallocationParameters": {
- "MatchingAccountExpression": "string",
- "TargetAccountNumber": 0,
- "TargetSubAccountCode": "string",
- "TargetAccountName": "string"
}, - "AddAnalyticTagParameters": {
- "TargetAnalyticAxis": 0,
- "TargetAnalyticTag": 0,
- "Percentage": 0
}, - "AddVatParameters": {
- "VatRate": 0
}, - "SetCategoryParameters": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0
}
}
], - "Label": "string"
}
], - "Definitions": {
- "Properties": [
- {
- "PropertyName": "string",
- "DisplayName": "string",
- "Operators": [
- {
- "Id": "string",
- "ValueTypes": [
- "string"
], - "Label": "string",
- "AllowMultipleValues": true
}
], - "ValueRestrictions": [
- {
- "Value": "string",
- "Label": "string"
}
]
}
]
}, - "ActionDefinitions": [
- {
- "Type": "Unknown",
- "Label": "string"
}
], - "IsActive": true,
- "CreationDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Accounting Folder Id |
{- "RuleSetId": 0,
- "Rules": [
- {
- "IsActive": true,
- "Terms": [
- {
- "PropertyName": "string",
- "OperatorId": "string",
- "Values": [
- "string"
]
}
], - "Actions": [
- {
- "Type": "Unknown",
- "ReallocationParameters": {
- "MatchingAccountExpression": "string",
- "TargetAccountNumber": 0,
- "TargetSubAccountCode": "string",
- "TargetAccountName": "string"
}, - "AddAnalyticTagParameters": {
- "TargetAnalyticAxis": 0,
- "TargetAnalyticTag": 0,
- "Percentage": 0
}, - "AddVatParameters": {
- "VatRate": 0
}, - "SetCategoryParameters": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0
}
}
], - "Label": "string"
}
], - "Definitions": {
- "Properties": [
- {
- "PropertyName": "string",
- "DisplayName": "string",
- "Operators": [
- {
- "Id": "string",
- "ValueTypes": [
- "string"
], - "Label": "string",
- "AllowMultipleValues": true
}
], - "ValueRestrictions": [
- {
- "Value": "string",
- "Label": "string"
}
]
}
]
}, - "ActionDefinitions": [
- {
- "Type": "Unknown",
- "Label": "string"
}
], - "IsActive": true,
- "CreationDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Accounting Folder Id |
{- "RuleSetId": 0,
- "Rules": [
- {
- "IsActive": true,
- "Terms": [
- {
- "PropertyName": "string",
- "OperatorId": "string",
- "Values": [
- "string"
]
}
], - "Actions": [
- {
- "Type": "Unknown",
- "ReallocationParameters": {
- "MatchingAccountExpression": "string",
- "TargetAccountNumber": 0,
- "TargetSubAccountCode": "string",
- "TargetAccountName": "string"
}, - "AddAnalyticTagParameters": {
- "TargetAnalyticAxis": 0,
- "TargetAnalyticTag": 0,
- "Percentage": 0
}, - "AddVatParameters": {
- "VatRate": 0
}, - "SetCategoryParameters": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0
}
}
], - "Label": "string"
}
], - "Definitions": {
- "Properties": [
- {
- "PropertyName": "string",
- "DisplayName": "string",
- "Operators": [
- {
- "Id": "string",
- "ValueTypes": [
- "string"
], - "Label": "string",
- "AllowMultipleValues": true
}
], - "ValueRestrictions": [
- {
- "Value": "string",
- "Label": "string"
}
]
}
]
}, - "ActionDefinitions": [
- {
- "Type": "Unknown",
- "Label": "string"
}
], - "IsActive": true,
- "CreationDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Accounting Folder Id |
{- "Id": 0,
- "AccountingFolderId": 0,
- "IsActive": true,
- "Rules": [
- {
- "RuleId": 0,
- "RuleExpression": "string",
- "IsActive": true,
- "Actions": [
- {
- "ActionId": 0,
- "ActionType": "Unknown",
- "ReallocationParameters": {
- "MatchingAccountExpression": "string",
- "TargetAccountNumber": 0,
- "TargetSubAccountCode": "string",
- "TargetAccountName": "string"
}, - "AddAnalyticTagParameters": {
- "TargetAnalyticAxis": 0,
- "TargetAnalyticTag": 0,
- "Percentage": 0
}, - "AddVatParameters": {
- "VatRate": 0
}, - "SetCategoryParameters": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0
}
}
]
}
]
}| accountingFolderId required | integer <int32> Accounting Folder Id |
Save command
Array of objects or null (CreateRuleFromExpressionCommand) | |
| IsActive required | boolean |
{- "CreateRuleFromExpressionCommands": [
- {
- "UniqueId": "string",
- "Terms": [
- {
- "PropertyName": "string",
- "OperatorId": "string",
- "Values": [
- "string"
]
}
], - "Actions": [
- {
- "Type": "Unknown",
- "ReassignmentParameters": {
- "MatchingAccountExpression": "string",
- "TargetAccountNumber": 0,
- "TargetSubAccountCode": "string",
- "TargetAccountName": "string"
}, - "AddAnalysisCodeParameters": {
- "TargetAnalyticAxis": 0,
- "TargetAnalyticTag": 0,
- "Percentage": 0
}, - "AddVatParameters": {
- "VatRate": 0
}, - "SetCategoryParameters": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0
}
}
], - "IsActive": true,
- "Label": "string"
}
], - "IsActive": true
}{- "SaveResult": {
- "RuleSetId": 0,
- "Rules": [
- {
- "IsActive": true,
- "Terms": [
- {
- "PropertyName": "string",
- "OperatorId": "string",
- "Values": [
- "string"
]
}
], - "Actions": [
- {
- "Type": "Unknown",
- "ReallocationParameters": {
- "MatchingAccountExpression": "string",
- "TargetAccountNumber": 0,
- "TargetSubAccountCode": "string",
- "TargetAccountName": "string"
}, - "AddAnalyticTagParameters": {
- "TargetAnalyticAxis": 0,
- "TargetAnalyticTag": 0,
- "Percentage": 0
}, - "AddVatParameters": {
- "VatRate": 0
}, - "SetCategoryParameters": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0
}
}
], - "Label": "string"
}
], - "IsActive": true,
- "CreationDate": "2019-08-24T14:15:22Z"
}, - "IsSuccess": true,
- "Errors": [
- {
- "RuleUniqueId": "string",
- "ErrorCode": "string"
}
]
}| accountingFolderId required | integer <int32> Accounting Folder Id |
{- "AccountingFolderId": 0,
- "RulesHistory": [
- {
- "AllocationRules": [
- {
- "RuleExpression": "string",
- "Actions": [
- {
- "UniqueId": 0,
- "ActionType": "Unknown",
- "ReallocationAction": {
- "MatchingAccountExpression": "string",
- "TargetAccountNumber": 0,
- "TargetSubAccountCode": "string",
- "TargetAccountName": "string"
}, - "AddAnalyticsAction": {
- "TargetAnalyticAxis": 0,
- "TargetAnalyticTag": 0,
- "Percentage": 0
}, - "AddVatAction": {
- "VatRate": 0
}, - "SetCategoryAction": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0
}
}
], - "IsActive": true,
- "Label": "string"
}
], - "RuleDateVersion": "2019-08-24T14:15:22Z"
}
]
}| accountingFolderId required | integer <int32> Accounting Folder Id |
{- "AccountingFolderId": 0,
- "RulesHistory": [
- {
- "AllocationRules": [
- {
- "RuleExpression": "string",
- "Actions": [
- {
- "UniqueId": 0,
- "ActionType": "Unknown",
- "ReallocationAction": {
- "MatchingAccountExpression": "string",
- "TargetAccountNumber": 0,
- "TargetSubAccountCode": "string",
- "TargetAccountName": "string"
}, - "AddAnalyticsAction": {
- "TargetAnalyticAxis": 0,
- "TargetAnalyticTag": 0,
- "Percentage": 0
}, - "AddVatAction": {
- "VatRate": 0
}, - "SetCategoryAction": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0
}
}
], - "IsActive": true,
- "Label": "string"
}
], - "RuleDateVersion": "2019-08-24T14:15:22Z"
}
]
}| accountingFolderId required | integer <int32> Accounting Folder Id |
List of raw datas
Array of objects or null (GetMatchingRulesQueryInput) |
{- "MatchingRulesQueryInputList": [
- {
- "TransactionId": 0,
- "Label": "string",
- "Amount": 0,
- "OperationCode": "string",
- "BankAccountId": 0,
- "OperationDate": "2019-08-24T14:15:22Z",
- "WithToJustify": true,
- "WithVat": true,
- "WithAnalytic": true,
- "CategoryTagId": 0
}
]
}{- "property1": {
- "RuleExpression": "string",
- "Account": {
- "ContactId": 0,
- "Managed": true,
- "Impactable": true,
- "Dividable": true,
- "Configurable": true,
- "Optional": true,
- "StatusByPeriod": [
- {
- "BeginDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "Status": "string"
}
], - "AuxAccount": 0,
- "Divided": "string",
- "IsAux": true,
- "IsSub": true,
- "MappingAccount": 0,
- "BookOperationId": 0,
- "ValidFrom": "2019-08-24T14:15:22Z",
- "ValidTo": "2019-08-24T14:15:22Z",
- "DeletedAt": "2019-08-24T14:15:22Z",
- "EnterpriseId": 0,
- "AccountId": 0,
- "SubAccountId": 0,
- "Account": 0,
- "AccountClass": 0,
- "AccountLabel": "string",
- "AccountName": "string",
- "AccountDescription": "string",
- "SubAccountLabel": "string",
- "SubAccountCode": "string"
}, - "Label": "string",
- "ToJustify": true,
- "VatAction": {
- "VatRate": 0
}, - "AnalyticActions": [
- {
- "AxisId": 0,
- "Unit": "string",
- "Tags": [
- {
- "TagId": 0,
- "Value": 0
}
]
}
]
}, - "property2": {
- "RuleExpression": "string",
- "Account": {
- "ContactId": 0,
- "Managed": true,
- "Impactable": true,
- "Dividable": true,
- "Configurable": true,
- "Optional": true,
- "StatusByPeriod": [
- {
- "BeginDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "Status": "string"
}
], - "AuxAccount": 0,
- "Divided": "string",
- "IsAux": true,
- "IsSub": true,
- "MappingAccount": 0,
- "BookOperationId": 0,
- "ValidFrom": "2019-08-24T14:15:22Z",
- "ValidTo": "2019-08-24T14:15:22Z",
- "DeletedAt": "2019-08-24T14:15:22Z",
- "EnterpriseId": 0,
- "AccountId": 0,
- "SubAccountId": 0,
- "Account": 0,
- "AccountClass": 0,
- "AccountLabel": "string",
- "AccountName": "string",
- "AccountDescription": "string",
- "SubAccountLabel": "string",
- "SubAccountCode": "string"
}, - "Label": "string",
- "ToJustify": true,
- "VatAction": {
- "VatRate": 0
}, - "AnalyticActions": [
- {
- "AxisId": 0,
- "Unit": "string",
- "Tags": [
- {
- "TagId": 0,
- "Value": 0
}
]
}
]
}
}Labels for word embeddings computing
[- "string"
][- {
- "Label": "string",
- "Embeddings": [
- 0.1
]
}
]| accountingFolderId required | integer <int32> |
Array of objects or null (MatchTransactionCategoriesQueryInput) |
{- "Transactions": [
- {
- "TransactionId": 0,
- "Label": "string",
- "Amount": 0,
- "OperationCode": "string",
- "BankAccountId": 0,
- "ExternalCategoryId": 0
}
]
}{- "property1": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0,
- "Origin": "Rule"
}, - "property2": {
- "AnalyticAxisId": 0,
- "CategoryTagId": 0,
- "Origin": "Rule"
}
}