---
title: "Fetch template scripts"
method: GET
path: "/templateScript"
tags: ["TemplateScript"]
---

# Fetch template scripts

`GET /templateScript`

Returns a list of template scripts of a certain type

## Query parameters

- `templateType` 'ORDER' | 'COMPOSITE_ORDER' | 'INVOICE' | 'CREDIT_MEMO' | 'PREDEFINED_TERM'

## Response `200`

successful operation

- TemplateScript[]
  - `id` string, uuid
  - `templateType` 'ORDER' | 'COMPOSITE_ORDER' | 'INVOICE' | 'CREDIT_MEMO' | 'PREDEFINED_TERM', required
  - `script` string, required
  - `enabled` boolean, required
  - `createdBy` string
  - `createdOn` integer
  - `updatedOn` integer

---

[API](https://skmtc.net/dealhub/apis/quote-api.md) · [All operations](https://skmtc.net/dealhub/apis/quote-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dealhub/quote-api/revisions/c30f5b9fbfab/schema)
