Register kilometer allowance
Changed onRegisters the kilometer allowance for the worker. from and to address are optional. If they are not present, the location of the placement and the home address of the worker will be used. The distance is as determined by the Mapbox API
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
{
"date": "2024-10-30",
"fromAddress": {
"houseNumber": 102,
"houseNumberAddition": "B",
"zipCode": "5652AA",
"countryCode": "US"
},
"toAddress": {
"houseNumber": 102,
"houseNumberAddition": "B",
"zipCode": "5652AA",
"countryCode": "US"
}
}Response
Successfully registered kilometer allowance
Example response
{
"kilometers": 64.41,
"amount": 24.69
}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 new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required 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 - breaking
removed the required property
from the response with the 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 request property
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
response schema
application/jsonenum value removedCOMPANY_IS_BLACKLISTED_FOR_TIME_WRITING - info
response schema
application/jsonenum value removedDUPLICATE_REGISTRATION - info
response schema
application/jsonenum value removedINVALID_ADDRESS - info
response schema
application/jsonenum value removedINVALID_DATE - info
response schema
application/jsonenum value removedKILOMETER_ALLOWANCE_NOT_FOUND - info
response schema
application/jsonenum value removedPLACEMENT_DELETED - info
response schema
application/jsonenum value removedWORKER_IS_BLACKLISTED_FOR_TIME_WRITING
- breaking