curl --request GET \
--url https://{host}/organization/structure/api/establishments \
--header 'Authorization: <authorization>'{
"items": [
{
"id": 2,
"name": "<string>",
"legalUnitId": 2,
"code": "<string>",
"legalUnit": {
"id": 2,
"name": "<string>",
"countryId": "<string>",
"code": "<string>",
"legalIdentificationNumber": "<string>",
"activityCode": "<string>",
"country": {
"id": 2,
"name": "<string>",
"code": "<string>",
"currencyCode": "<string>",
"currency": {
"code": "<string>",
"englishName": "<string>",
"symbol": "<string>"
},
"defaultTimeZone": "Europe/Paris"
},
"headquartersId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"isArchived": true
},
"legalIdentificationNumber": "<string>",
"activityCode": "<string>",
"calendarId": 123,
"address": {
"street": "<string>",
"zipCode": "<string>",
"city": "<string>"
},
"timezoneId": "Europe/Paris",
"usersCount": 1,
"createdAt": "2023-11-07T05:31:56Z",
"author": {
"id": 2,
"firstName": "<string>",
"lastName": "<string>",
"fullname": "<string>",
"url": "<string>"
},
"isArchived": true
}
],
"prev": "<string>",
"next": "<string>"
}Retrieve a list of establishments.
curl --request GET \
--url https://{host}/organization/structure/api/establishments \
--header 'Authorization: <authorization>'{
"items": [
{
"id": 2,
"name": "<string>",
"legalUnitId": 2,
"code": "<string>",
"legalUnit": {
"id": 2,
"name": "<string>",
"countryId": "<string>",
"code": "<string>",
"legalIdentificationNumber": "<string>",
"activityCode": "<string>",
"country": {
"id": 2,
"name": "<string>",
"code": "<string>",
"currencyCode": "<string>",
"currency": {
"code": "<string>",
"englishName": "<string>",
"symbol": "<string>"
},
"defaultTimeZone": "Europe/Paris"
},
"headquartersId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"isArchived": true
},
"legalIdentificationNumber": "<string>",
"activityCode": "<string>",
"calendarId": 123,
"address": {
"street": "<string>",
"zipCode": "<string>",
"city": "<string>"
},
"timezoneId": "Europe/Paris",
"usersCount": 1,
"createdAt": "2023-11-07T05:31:56Z",
"author": {
"id": 2,
"firstName": "<string>",
"lastName": "<string>",
"fullname": "<string>",
"url": "<string>"
},
"isArchived": true
}
],
"prev": "<string>",
"next": "<string>"
}API key. Value must be formatted like so: lucca application={api_key}.
Comma-separated list of establishment IDs.
x >= 1ID(s) of the legal-unit(s) establishments must belong to.
x >= 1Search based on the establishment name.
Filter out establishments based on their archival status.
By default, archived establishments are not returned.
To return both archived and non-archived establishments, use ?isArchived=true,false
true, false, true,false Page index (int - starts at 1) or cursor (string)
Page size.
0 <= x <= 100Include prev and next pages cursors, as well as the number of all items across all pages (count).
prev, next, count Was this page helpful?