Skip to main content
POST
/
organizations
/
{organization_id}
/
worksites
Create Worksite
curl --request POST \
  --url https://sandbox.intermezzo.ai/organizations/{organization_id}/worksites \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "validFrom": "2023-12-25",
  "validTo": "2023-12-25",
  "name": "<string>",
  "address": "<string>",
  "correspondenceAddress": "<string>",
  "isActive": true,
  "isPrimary": true,
  "contacts": [
    {
      "name": "<string>",
      "email": "jsmith@example.com",
      "phone": {
        "phoneNumber": "<string>",
        "phoneType": "mobile"
      },
      "roles": []
    }
  ],
  "taxIdentifiers": [],
  "insuranceData": [
    {
      "validFrom": "2023-12-25",
      "validTo": "2023-12-25",
      "insuranceCountry": "DE",
      "worksiteLocationNumber": "98797889",
      "accidentInsuranceCompanyNumber": "98797889",
      "accidentInsurancePin": "DE-WS-PIN-456",
      "payrollServiceProviderNumber": "98797889",
      "payrollProcessingLocationNumber": "98797889"
    }
  ]
}'
{
  "validFrom": "2023-12-25",
  "validTo": "2023-12-25",
  "name": "<string>",
  "address": "<string>",
  "correspondenceAddress": "<string>",
  "isActive": true,
  "isPrimary": true,
  "id": "<string>",
  "orgId": "<string>",
  "contacts": [
    {
      "name": "<string>",
      "email": "jsmith@example.com",
      "phone": {
        "phoneNumber": "<string>",
        "phoneType": "mobile"
      },
      "id": "<string>",
      "roles": []
    }
  ],
  "taxIdentifiers": [],
  "insuranceData": [],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organization_id
required

Body

application/json
name
string
required
address
string
required
isActive
boolean
required
isPrimary
boolean
required
validFrom
string<date> | null
validTo
string<date> | null
correspondenceAddress
string | null
contacts
ContactRequest · object[] | null
taxIdentifiers
TaxIdentifiersRequest · object[]
insuranceData
GermanyWorksiteInsuranceDetailsRequest · object[] | null

Response

Successful Response

name
string
required
address
string
required
isActive
boolean
required
isPrimary
boolean
required
id
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
validFrom
string<date> | null
validTo
string<date> | null
correspondenceAddress
string | null
orgId
string | null
contacts
ContactResponse · object[] | null
taxIdentifiers
TaxIdentifiersResponse · object[]
insuranceData
GermanyWorksiteInsuranceDetailsResponse · object[]
I