Fred CashBook Api (v1)

Download OpenAPI specification:

Fred CashBook API

This API manages cash books (livres de caisse): the daily recording of cash receipts and cash payments per accounting folder, their categories (receipt/expense categories), payment methods, settings and the push of cash entries to the accounting backend. 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/cashbook
Staging https://api-staging.inqom.com/cashbook

Access

Returns whether the CashBook module is currently granted for the folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID

Responses

Response samples

Content type
true

Grants the CashBook module access to the folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID

Responses

Revokes the CashBook module access from the folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID

Responses

CashBooks

Get the cumulative revenue of a cash book for the accounting exercise covering today.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

cashBookId
required
integer <int32>

The cash book ID.

Responses

Response samples

Content type
{
  • "Revenue": 0
}

Get all cash books for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID

Responses

Response samples

Content type
[
  • {
    }
]

Create general parameters for a specific accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID

Request Body schema:

The general parameters data

Label
string or null
JournalId
required
integer <int32>
StartDate
string or null <date-time>
InitialBalance
number or null <decimal>
CashbookAccountName
string or null
CashbookSubAccountCode
string or null

Responses

Request samples

Content type
{
  • "Label": "string",
  • "JournalId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "InitialBalance": 0,
  • "CashbookAccountName": "string",
  • "CashbookSubAccountCode": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "JournalId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "InitialBalance": 0,
  • "IsInitialBalanceLocked": true,
  • "IsStartDateLocked": true,
  • "CashbookAccountName": "string",
  • "CashbookSubAccountCode": "string",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

Update a cash book for a specific accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID

id
required
integer <int32>

The cash book ID

Request Body schema:

The cash book data

Label
string or null
JournalId
required
integer <int32>
StartDate
required
string <date-time>
InitialBalance
required
number <decimal>
CashbookAccountName
string or null
CashbookSubAccountCode
string or null

Responses

Request samples

Content type
{
  • "Label": "string",
  • "JournalId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "InitialBalance": 0,
  • "CashbookAccountName": "string",
  • "CashbookSubAccountCode": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "JournalId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "InitialBalance": 0,
  • "IsInitialBalanceLocked": true,
  • "IsStartDateLocked": true,
  • "CashbookAccountName": "string",
  • "CashbookSubAccountCode": "string",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

CashBooksDays

Save a cash book day (upsert semantics: replaces existing entries for the same date).

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
cashBookId
required
integer <int32>
Request Body schema:
EntryDate
required
string <date-time>
object (CollectedSaleDto)
object (FundMovementDto)
Array of objects or null (CashBookDayExpenseDto)
RealBalance
number or null <decimal>
DiscrepancyComment
string or null

Responses

Request samples

Content type
{
  • "EntryDate": "2019-08-24T14:15:22Z",
  • "CollectedSales": {
    },
  • "FundMovement": {
    },
  • "Expenses": [
    ],
  • "RealBalance": 0,
  • "DiscrepancyComment": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "CashBookId": 0,
  • "EntryDate": "2019-08-24T14:15:22Z",
  • "CreatedByUserId": "string",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z",
  • "CollectedSales": {
    },
  • "FundMovement": {
    },
  • "Expenses": [
    ],
  • "RealBalance": 0,
  • "DailyRevenue": 0,
  • "OpeningBalance": 0,
  • "TheoreticalBalance": 0,
  • "Discrepancy": 0,
  • "DiscrepancyComment": "string",
  • "IsLocked": true,
  • "IsImported": true,
  • "ImportError": "NegativeTheoreticalBalance",
  • "TicketZReference": "string",
  • "ImportedFileDocumentId": 0,
  • "TicketZDocumentId": 0,
  • "IsModified": true,
  • "IsFileNotAttached": true
}

Get all cash book days (with their entries) for a given period.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
cashBookId
required
integer <int32>
query Parameters
from
string <date-time>
to
string <date-time>

Responses

Response samples

Content type
[
  • {
    }
]

Get a cash book day (with its entries) for a specific date.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
cashBookId
required
integer <int32>
date
required
string <date-time>

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "CashBookId": 0,
  • "EntryDate": "2019-08-24T14:15:22Z",
  • "CreatedByUserId": "string",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z",
  • "CollectedSales": {
    },
  • "FundMovement": {
    },
  • "Expenses": [
    ],
  • "RealBalance": 0,
  • "DailyRevenue": 0,
  • "OpeningBalance": 0,
  • "TheoreticalBalance": 0,
  • "Discrepancy": 0,
  • "DiscrepancyComment": "string",
  • "IsLocked": true,
  • "IsImported": true,
  • "ImportError": "NegativeTheoreticalBalance",
  • "TicketZReference": "string",
  • "ImportedFileDocumentId": 0,
  • "TicketZDocumentId": 0,
  • "IsModified": true,
  • "IsFileNotAttached": true
}

Get the history of the replacements of a cash book day by an import, from the most recent to the oldest: when, by whom, from which file and which import, and the day before and after (receipts, payments, expenses, deposits, contribution, real balance, each with its lines). An empty list for a day never replaced. Behind the `kandor.cashbook.import-ticket-z` feature flag, a 404 without body while it is off.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
cashBookId
required
integer <int32>
date
required
string <date-time>

Responses

Response samples

Content type
[
  • {
    }
]

Joins or replaces the ticket Z of an imported cash book day: the file is deposited in the documents and attached to the sales entry of the day; the previous one is detached from this day only and stays in the documents. Neither joining nor removing marks the day as modified. A `.csv`, `.xls` or `.xlsx` file of 5 MB at most. Write right on the files, never for an employee nor a read-only DAF; behind the `kandor.cashbook.import-ticket-z` feature flag, a 404 without body while it is off.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

cashBookId
required
integer <int32>

The cash book of the day.

date
required
string <date-time>

The date of the day.

Request Body schema: multipart/form-data
file
string <binary>

The ticket Z (multipart/form-data, field name: file).

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "CashBookId": 0,
  • "EntryDate": "2019-08-24T14:15:22Z",
  • "CreatedByUserId": "string",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z",
  • "CollectedSales": {
    },
  • "FundMovement": {
    },
  • "Expenses": [
    ],
  • "RealBalance": 0,
  • "DailyRevenue": 0,
  • "OpeningBalance": 0,
  • "TheoreticalBalance": 0,
  • "Discrepancy": 0,
  • "DiscrepancyComment": "string",
  • "IsLocked": true,
  • "IsImported": true,
  • "ImportError": "NegativeTheoreticalBalance",
  • "TicketZReference": "string",
  • "ImportedFileDocumentId": 0,
  • "TicketZDocumentId": 0,
  • "IsModified": true,
  • "IsFileNotAttached": true
}

Removes the ticket Z of a cash book day: it is detached from this day only, and stays in the documents and on the other days that share it. Same rights and feature flag as joining it.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

cashBookId
required
integer <int32>

The cash book of the day.

date
required
string <date-time>

The date of the day.

Responses

ExpenseCategories

Get all expense categories for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

Responses

Response samples

Content type
[
  • {
    }
]

Create an expense category for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

Request Body schema:

The expense category data.

Label
string or null
ExpenseAccountName
string or null
VatAccountName
string or null
VatRate
number or null <decimal>

Responses

Request samples

Content type
{
  • "Label": "string",
  • "ExpenseAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "ExpenseAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0,
  • "AnalyticsTagId": 0
}

Get a specific expense category by ID.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

id
required
integer <int32>

The expense category ID.

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "ExpenseAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0,
  • "AnalyticsTagId": 0
}

Update an expense category for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

id
required
integer <int32>

The expense category ID.

Request Body schema:

The expense category data.

Label
string or null
ExpenseAccountName
string or null
VatAccountName
string or null
VatRate
number or null <decimal>

Responses

Request samples

Content type
{
  • "Label": "string",
  • "ExpenseAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "ExpenseAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0,
  • "AnalyticsTagId": 0
}

Delete an expense category for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

id
required
integer <int32>

The expense category ID.

Responses

GeneralSettings

Get general settings for a specific accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder ID

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "WithdrawalAccountName": "string",
  • "WithdrawalSubAccountCode": "string",
  • "CashDiscrepancyExpenseAccountName": "string",
  • "CashDiscrepancyExpenseSubAccountCode": "string",
  • "CashDiscrepancyRevenueAccountName": "string",
  • "CashDiscrepancyRevenueSubAccountCode": "string",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

Create general settings for a specific accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder ID

Request Body schema:

The general settings data

AccountingFolderId
required
integer <int32>
WithdrawalAccountName
string or null
WithdrawalSubAccountCode
string or null
CashDiscrepancyExpenseAccountName
string or null
CashDiscrepancyExpenseSubAccountCode
string or null
CashDiscrepancyRevenueAccountName
string or null
CashDiscrepancyRevenueSubAccountCode
string or null

Responses

Request samples

Content type
{
  • "AccountingFolderId": 0,
  • "WithdrawalAccountName": "string",
  • "WithdrawalSubAccountCode": "string",
  • "CashDiscrepancyExpenseAccountName": "string",
  • "CashDiscrepancyExpenseSubAccountCode": "string",
  • "CashDiscrepancyRevenueAccountName": "string",
  • "CashDiscrepancyRevenueSubAccountCode": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "WithdrawalAccountName": "string",
  • "WithdrawalSubAccountCode": "string",
  • "CashDiscrepancyExpenseAccountName": "string",
  • "CashDiscrepancyExpenseSubAccountCode": "string",
  • "CashDiscrepancyRevenueAccountName": "string",
  • "CashDiscrepancyRevenueSubAccountCode": "string",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

Update general settings for a specific accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder ID

Request Body schema:

The general settings data

AccountingFolderId
required
integer <int32>
WithdrawalAccountName
string or null
WithdrawalSubAccountCode
string or null
CashDiscrepancyExpenseAccountName
string or null
CashDiscrepancyExpenseSubAccountCode
string or null
CashDiscrepancyRevenueAccountName
string or null
CashDiscrepancyRevenueSubAccountCode
string or null

Responses

Request samples

Content type
{
  • "AccountingFolderId": 0,
  • "WithdrawalAccountName": "string",
  • "WithdrawalSubAccountCode": "string",
  • "CashDiscrepancyExpenseAccountName": "string",
  • "CashDiscrepancyExpenseSubAccountCode": "string",
  • "CashDiscrepancyRevenueAccountName": "string",
  • "CashDiscrepancyRevenueSubAccountCode": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "WithdrawalAccountName": "string",
  • "WithdrawalSubAccountCode": "string",
  • "CashDiscrepancyExpenseAccountName": "string",
  • "CashDiscrepancyExpenseSubAccountCode": "string",
  • "CashDiscrepancyRevenueAccountName": "string",
  • "CashDiscrepancyRevenueSubAccountCode": "string",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

Imports

Deposits the export of the chosen cash book and analyzes it: its columns are recognized, its days are sorted into ready days and days already entered. The import and its file are kept, no day is created. Days that cannot be imported go to `NotImportedDays` with their reason, without refusing the file; a day appears in a single group. A day to import that carries an anomaly goes to `AnomalyDays`, not among the ready days, each anomaly with its kind, its column and its amount: `UncategorizedReceipt`, the amount of a column to verify; `NegativeAmount`, a negative amount of the file; `ReceiptsPaymentsGap`, receipts minus payments beyond the tolerance of a day entered by hand, computed without the receipts without category. A column whose header says the VAT is recognized with the kind `Vat`, without identifier, and is never imported. `VatExemptionAlert` is true when the folder is not subject to VAT and the file carries such a column: its amounts including VAT are then imported as receipts without VAT. The theoretical balance of a day is computed in date order, days already entered mixed: a ready day whose balance is negative carries `NegativeBalance` with its theoretical closing balance.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

cashBookId
required
integer <int32>

The cash book the export belongs to.

Request Body schema: multipart/form-data
file
string <binary>

The export of the cash register (multipart/form-data, field name: file).

Responses

Response samples

Content type
{
  • "ImportId": 0,
  • "FileName": "string",
  • "Columns": [
    ],
  • "ReadyDays": [
    ],
  • "AlreadyEnteredDays": [
    ],
  • "NotImportedDays": [
    ],
  • "AnomalyDays": [
    ],
  • "VatExemptionAlert": true,
  • "TicketZFileName": "string"
}

Imports the ready days of an analyzed import, day by day in chronological order, and stops at the first day in failure: the previous days stay imported, the failed day and the following ones are not. The days already entered are kept as they are, unless listed in the replacements. The days not imported at the analysis are never imported nor reported, and do not count for the stop at the first failure. A save error of a day is reported in `FailedDay` with its name, not as an HTTP code. The corrections kept on the import are applied. A receipt without category left unassigned is ignored; a day that keeps a gap or a negative amount, or whose only amounts are receipts left without category, is not imported: it is returned in `NotImportedDays` with the reason `UncorrectedAnomaly`, and the import goes on. A day its corrections leave without any amount nor anomaly is in none of the groups. A day whose theoretical balance stays negative is imported without entries and in `DaysInError`; a day already entered after it that would stay negative makes it fail with `TheoreticalClosingBalanceNegative`. A day already entered in the list of replacements is replaced entirely, the way a day entered by hand is saved: it carries the receipts and the payments of the file, its expenses, deposits, contribution and real balance are emptied, their entries retracted and the documents of its expenses detached; it is returned in `ReplacedDays`. A replaced day whose anomaly stays uncorrected is emptied, returned with `Emptied` true. A refused replacement (`CashBookDayIsValidated`, `EntryDateInClosedExercise`…) is reported in `FailedDay` and the import stops. The history of each replaced day is written with the day. When the import carries a ticket Z, it is deposited once in the documents, then attached at best to the sales entry of each imported or replaced day, which keeps its identifier; a deposit or an attachment that fails does not fail the import, the day is marked "file not attached". A day imported without a sales entry keeps the ticket Z. Replacing a day that carried a ticket Z detaches it from that day only.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

cashBookId
required
integer <int32>

The cash book of the import.

importId
required
integer <int32>

The analyzed import.

Responses

Response samples

Content type
{
  • "ImportedDays": [
    ],
  • "KeptDays": [
    ],
  • "FailedDay": {
    },
  • "NotAttemptedDays": [
    ],
  • "NotImportedDays": [
    ],
  • "DaysInError": [
    ],
  • "ReplacedDays": [
    ]
}

Replaces the column mappings of an analyzed import with the complete list sent, then analyzes the file again: its columns, its ready days and its days already entered. No day is created. The mappings are retained for the cash book only when the import is applied. Several columns can be mapped to the VAT (kind `Vat`, without identifier), and a column whose header says the VAT is mapped to it only. A correction kept on the import that the new mappings leave without object is removed from it.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

cashBookId
required
integer <int32>

The cash book of the import.

importId
required
integer <int32>

The analyzed import.

Request Body schema:

The complete list of the column mappings of the import.

required
Array of objects or null (CashBookImportColumnMappingItem)

Responses

Request samples

Content type
{
  • "Mappings": [
    ]
}

Response samples

Content type
{
  • "ImportId": 0,
  • "FileName": "string",
  • "Columns": [
    ],
  • "ReadyDays": [
    ],
  • "AlreadyEnteredDays": [
    ],
  • "NotImportedDays": [
    ],
  • "AnomalyDays": [
    ],
  • "VatExemptionAlert": true,
  • "TicketZFileName": "string"
}

Replaces the corrections of an analyzed import with the complete list sent, then analyzes the file again: a day whose anomalies are all corrected is among the ready days. A receipt without category is assigned to a receipt category of the folder; the gap is assigned to a payment method of the folder and added to that payment; a negative amount is replaced by a positive or zero amount, 0 meaning the line is ignored. The corrections hold for this import only, never for the cash book. No day is created. The corrections of a day are judged in this order, each on what the previous ones gave: the receipts without category, the negative amounts, then the gap. A correction carries the fields of its kind only: `Column` and `ReceiptCategoryId` for `UncategorizedReceipt`, `PaymentMethodId` for `ReceiptsPaymentsGap`, `Column` and `Amount` for `NegativeAmount`. A `CashContribution` carries a `Date` and a strictly positive `Amount`, set on the contribution of the day; a day it does not bring back to zero keeps `NegativeBalance`.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

cashBookId
required
integer <int32>

The cash book of the import.

importId
required
integer <int32>

The analyzed import.

Request Body schema:

The complete list of the corrections of the import.

required
Array of objects or null (CashBookImportCorrectionItem)

Responses

Request samples

Content type
{
  • "Corrections": [
    ]
}

Response samples

Content type
{
  • "ImportId": 0,
  • "FileName": "string",
  • "Columns": [
    ],
  • "ReadyDays": [
    ],
  • "AlreadyEnteredDays": [
    ],
  • "NotImportedDays": [
    ],
  • "AnomalyDays": [
    ],
  • "VatExemptionAlert": true,
  • "TicketZFileName": "string"
}

Keeps the ticket Z on the analyzed import, in place of the one already sent: nothing is deposited in the documents until the import is applied. The analysis carries `TicketZFileName`, the name of the file kept on the import. A `.csv`, `.xls` or `.xlsx` file of 5 MB at most.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

cashBookId
required
integer <int32>

The cash book of the import.

importId
required
integer <int32>

The analyzed import.

Request Body schema: multipart/form-data
file
string <binary>

The ticket Z (multipart/form-data, field name: file).

Responses

Response samples

Content type
{
  • "ImportId": 0,
  • "FileName": "string",
  • "Columns": [
    ],
  • "ReadyDays": [
    ],
  • "AlreadyEnteredDays": [
    ],
  • "NotImportedDays": [
    ],
  • "AnomalyDays": [
    ],
  • "VatExemptionAlert": true,
  • "TicketZFileName": "string"
}

Replaces the list of the days already entered to replace with the complete list sent, then analyzes the file again: each day already entered carries `Replace`, true when its date is in the list. A day already entered absent from the list is kept; without a list, the import replaces nothing. No day is changed until the import is applied.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

cashBookId
required
integer <int32>

The cash book of the import.

importId
required
integer <int32>

The analyzed import.

Request Body schema:

The complete list of the days already entered to replace.

Dates
required
Array of strings or null <date-time> [ items <date-time > ]

Responses

Request samples

Content type
{
  • "Dates": [
    ]
}

Response samples

Content type
{
  • "ImportId": 0,
  • "FileName": "string",
  • "Columns": [
    ],
  • "ReadyDays": [
    ],
  • "AlreadyEnteredDays": [
    ],
  • "NotImportedDays": [
    ],
  • "AnomalyDays": [
    ],
  • "VatExemptionAlert": true,
  • "TicketZFileName": "string"
}

Initialization

Initialize a cash book accounting folder with default analytics axes, referentials, cash journal, and cash book. The operation is idempotent: re-running on an already-initialized folder is a no-op.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

Responses

OfferSynchronization

Re-reads the features the folder's offer entitles it to and converges the module onto them: initializes the module when the offer covers the cash book, revokes the module access when it no longer does. Convergent and idempotent: the folder's current entitlement is read on every call, so replaying the operation is safe and the order of the calls does not matter.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The accounting folder identifier.

Responses

PaymentMethods

Get all payment methods for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

Responses

Response samples

Content type
[
  • {
    }
]

Create a payment method for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

Request Body schema:

The payment method data.

Label
string or null
AccountName
string or null

Responses

Request samples

Content type
{
  • "Label": "string",
  • "AccountName": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "AccountName": "string",
  • "AnalyticsTagId": 0,
  • "BankDepositMode": "Manual",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

Update a payment method for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

id
required
integer <int32>

The payment method ID.

Request Body schema:

The payment method data.

Label
string or null
AccountName
string or null

Responses

Request samples

Content type
{
  • "Label": "string",
  • "AccountName": "string"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "AccountName": "string",
  • "AnalyticsTagId": 0,
  • "BankDepositMode": "Manual",
  • "CreatedAt": "2019-08-24T14:15:22Z",
  • "UpdatedAt": "2019-08-24T14:15:22Z"
}

Delete a payment method for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

id
required
integer <int32>

The payment method ID.

Responses

ReceiptCategories

Get all receipt categories for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

Responses

Response samples

Content type
[
  • {
    }
]

Create a receipt category for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

Request Body schema:

The receipt category data.

Label
string or null
ProductAccountName
string or null
VatAccountName
string or null
VatRate
number or null <decimal>

Responses

Request samples

Content type
{
  • "Label": "string",
  • "ProductAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "ProductAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0,
  • "AnalyticsTagId": 0
}

Update a receipt category for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

id
required
integer <int32>

The receipt category ID.

Request Body schema:

The receipt category data.

Label
string or null
ProductAccountName
string or null
VatAccountName
string or null
VatRate
number or null <decimal>

Responses

Request samples

Content type
{
  • "Label": "string",
  • "ProductAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Label": "string",
  • "ProductAccountName": "string",
  • "VatAccountName": "string",
  • "VatRate": 0,
  • "AnalyticsTagId": 0
}

Delete a receipt category for a specific accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The enterprise accounting folder ID.

id
required
integer <int32>

The receipt category ID.

Responses

Settings

Get the three referentials of the accounting folder.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Responses

Response samples

Content type
{
  • "PaymentMethods": [
    ],
  • "ExpenseCategories": [
    ],
  • "ReceiptCategories": [
    ],
  • "InternalTransferAccountName": "string",
  • "InternalTransferSubAccountCode": "string"
}

Upsert the three referentials of the accounting folder in a single transactional call. Each section is sync'd by diff: items with an id are updated, items without are created, items present in DB but absent from the payload are deleted. An empty array wipes the section.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
Array of objects or null (UpsertPaymentMethodItem)
Array of objects or null (UpsertExpenseCategoryItem)
Array of objects or null (UpsertReceiptCategoryItem)
InternalTransferAccountName
string or null
InternalTransferSubAccountCode
string or null

Responses

Request samples

Content type
{
  • "PaymentMethods": [
    ],
  • "ExpenseCategories": [
    ],
  • "ReceiptCategories": [
    ],
  • "InternalTransferAccountName": "string",
  • "InternalTransferSubAccountCode": "string"
}

Response samples

Content type
{
  • "PaymentMethods": [
    ],
  • "ExpenseCategories": [
    ],
  • "ReceiptCategories": [
    ],
  • "InternalTransferAccountName": "string",
  • "InternalTransferSubAccountCode": "string"
}