# Validate Template

Validate Liquid template syntax without persisting.
Returns validation results including any syntax errors and
unrecognized variable references.

Endpoint: POST /templates/validate
Version: 1.0.0
Security: OAuth2

## Security:

  - `OAuth2` (unknown)
    oauth2

## Request fields (application/json):

  - `entityId` (integer, required)
    Merchant/tenant identifier for tenant isolation

  - `content` (string, required)
    Liquid template markup to validate

  - `type` (string, required)
    RECEIPT - Template for the rendered receipt document (HTML).
RECEIPT_EMAIL - Template for the receipt notification email body.
    Enum: "RECEIPT", "RECEIPT_EMAIL"

## Response 200:

  - `200` (unknown)
    Validation completed

## Response 200 fields (application/json):

  - `responseCode` (string, required)
    Example: A100

  - `responseMessage` (string, required)
    Example: Approved

  - `responseDetails` (null, required)

  - `object` (object, required)

  - `object.valid` (boolean, required)
    Whether the template syntax is valid

  - `object.errors` (array)

  - `object.errors.line` (integer)
    Line number where the error occurred

  - `object.errors.column` (integer)
    Column number where the error occurred

  - `object.errors.message` (string)
    Human-readable error description

  - `object.errors.severity` (string)
    Enum: "ERROR", "WARNING"

  - `object.warnings` (array)
    Non-fatal issues detected during validation (e.g. unrecognized root-level template variables)

