CFL G/L Account API

  • 2 minutes to read

APIPublisher = 'christiaens';
APIGroup = 'bocountdynamics';
APIVersion = 'v2.0';
EntityName = 'glaccount';
EntitySetName = 'glaccounts';

https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/glaccounts

Entity:

{
    "@odata.etag": "W/\"JzIwOzEzOTQzNjAxMzM2NTQ4Mzc1ODc1MTswMDsn\"",
    "id": "1ea5cdc5-14e0-ec11-adf8-c90fab2a25c5",
    "no": "1",
    "name": "EIGEN VERM. EN SCH. + 1 JAAR",
    "accountType": "Total",
    "accountCategory": "Equity",
    "incomeBalance": "Balance Sheet",
    "totaling": "10..199999",
    "blocked": false,
    "globalDimension1Code": "",
    "globalDimension2Code": "",
    "debitCredit": "Both",
    "directPosting": false,
    "balance": -2053967.21,
    "genBusPostingGroup": "",
    "genProdPostingGroup": "",
    "vatBusPostingGroup": "",
    "vatProdPostingGroup": "",
    "defaultDeferralTemplateCode": "",
    "pctNonDeductibleVAT": 0,
    "printDetails": true,
    "applyAfterPosting": false,
    "withDeferral": false,
    "withQuantities": false,
    "categoryRestriction": "",
    "variableFiscalRestriction": false,
    "costRestrictionAmount": 0,
    "systemModifiedAt": "2022-05-30T12:37:51.813Z"
}

CREATE

method: POST
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/glaccounts
Body:

{
    "no": "100001",
    "name": "Test",
    "accountType": "Posting",
    "accountCategory": "Equity",
    "incomeBalance": "Balance Sheet",
    "totaling": "",
    "blocked": false,
    "globalDimension1Code": "",
    "globalDimension2Code": "",
    "debitCredit": "Both",
    "directPosting": true,
    "genBusPostingGroup": "",
    "genProdPostingGroup": "",
    "vatBusPostingGroup": "",
    "vatProdPostingGroup": "",
    "defaultDeferralTemplateCode": "",
    "pctNonDeductibleVAT": 0,
    "printDetails": true,
    "applyAfterPosting": false,
    "withDeferral": false,
    "withQuantities": false,
    "categoryRestriction": "",
    "variableFiscalRestriction": false,
    "costRestrictionAmount": 0
}

DELETE

method: DELETE
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/glaccounts(1ea5cdc5-14e0-ec11-adf8-c90fab2a25c5)

UPDATE

method: PATCH
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/glaccounts(1ea5cdc5-14e0-ec11-adf8-c90fab2a25c5)
Headers:
"If-Match" : W/"JzIwOzEzOTQzNjAxMzM2NTQ4Mzc1ODc1MTswMDsn"
Body:

{
    "name": "TEST AANPASSING"
}