---
title: "Get the next facility business id per sector association id"
method: GET
path: "/v1.0/facility/generate/{accountId}"
tags: ["Facility"]
---

# Get the next facility business id per sector association id

`GET /v1.0/facility/generate/{accountId}`

## Path parameters

- `accountId` integer, required

## Response `200`

OK

- FacilityBusinessIdDTO
  - `facilityBusinessId` string

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2025-11-17** `ef5a4ddef92e` — 1 warning, 2 info
  - removed the optional property `facilityId` from the response with the `200` status
  - api operation id `generateFacilityId` removed and replaced with `generateFacilityBusinessId`
  - added the optional property `facilityBusinessId` to the response with the `200` status
- **2024-10-21** `a06468704cbe` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/beis/apis/api-documentation/changes/v1.0/facility/generate/:accountId/get.md)

---

[API](https://skmtc.dev/beis/apis/api-documentation.md) · [All operations](https://skmtc.dev/beis/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beis/api-documentation/revisions/f5f4d893b86b/schema)
