---
title: "Get custom document template render data example"
method: GET
path: "/onboarding/v2/templates/schema/data"
tags: ["Onboarding"]
---

# Get custom document template render data example

`GET /onboarding/v2/templates/schema/data`

## Request

- The document declares no server URL.
- Auth: API key in header `Ocp-Apim-Subscription-Key`

Returns an example DocumentTemplateRenderDataV1 JSON payload for the given country and document type. Used to preview template rendering in the editor.

## Query parameters

- `business_model` string
- `country_code` string
- `document_type` string

## Response `200`

Ok - example DocumentTemplateRenderDataV1 payload returned in the standard API envelope.

- ApiResponseWrapperGetDocumentTemplateSchemaDataResponse
  - `data` GetDocumentTemplateSchemaDataResponse
    - `render_data` string: Example DocumentTemplateRenderDataV1 payload.
    - `schema_version` string
    - `source` DocumentTemplateRenderDataSource
      - `business_model` string
      - `country_code` string
      - `document_type` string
      - `kind` string: Whether the payload is sample data or live transaction data.
      - `operation_id` string
      - `transaction_id` string
  - `errors` ErrorResponse[]: List of errors. Returns `null` if it is successful.
    - `code` string: Code describing the error.
    - `doc_link` string: The link for the error documentation. Follow it to gather more details about the error
    - `field` string: A validation error can specify the field that generated that error.
    - `message` string: Detailed message containing information on how to resolve the error.
    - `type` string: Type of error: validation, tax_authority, warning, general, unknown.
  - `message` string
  - `status` string

## Other responses

- `400`: Bad customer request - country_code query parameter is missing or invalid.
- `401`: Authentication failed - missing or incorrect subscription key.
- `404`: Not found - no example data available for the given country_code and document_type combination.
- `429`: Too many requests were sent for a short period of time. Try again a bit later.
- `5XX`: Internal server error. Its not you, its us! We are experiencing a rare and unexpected system disruption. Retry again later. The message field of the response will contain more information for the cause. Feel free to contact us.

---

[API](https://skmtc.dev/fonoa/apis/fonoa-e-invoicing.md) - [All operations](https://skmtc.dev/fonoa/apis/fonoa-e-invoicing/llms.txt) - [OpenAPI document](https://skmtc.dev/fonoa/apis/fonoa-e-invoicing/revisions/d38890cb6fcd?raw)
