{
  "opencollection": "1.0.0",
  "info": {
    "name": "Air Legal Entities API",
    "version": "v2"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Legal Entities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List legal entities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/legal-entities",
            "params": [
              {
                "name": "companyId",
                "value": "4974a66b-7493-4f41-908c-58ba81093947",
                "type": "path",
                "description": "Identifier for company."
              },
              {
                "name": "pageNumber",
                "value": "",
                "type": "query",
                "description": "Page number to fetch for the query. Page number starts from 1."
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Page size to be to fetch for the query."
              },
              {
                "name": "externalId",
                "value": "my-external-id",
                "type": "query",
                "description": "External id of the entity."
              }
            ]
          },
          "docs": "This endpoint lists legal entities of a company. If externalId is provided in the query param \nonly the legal entity having the provided externalId is returned.\n"
        },
        {
          "info": {
            "name": "Create legal entity",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/legal-entities",
            "params": [
              {
                "name": "companyId",
                "value": "4974a66b-7493-4f41-908c-58ba81093947",
                "type": "path",
                "description": "Identifier for company."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint creates a legal entity."
        },
        {
          "info": {
            "name": "Get legal entity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/legal-entities/:legalEntityId",
            "params": [
              {
                "name": "companyId",
                "value": "4974a66b-7493-4f41-908c-58ba81093947",
                "type": "path",
                "description": "Identifier for company."
              },
              {
                "name": "legalEntityId",
                "value": "4974a66b-7493-4f41-908c-58ba81093947",
                "type": "path",
                "description": "Identifier for legal-entity."
              }
            ]
          },
          "docs": "This endpoint gets a legal entity by ID."
        },
        {
          "info": {
            "name": "Update legal entity",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/legal-entities/:legalEntityId",
            "params": [
              {
                "name": "companyId",
                "value": "4974a66b-7493-4f41-908c-58ba81093947",
                "type": "path",
                "description": "Identifier for company."
              },
              {
                "name": "legalEntityId",
                "value": "4974a66b-7493-4f41-908c-58ba81093947",
                "type": "path",
                "description": "Identifier for legal-entity."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint updates a legal entity by ID."
        },
        {
          "info": {
            "name": "Delete legal entity",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/legal-entities/:legalEntityId",
            "params": [
              {
                "name": "companyId",
                "value": "4974a66b-7493-4f41-908c-58ba81093947",
                "type": "path",
                "description": "Identifier for company."
              },
              {
                "name": "legalEntityId",
                "value": "4974a66b-7493-4f41-908c-58ba81093947",
                "type": "path",
                "description": "Identifier for legal-entity."
              }
            ]
          },
          "docs": "This endpoint deletes a legal entity by ID."
        }
      ]
    }
  ],
  "bundled": true
}