Occupations
Get Occupation by Terrain ID
Acceso
Miembro de la organización con este permiso:
terrains:read
Una clave API con scopes también necesita el permiso entre sus scopes.
GET
Gets the occupation for a specific terrain, if it exists.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
terrainId*stringOK
application/json- response
curl -X GET 'https://api.tillor.eu/orgs//occupations/terrains/string'Example Response
nullDelete Occupation DELETE
Deletes an existing occupation.
Create Extend-Occupation Draft Invoices POST
Creates one draft invoice for the customer with the first Extend occupation period product (sorted by name) and one anchor line per occupation id (same order as the request). Invoice-bundle children are resolved server-side per anchor. When requested, appends billable meter consumption for all meters on those occupations' terrains to the same draft. All occupation ids must belong to the same customer.