CFL Number Plate API

  • 2 minutes to read

APIPublisher = 'christiaens';
APIGroup = 'bocountdynamics';
APIVersion = 'v2.0';
EntityName = 'numberplate';
EntitySetName = 'numberplates';

GET

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

Entity:

{
    "@odata.context": "https://ccsnavbc20.bocount.net:60043/BoCountDynamics_DEV/api/Christiaens/BoCountDynamics/v2.0/$metadata#companies(c30f5b76-b867-ec11-8a4c-005056867b89)/numberplates/$entity",
    "@odata.etag": "W/\"JzIwOzE3NzA1Mzg4MjY0NDU3ODI4OTE2MTswMDsn\"",
    "id": "c4f7432d-b9e1-ec11-adf7-d8f92d083b76",
    "code": "TEST",
    "fiscalrestriction": 0,
    "costsrestriction": 0,
    "co2": 40,
    "nondeductiblevat": 100,
    "typeofcar": "Merk en model",
    "driver": "chauffeur",
    "fueltype": "diesel",
    "catalogprice": 20000,
    "firstregistration": "2021-05-01",
    "blocked": false
}

CREATE

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

{
    "code": "TEST",
    "co2": 40,
    "nondeductiblevat": 100,
    "typeofcar": "Merk en type",
    "driver": "chauffeur",
    "fueltype": "diesel",
    "catalogprice": 20000,
    "firstregistration": "2021-05-01",
    "blocked": false
}

DELETE

method: DELETE
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/numberplates(c4f7432d-b9e1-ec11-adf7-d8f92d083b76)

UPDATE

method: PATCH
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/numberplates(c4f7432d-b9e1-ec11-adf7-d8f92d083b76)
Headers:
"If-Match" : W/"JzIwOzE3NzA1Mzg4MjY0NDU3ODI4OTE2MTswMDsn"
Body:

{
    "typeofcar": "Merk en model",
}