---
title: "Generate PCI questionnaire"
method: POST
path: "/legalEntities/{id}/pciQuestionnaires/generatePciTemplates"
tags: ["PCI questionnaires"]
---

# Generate PCI questionnaire

`POST /legalEntities/{id}/pciQuestionnaires/generatePciTemplates`

## Request

- Base URL: `https://kyc-test.adyen.com/lem/v1`
- URL: `https://kyc-test.adyen.com/lem/v1/legalEntities/{id}/pciQuestionnaires/generatePciTemplates`
- Auth: one of:
  - HTTP basic
  - API key in header `X-API-Key`

Generates the required PCI questionnaires based on the user's [salesChannel](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__reqParam_salesChannels).

Requests to this endpoint are subject to rate limits:

- Live environments: 700 requests per 5 seconds.

- Test environments: 200 requests per 5 seconds.

- Failed requests are subject to a limit of 5 failures per 10 seconds.

## Path parameters

- `id` string, required

## Request body

- GeneratePciDescriptionRequest
  - `additionalSalesChannels` string[]: An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto**
  - `language` string: Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**.

## Response `200`

OK - the request has succeeded.

- GeneratePciDescriptionResponse
  - `content` string, byte: The generated questionnaires in a base64 encoded format.
  - `language` string: The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**.
  - `pciTemplateReferences` string[]: The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires.

## Other responses

- `400`: Bad Request - a problem reading or understanding the request.
- `401`: Unauthorized - authentication required.
- `403`: Forbidden - insufficient permissions to process the request.
- `422`: Unprocessable Entity - a request validation error.
- `500`: Internal Server Error - the server could not process the request.

## Changes

- **2024-03-28** (v1) `ce7ace361e76`: 1 info
  - the endpoint scheme security `clientKey` was removed from the API
- **2024-03-28** (v1) `3b389b1f9056`: 1 info
  - the endpoint scheme security `clientKey` was added to the API
- **2024-03-18** (v1) `ce7ace361e76`: 1 info
  - the endpoint scheme security `clientKey` was removed from the API
- **2024-03-18** (v1) `116b46070d50`: 1 info
  - the endpoint scheme security `clientKey` was added to the API

[Operation history](https://skmtc.dev/adyen/apis/legalentityservice/changes/legalEntities/:id/pciQuestionnaires/generatePciTemplates/post.md)

---

[API](https://skmtc.dev/adyen/apis/legalentityservice.md) - [All operations](https://skmtc.dev/adyen/apis/legalentityservice/llms.txt) - [OpenAPI document](https://skmtc.dev/adyen/apis/legalentityservice/revisions/58b4d0b1c31a?raw)
