Invite a worker to join Maqqie
Changed onInvite a worker to join Maqqie. If freelance properties are provided, the API will also create a freelance company for the worker. This is intended for company users to onboard workers.
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
{
"emailAddress": "example@domain.com",
"firstName": "John",
"gender": "MALE",
"initials": "J.D.",
"lastName": "Doe",
"shouldNotifyWorkerOfAccountCreation": true,
"mobileNumber": "+31612345678",
"city": "Amsterdam",
"dateOfBirth": "1990-01-01",
"houseNumber": "123",
"houseNumberAddition": "A",
"iban": "NL91ABNA0417164300",
"nationality": "DUTCH",
"middleName": "van",
"paymentPeriod": "WEEKLY",
"street": "Main Street",
"wageTaxRebate": true,
"zip": "1234AB",
"freelanceChamberOfCommerceNumber": "62114395",
"freelanceVatNumber": "NL001197903B02",
"freelanceVatType": "HIGH"
}Response
Successfully invited a worker
Example response
{
"message": "Worker invited successfully",
"workerId": "0193df2c-d020-7860-b171-d9d915252704"
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- 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 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 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 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 new optional request property
- info
added the required 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 - 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 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 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 request property
- warning
removed the request property
- warning
removed the request property
- info
response schema
application/jsonenum value removedCOUNTRY_ADDRESS_NOT_SUPPORTED - info
response schema
application/jsonenum value removedEMAIL_ADDRESS_IN_USE - info
response schema
application/jsonenum value removedINVALID_BSN - info
response schema
application/jsonenum value removedINVALID_COUNTRY - info
response schema
application/jsonenum value removedINVALID_DOCUMENT - info
response schema
application/jsonenum value removedINVALID_EMAIL - info
response schema
application/jsonenum value removedINVALID_HOUSE_NUMBER_ADDITION - info
response schema
application/jsonenum value removedINVALID_IBAN - info
response schema
application/jsonenum value removedINVALID_NATIONALITY - info
response schema
application/jsonenum value removedINVALID_NON_EER_WORKER_AND_NATIONALITY_COMBINATION - info
response schema
application/jsonenum value removedINVALID_PHONE_NUMBER - info
response schema
application/jsonenum value removedINVALID_ZIP_CODE - info
response schema
application/jsonenum value removedLEGAL_WORK_CATEGORY_NOT_SUPPORTED - info
response schema
application/jsonenum value removedWORKER_ALREADY_HAS_AN_ACCOUNT
- breaking