Retrieve applicable surcharges for a registration period
Changed onThis endpoint calculates and returns applicable surcharges, based on the provided CAO number, function type, and registration periods.
Note: In case a CLA has set both a fixed amount and a factor for a surcharge and stacking rule higher, this endpoint will arbitrarily choose the factor-based surcharge.
Request
- Base URLhttps://api.maqqie.app (the document declares no server; this is the origin it was published from)
- AuthOAuth 2Client credentialsToken URLhttps://maqqie.app/auth/realms/maqqie/protocol/openid-connect/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"caoNumber": 433,
"functionType": "A-Deel",
"functionSubType": "Leerling",
"registration": {
"startDateTime": "2024-09-26T03:00:00Z",
"endDateTime": "2024-09-26T14:30:00Z"
}
}Response
Successfully retrieved applicable surcharges
Example response
{
"surcharges": [
{
"surchargeFactor": 0.5,
"fixedSurchargeAmountPerHour": 2.5,
"startDateTime": "2024-05-26T08:00:00Z",
"endDateTime": "2024-05-26T10:00:00Z"
}
]
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
the request's body type changed from no type to
object - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
stringfor status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status
- breaking
- breaking
the request's body type changed from
objectto no type - breaking
the response's body type changed from
objectto no type for status - breaking
the response's body type changed from
stringto no type for status - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the optional property
from the response with the status - info
response schema
application/jsonenum value removedCOMPANY_DOES_NOT_EXIST - info
response schema
application/jsonenum value removedINVALID_COLLECTIVE_LABOUR_AGREEMENT_NUMBER - info
response schema
application/jsonenum value removedREGISTRATION_EXCEEDS_MAXIMUM_HOURS - info
response schema
application/jsonenum value removedSTART_DATE_TIME_MUST_BE_BEFORE_END_DATE_TIME
- breaking