Occupations
List Occupations
Acesso
Membro da organização com esta permissão:
terrains:read
Uma chave de API com scopes também precisa da permissão nos seus scopes.
GET
Lists occupations with pagination, filtering, sorting, and includes. Supports filtering by customer, terrain, reservation, and paidUntil date range.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
page?integerRange
-9007199254740991 <= value <= 9007199254740991limit?integerRange
-9007199254740991 <= value <= 9007199254740991sortBy?stringValue in
"id""occupationType""rentPeriod""price""description""paidUntil""invoicedUntil""customFields""createdAt""updatedAt""customerId""reservationId""terrainId"sortDir?stringValue in
"asc""desc"include?|array<>|stringreservationId?string|array<string>|nulloccupationType?|array<>|price?number||paidUntil?|nullinvoicedUntil?|nullcreatedAt?|nullupdatedAt?|nulldescription?string|array<string>|customerId?string|array<string>|terrainId?string|array<string>|rentPeriod?customFields?hasEventLogs?boolean|string|number|nullhasNoEventLogs?boolean|string|number|nullhasAuditLogs?boolean|string|number|nullhasNoAuditLogs?boolean|string|number|nulleventLogId?string|array<string>|auditLogId?string|array<string>|hasReservation?boolean|string|number|nullhasNoReservation?boolean|string|number|nullsearch?stringOK
application/json- response
curl -X GET 'https://api.tillor.eu/orgs//occupations'Example Response
null