CFL Currency API

  • 2 minutes to read

APIPublisher = 'christiaens';
APIGroup = 'bocountdynamics';
APIVersion = 'v2.0';
EntityName = 'currency';
EntitySetName = 'currencies';

GET

method: GET
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/currencies

Entity:

{
    "@odata.etag": "W/\"JzIwOzE4NDM4NzkwNTcxMjE4NDI0NDE1MTswMDsn\"",
    "id": "b0951606-13e0-ec11-adf8-c90fab2a25c5",
    "code": "AED",
    "description": "VAE-dirham",
    "symbol": "",
    "amountDecimalPlaces": "2:2",
    "invoiceRoundingPrecision": 0.25,
    "systemModifiedAt": "2022-05-30T12:25:06.367Z"
}

CREATE

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

{
    "code": "TEST",
    "description": "TEST-desc",
    "symbol": "",
    "amountDecimalPlaces": "2:2",
    "invoiceRoundingPrecision": 0.25
}

DELETE

method: DELETE
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/currencies(b0951606-13e0-ec11-adf8-c90fab2a25c5)

UPDATE

method: PATCH
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/currencies(b0951606-13e0-ec11-adf8-c90fab2a25c5)
Headers:
"If-Match" : W/"JzIwOzE4NDM4NzkwNTcxMjE4NDI0NDE1MTswMDsn"
Body:

{
    "invoiceRoundingPrecision": 0.01
}