post https://api.demo.getontop.com/contract/workers/inviteWorkersBulkLocked
The user will send a POST petition with the next body. The client_id will be obtained through the token and will be stored the moment the invitation is sent.
-workerName: required
-workerSurname: required
-typeOfWorker: required (can be either Worker or Business)
-workerLegalName: required if typeOfWorker is Business
-workerEmail: required
-countryIso: required and must be in ISO 3166-1 alpha-2 code, (e.g., MX, AR, US, etc.)
curl --location 'https://api.demo.getontop.com/contract/workers/inviteWorkersBulkLocked' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ' \
--data-raw '[
{
"workerName": "Jane",
"workerSurname": "Doe",
"typeOfWorker": "Worker",
"jobTitle": "Developer",
"workerEmail": "[email protected]",
"workerEmailText": "Hi, we would like to invite you to work with us.",
"externalId": "ABC123",
"countryIso": "MX"
}
]'
[
{
"workerName": "Jane",
"workerSurname": "Doe",
"typeOfWorker": "Worker",
"jobTitle": "Developer",
"workerEmail": "[email protected]",
"workerEmailText": "Hi, we would like to invite you to work with us.",
"externalId": "ABC123",
"countryIso": "MX"
},
{
"workerName": "John",
"workerSurname": "Smith",
"workerLegalName": "Business Corp.",
"typeOfWorker": "Business",
"jobTitle": "Manager",
"workerEmail": "[email protected]",
"workerEmailText": "Hello, we invite your business to collaborate with us.",
"externalId": "XYZ456",
"countryIso": "US"
}
]