---
title: "GET /api/tenants/{tenantId}/regulations/{regulationId}/scripts/{scriptId}"
method: GET
path: "/api/tenants/{tenantId}/regulations/{regulationId}/scripts/{scriptId}"
tags: ["Scripts"]
---

# GET /api/tenants/{tenantId}/regulations/{regulationId}/scripts/{scriptId}

`GET /api/tenants/{tenantId}/regulations/{regulationId}/scripts/{scriptId}`

## Path parameters

- `tenantId` integer, required
- `regulationId` integer, required
- `scriptId` integer, required

## Response `200`

OK

- Script
  - `id` integer
  - `status` 'Active' | 'Inactive'
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `functionTypes` FunctionType[], nullable
  - `value` string, required
  - `overrideType` 'Active' | 'Inactive'

## Other responses

- `404` — Not Found

## Changes

- **2026-07-17** `34e260deaa2c` — 1 info
  - added the optional property `overrideType` to the response with the `200` status
- **2026-01-07** `e70510c47700` — 1 warning
  - added the new `PayrunBase` enum value to the `functionTypes/items/` response property for the response status `200`
- **2023-07-23** `fd1b5146be4a` — 1 warning, 1 info
  - removed the optional property `overrideType` from the response with the `200` status
  - removed the `PayrunBase` enum value from the `functionTypes/items/` response property for the response status `200`

[Change history](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/changes/api/tenants/:tenantId/regulations/:regulationId/scripts/:scriptId/get.md)

---

[API](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1.md) · [All operations](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/payroll-engine/payroll-engine-backend-api-v1/revisions/34e260deaa2c/schema)
