GET
/
organization
/
structure
/
api
/
legal-units
curl --request GET \
  --url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/organization/structure/api/legal-units
{
  "items": [
    {
      "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
    }
  ],
  "prev": "<string>",
  "next": "<string>"
}

Query Parameters

id
integer[]

Comma-separated list of legal-unit IDs.

Search legal-units based on their name.

isArchived
enum<string>
default:
false

Filter on the "isArchived" status. By default, is equal to "false", thus archived legal-units are not returned. To return both archived and non-archived legal units, 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).