{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/wordline/main/json-schema/wordline-api-response-entity-retrieve-letter-templates-schema.json", "title": "ApiResponseEntityRetrieveLetterTemplates", "description": "Retrieve Letter Templates response entity", "x-generated": "2026-10-10", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/wordline-card-letter-api-openapi.yml#/components/schemas/ApiResponseEntityRetrieveLetterTemplates", "x-wl-api-response": true, "type": "object", "required": [ "responseMetadata" ], "properties": { "responseMetadata": { "description": "Response metadata", "allOf": [ { "$ref": "#/$defs/ResponseMetadata" } ] }, "data": { "description": "Response data", "type": "array", "items": { "$ref": "#/$defs/LetterTemplate" } } }, "$defs": { "LetterTemplate": { "type": "object", "properties": { "issuerId": { "type": "string", "description": "Issuer identifier (unique per platform)" }, "letterTemplateIdentifier": { "allOf": [ { "$ref": "#/$defs/LetterTemplateIdentifier" } ], "description": "Identifier of the letter template" }, "parameters": { "type": "array", "items": { "$ref": "#/$defs/LetterTemplateParameter" }, "description": "List of the parameters related to the template, containing template parameter properties fetched from the Letter Generation Service configuration file.\n_Embedded property, only filled when available for the endpoint and explicitly requested in the 'embed' query parameter._" }, "description": { "type": "string", "description": "Description of the letter template. Free text field" }, "structure": { "type": "string", "description": "Used for Jasper letters. Defines the structure of the Jasper template" }, "outputFormat": { "type": "string", "description": "Output format of the template to define the output format. Possible values are:\n•\tPDF\n•\tXML\n•\tWORD" }, "category": { "type": "string", "description": "Category of the template.Examples:\n-\t CARD \n- DISPUTE \n- FRAUD" }, "transformerType": { "type": "string", "description": "The transformer type defines the format of the template and so technologies that will be used to generate the letter. Possible values are:\n•\tJASPER\n•\tXSLT" } }, "title": "LetterTemplate" }, "LetterTemplateIdentifier": { "type": "object", "properties": { "letterTemplateReference": { "type": "string", "description": "Reference of the letter template" } }, "title": "LetterTemplateIdentifier" }, "LetterTemplateParameter": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the template parameter" }, "displayType": { "type": "string", "description": "Indicates how the template parameter should be displayed in an UI. Possible values:\n- \"text\" for text fields\n- \"list\" for drop down lists\n- \"date\" for date fields\n- \"no_display\" when field should not be displayed" }, "source": { "type": "string", "description": "Source of the template parameter. Indicates how the field is populated. Can be a fixed value or a list of fixed values for a static variable, or a property of a business object for a dynamic variable. The Prefill parameters for the defined letter templates API should be used to return dynamic values." }, "sourceType": { "type": "string", "description": "Type of the source Possible values: \n- \"date\" when the source is a date\n- \"list\" when the source is a list\n- \"collection\" when the source is a collection and contains sub parameters (Note : list of parameters of the collection is currently not returned)" }, "defined": { "type": "boolean", "description": "Indicates if the template parameter is defined in the configuration (true) or not (false)" }, "invalid": { "type": "boolean", "description": "Indicates if the template parameter is invalid (true) or not (false)" }, "editable": { "type": "boolean", "description": "If true, the template parameter can be displayed as modifiable in an UI." }, "description": { "type": "string", "description": "Description of the template parameter" }, "validation": { "type": "string", "description": "Regular expression used to validate the value of the template parameter (ex : length), either in an UI or during Generate a letter API call" }, "format": { "type": "string", "description": "Format of the template parameter. Indicates how the value is formatted and will be displayed in an UI. Used for dates and amounts (ex : yyyy-mm-dd in case of date). Default format for date fields is dd/mm/yyyy" }, "displayOrder": { "type": "string", "description": "Display order of the template parameter" }, "subParameters": { "description": "List of sub parameters of the letter template", "type": "array", "items": { "$ref": "#/$defs/LetterTemplateParameter" } } }, "title": "LetterTemplateParameter" }, "Links": { "type": "object", "required": [ "self" ], "properties": { "self": { "type": "string", "description": "Service method URL" }, "next": { "type": "string", "description": "URL pagination query parameter next page" } }, "title": "Links" }, "ResponseMetadata": { "type": "object", "required": [ "correlationId", "responseDateTime", "statusCode", "statusMessage" ], "properties": { "correlationId": { "type": "string", "description": "Correlation Identifier" }, "links": { "description": "Metadata Links", "allOf": [ { "$ref": "#/$defs/Links" } ] }, "statusMessage": { "type": "string", "description": "Executed REST API status message" }, "statusCode": { "type": "integer", "format": "int32", "description": "HTTP status code" }, "responseDateTime": { "type": "string", "description": "Timestamp when response date was generated" }, "timeTakenMs": { "type": "integer", "format": "int64", "description": "Wall clock time required from service to generate the response" } }, "title": "ResponseMetadata" } } }