GET
/
organization
/
structure
/
api
/
establishments
curl --request GET \
  --url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/organization/structure/api/establishments
{
  "items": [
    {
      "id": 2,
      "name": "<string>",
      "code": "<string>",
      "legalUnitId": 2,
      "legalUnit": {
        "id": 2,
        "name": "<string>",
        "code": "<string>",
        "legalIdentificationNumber": "<string>",
        "activityCode": "<string>",
        "countryId": "<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>"
}

Query Parameters

id
integer[]

Comma-separated list of establishment IDs.

ID(s) of the legal-unit(s) establishments must belong to.

Search based on the establishment name.

isArchived
enum<string>
default:
false

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

Available options:
true,
false,
true,false
page
default:
1

Page index (int - starts at 1) or cursor (string)

limit
integer
default:
10

Page size.

Required range: 0 < x < 100
fields.root
enum<string>[]

Include prev and next pages cursors, as well as the number of all items across all pages (count).

Available options:
prev,
next,
count

Response

200
application/json
OK
items
object[]
prev
string | null

Cursor of the previous page (used with the ?page={{cursor}} query parameter).

next
string | null

Cursor of the next page (used with the ?page={{cursor}} query parameter).