---
updatedAt: 2026-06-24T15:01:46.000Z
---

Fetch the complete documentation index at: https://developers.pismo.io/pismo-docs/llms.txt. Use this file to discover all available pages before exploring further.

# Get admin division info by external ID (deprecated)

**DEPRECATED**. Call [Get calendar by external ID](ref:get-holiday-calendar-by-external-id) instead. 

This endpoint is deprecated starting April 30, 2026, and final removal from both test (EXT) and production environments on October 30, 2026.

Get detailed administrative division information.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Platform setup - Divisions",
    "description": "Use administrative divisions to align organization territory with business needs",
    "version": "v1.0",
    "contact": {
      "name": "Pismo Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io",
      "description": "Sandbox API server for testing"
    }
  ],
  "security": [
    {
      "S2SAuthentication": []
    }
  ],
  "tags": [
    {
      "name": "Administrative divisions (deprecated)",
      "description": "View and manage administrative divisions."
    }
  ],
  "components": {
    "schemas": {
      "AdminDivisionExternalID": {
        "type": "string",
        "description": "Client-supplied external ID. It must comply with the rule `^[a-zA-Z0-9-]+$`.",
        "example": "8675309"
      },
      "AdminDivisionID": {
        "type": "integer",
        "description": "Admininistrative division ID",
        "example": 84849
      },
      "AdminDivisionName": {
        "type": "string",
        "description": "Administrative division name",
        "example": "Scotland"
      },
      "AdminDivisionParentID": {
        "type": "integer",
        "description": "Parent ID"
      },
      "AdminDivisionType": {
        "type": "string",
        "description": "Admin division type",
        "enum": [
          "City",
          "State",
          "Country"
        ],
        "example": "State"
      },
      "handler.HTTPError": {
        "description": "Code and error message.",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "presenter.v1AdministrativeDivisionResponse": {
        "type": "object",
        "description": "Administrative division data.",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/AdminDivisionID"
          },
          "name": {
            "$ref": "#/components/schemas/AdminDivisionName"
          },
          "type": {
            "$ref": "#/components/schemas/AdminDivisionType"
          },
          "parent_id": {
            "$ref": "#/components/schemas/AdminDivisionParentID"
          },
          "external_id": {
            "$ref": "#/components/schemas/AdminDivisionExternalID"
          }
        }
      }
    },
    "responses": {
      "401UnauthorizedError": {
        "description": "Access token is missing or invalid",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/handler.HTTPError"
            }
          }
        }
      },
      "500InternalServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/handler.HTTPError"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "S2SAuthentication": {
        "type": "http",
        "scheme": "bearer",
        "description": "All requests must be previously authenticated with an account token."
      }
    },
    "examples": {
      "MissingTenantResponse": {
        "value": {
          "code": "400",
          "message": "Missing x-tenant header"
        }
      },
      "InvalidParamsResponse": {
        "value": {
          "code": "400",
          "message": "Invalid {parameter_name} parameter value"
        }
      },
      "NotFoundResponse": {
        "value": {
          "code": "404",
          "message": "{target_name} not found"
        }
      },
      "GetV1AdministrativeDivisionResponse": {
        "value": {
          "id": 1,
          "name": "Brazil",
          "type": "Country",
          "parent_id": 0,
          "external_id": "BR"
        }
      }
    }
  },
  "paths": {
    "/divisions-core/v1/administrative-division/external-id/{id}": {
      "get": {
        "summary": "Get admin division info by external ID (deprecated)",
        "description": "**DEPRECATED**. Call [Get calendar by external ID](https://developers.pismo.io/pismo-docs/reference/get-holiday-calendar-by-external-id) instead. \n\nThis endpoint is deprecated starting April 30, 2026, and final removal from both test (EXT) and production environments on October 30, 2026.\n\nGet detailed administrative division information.\n",
        "operationId": "get-v1-admin-division-external-id",
        "deprecated": true,
        "tags": [
          "Administrative divisions (deprecated)"
        ],
        "parameters": [
          {
            "description": "Administrative division external ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Administrative division details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/presenter.v1AdministrativeDivisionResponse"
                },
                "examples": {
                  "response-v1-administrative-division": {
                    "$ref": "#/components/examples/GetV1AdministrativeDivisionResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/handler.HTTPError"
                },
                "examples": {
                  "response-missing-tenant": {
                    "$ref": "#/components/examples/MissingTenantResponse"
                  },
                  "invalid-params-response": {
                    "$ref": "#/components/examples/InvalidParamsResponse"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401UnauthorizedError"
          },
          "404": {
            "description": "Not found error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/handler.HTTPError"
                },
                "examples": {
                  "not-found-response": {
                    "$ref": "#/components/examples/NotFoundResponse"
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          }
        }
      }
    }
  }
}
```