---
updatedAt: 2026-09-23T15:20:34.000Z
agentTools:
  projectIndex: https://developers.bluefin.com/shieldconex/llms.txt
---

# This endpoint allows to create Template.

This endpoint allows to create Template.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Shieldconex Manager API",
    "version": "1.0.0"
  },
  "tags": [
    {
      "name": "Templates"
    }
  ],
  "paths": {
    "/templates": {
      "post": {
        "operationId": "createTemplate",
        "summary": "This endpoint allows to create Template.",
        "description": "This endpoint allows to create Template.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Templates.CreateResult"
                }
              }
            }
          },
          "401": {
            "description": "Access is unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Access is forbidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state of the server.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "headers": {
              "Retry-After": {
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "X-RateLimit-Limit": {
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "X-RateLimit-Remaining": {
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "X-RateLimit-Reset": {
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequestsErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Templates"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Templates.TemplateCreate"
              }
            }
          },
          "description": "Template to be created."
        },
        "x-codegen-request-body-name": "template"
      }
    }
  },
  "security": [
    {
      "BasicAuth": []
    }
  ],
  "components": {
    "schemas": {
      "ClientReference": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "The referenced Client's ID."
          },
          "name": {
            "type": "string",
            "description": "The referenced Client's name."
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "success",
          "errorCode",
          "message"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "default": false
          },
          "errorCode": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "PartnerReference": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "The referenced Partner's ID."
          },
          "name": {
            "type": "string",
            "description": "The referenced Partner's name."
          }
        }
      },
      "Templates.Brands": {
        "type": "object",
        "properties": {
          "visa": {
            "type": "boolean"
          },
          "mastercard": {
            "type": "boolean"
          },
          "amex": {
            "type": "boolean"
          }
        }
      },
      "Templates.CreateResult": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier of newly added element."
          }
        }
      },
      "Templates.FieldTemplateAddressDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "address"
            ],
            "description": "Field template's type."
          },
          "threeDsAddress": {
            "$ref": "#/components/schemas/Templates.FieldTemplateThreeDsAddress"
          },
          "addressLine1Enabled": {
            "type": "boolean",
            "description": "Field template's address line 1 enable flag. The field will be omitted from the template if set to false."
          },
          "addressLine1Name": {
            "type": "string",
            "description": "The address line 1 field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "addressLine1Placeholder": {
            "type": "string",
            "description": "FOnly relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "addressLine1Label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "addressLine2Enabled": {
            "type": "boolean",
            "description": "Field template's address line 2 enable flag. The field will be omitted from the template if set to false."
          },
          "addressLine2Name": {
            "type": "string",
            "description": "The address line 2 field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "addressLine2Placeholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "addressLine2Label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "cityEnabled": {
            "type": "boolean",
            "description": "Field template's city enable flag. The field will be omitted from the template if set to false."
          },
          "cityName": {
            "type": "string",
            "description": "The city field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "cityPlaceholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "cityLabel": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "countryEnabled": {
            "type": "boolean",
            "description": "Field template's city enable flag. The field will be omitted from the template if set to false."
          },
          "countryName": {
            "type": "string",
            "description": "The country field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "countryPlaceholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "countryLabel": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "postalCodeEnabled": {
            "type": "boolean",
            "description": "Field template's postalCode enabled flag flag. The field will be omitted from the template if set to false."
          },
          "postalCodeName": {
            "type": "string",
            "description": "The postalCode field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "postalCodePlaceholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "postalCodeLabel": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "stateEnabled": {
            "type": "boolean",
            "description": "Field template's state enable flag. The field will be omitted from the template if set to false."
          },
          "stateName": {
            "type": "string",
            "description": "The state field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "statePlaceholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "stateLabel": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          }
        },
        "description": "Field template details for an address field."
      },
      "Templates.FieldTemplateAlphabet": {
        "type": "string",
        "enum": [
          "CARD10",
          "CARD62"
        ],
        "description": "Field template's alphabet. CARD10 supports '0-9' and CARD62 supports '0-9', 'a-z' & 'A-Z'."
      },
      "Templates.FieldTemplateBankDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "bank"
            ],
            "description": "Field template's type."
          },
          "name": {
            "type": "string",
            "description": "Field template's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "format": {
            "$ref": "#/components/schemas/Templates.FieldTemplateFormat"
          },
          "placeholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          }
        },
        "description": "Field template details for a bank field."
      },
      "Templates.FieldTemplateCardDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "card"
            ],
            "description": "Field template's type."
          },
          "cardNumberFormat": {
            "$ref": "#/components/schemas/Templates.FieldTemplateCardFormat"
          },
          "cardNumberEnabled": {
            "type": "boolean",
            "description": "Field template's card number enable flag. The field will be omitted from the template if set to false."
          },
          "cardNumberName": {
            "type": "string",
            "description": "The Card Number field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "cardNumberPlaceholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "cardNumberLabel": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "cvvEnabled": {
            "type": "boolean",
            "description": "Field template's cvv enable flag. The field will be omitted from the template if set to false."
          },
          "cvvName": {
            "type": "string",
            "description": "The CVV field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "cvvPlaceholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "cvvLabel": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "expirationEnabled": {
            "type": "boolean",
            "description": "Field template's expiration enable flag. The field will be omitted from the template if set to false."
          },
          "expirationName": {
            "type": "string",
            "description": "The card expiration date field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "expirationPlaceholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "expirationLabel": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "cardholderEnabled": {
            "type": "boolean",
            "description": "Field template's cardholder enable flag. The field will be omitted from the template if set to false."
          },
          "cardholderName": {
            "type": "string",
            "description": "The cardholder field's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "cardholderPlaceholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "cardholderLabel": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          }
        },
        "description": "Field template details for a card field."
      },
      "Templates.FieldTemplateCardFormat": {
        "type": "string",
        "enum": [
          "NONE",
          "LAST_FOUR",
          "FIRST_SIX",
          "FIRST_SIX_LAST_FOUR",
          "FIRST_TWO_LAST_FOUR"
        ],
        "description": "Field template's card number format."
      },
      "Templates.FieldTemplateDateDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "date"
            ],
            "description": "Field template's type."
          },
          "name": {
            "type": "string",
            "description": "Field template's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "format": {
            "$ref": "#/components/schemas/Templates.FieldTemplateFormat"
          },
          "placeholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "dateFormat": {
            "$ref": "#/components/schemas/Templates.FieldTemplateDateFormat"
          },
          "dateSeparator": {
            "$ref": "#/components/schemas/Templates.FieldTemplateDateSeparator"
          }
        },
        "description": "Field template details for a date field."
      },
      "Templates.FieldTemplateDateFormat": {
        "type": "string",
        "enum": [
          "MM-DD-YYYY",
          "DD-MM-YYYY",
          "YYYY-MM-DD"
        ],
        "description": "Field template's date format."
      },
      "Templates.FieldTemplateDateSeparator": {
        "type": "string",
        "enum": [
          "-",
          "/"
        ],
        "description": "Field template's date separator."
      },
      "Templates.FieldTemplateEmailDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "email"
            ],
            "description": "Field template's type."
          },
          "name": {
            "type": "string",
            "description": "Field template's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "placeholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          }
        },
        "description": "Field template details for an email field."
      },
      "Templates.FieldTemplateFieldDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "field"
            ],
            "description": "Field template's type. In this case `field` is an alias for the \\\"Custom Field\\\" type featured in ShieldConex's UI."
          },
          "name": {
            "type": "string",
            "description": "Field template's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "format": {
            "$ref": "#/components/schemas/Templates.FieldTemplateFormat"
          },
          "alphabet": {
            "$ref": "#/components/schemas/Templates.FieldTemplateAlphabet"
          },
          "placeholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "nonIdempotentTokens": {
            "type": "boolean",
            "description": "Determines if identical values should produce identical tokens. When set to ture, each token will be unique regardless of the data that was tokenized."
          },
          "inputType": {
            "$ref": "#/components/schemas/Templates.FieldTemplateInputType"
          },
          "inputValues": {
            "type": "string",
            "description": "Comma separated input values for inpytType=select"
          },
          "minLength": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's min length. The lowest allowed value is 2."
          },
          "maxLength": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's max length. The maximum value is 56 if the protection type is set to FPE and 128 if set to FPT."
          },
          "pattern": {
            "type": "string",
            "description": "Regular expression (RegEx) for custom input validation. Relevant to \"field\"."
          },
          "patternMessage": {
            "type": "string",
            "description": "Invalid pattern error message that displays when the input can't be matched by the RegEx."
          },
          "networkTokenField": {
            "$ref": "#/components/schemas/Templates.FieldTemplateNetworkTokenField"
          }
        },
        "description": "Field template details for a standard field."
      },
      "Templates.FieldTemplateFormat": {
        "type": "string",
        "enum": [
          "NONE",
          "LAST_FOUR",
          "FIRST_SIX",
          "FIRST_SIX_LAST_FOUR",
          "FIRST_TWO_LAST_FOUR"
        ],
        "description": "Field template's format. Determines which characters are left untokenized."
      },
      "Templates.FieldTemplateInputType": {
        "type": "string",
        "enum": [
          "input",
          "select",
          "password"
        ],
        "description": "Field template's input type."
      },
      "Templates.FieldTemplateMethod": {
        "type": "string",
        "enum": [
          "FPE",
          "FPT",
          "NT"
        ],
        "description": "Field template's method. FPE is Format-Preserving encryption. FPE supports values up to 56 characters and cannot be idempotent. FPT supports values up to 128 characters and does support idempotency."
      },
      "Templates.FieldTemplateNetworkTokenField": {
        "type": "string",
        "enum": [
          "creditCard",
          "expirationMonth",
          "expirationYear",
          "cvv"
        ],
        "description": "Network Token Field."
      },
      "Templates.FieldTemplatePhoneDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "phone"
            ],
            "description": "Field template's type."
          },
          "name": {
            "type": "string",
            "description": "Field template's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "format": {
            "$ref": "#/components/schemas/Templates.FieldTemplateFormat"
          },
          "placeholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          },
          "countryCode": {
            "type": "boolean",
            "description": "Phone Number's country code."
          },
          "phoneInputMasking": {
            "$ref": "#/components/schemas/Templates.FieldTemplatePhoneMasking"
          }
        },
        "description": "Field template details for a phone field."
      },
      "Templates.FieldTemplatePhoneMasking": {
        "type": "string",
        "enum": [
          "### ### ####",
          "###-###-####"
        ],
        "description": "Phone Number's input format in the iFrame."
      },
      "Templates.FieldTemplateRoutingDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "routing"
            ],
            "description": "Field template's type."
          },
          "name": {
            "type": "string",
            "description": "Field template's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "format": {
            "$ref": "#/components/schemas/Templates.FieldTemplateFormat"
          },
          "placeholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          }
        },
        "description": "Field template details for a routing field."
      },
      "Templates.FieldTemplateTaxDetails": {
        "type": "object",
        "required": [
          "templateType"
        ],
        "properties": {
          "method": {
            "$ref": "#/components/schemas/Templates.FieldTemplateMethod"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "description": "Field template's sort order. This is only relevant to the iFrame and determines the order in which the fields will appear."
          },
          "required": {
            "type": "boolean",
            "description": "Whether or not the field template is required. This does not affect detokenization."
          },
          "width": {
            "$ref": "#/components/schemas/Templates.FieldTemplateWidth"
          },
          "templateType": {
            "type": "string",
            "enum": [
              "bank"
            ],
            "description": "Field template's type."
          },
          "name": {
            "type": "string",
            "description": "Field template's unique system name. Used to refer to the field in code and API calls. It is recommended to avoid using spaces and numbers."
          },
          "format": {
            "$ref": "#/components/schemas/Templates.FieldTemplateFormat"
          },
          "placeholder": {
            "type": "string",
            "description": "Only relevant to the iFrame. This value appears within the input on the iFrame, and will disappear when the user begins entering a value."
          },
          "label": {
            "type": "string",
            "description": "Only relevant to the iFrame. This is the field label and defaultly appears above the corresponding field."
          }
        },
        "description": "Field template details for a tax field."
      },
      "Templates.FieldTemplateThreeDsAddress": {
        "type": "string",
        "enum": [
          "none",
          "shipping",
          "billing"
        ],
        "description": "Field template's card number format."
      },
      "Templates.FieldTemplateWidth": {
        "type": "string",
        "enum": [
          "25",
          "50",
          "75",
          "100"
        ],
        "description": "Field template's width in percentage relative to whole area size. Only applicable to the iFrame."
      },
      "Templates.TemplateCreate": {
        "type": "object",
        "required": [
          "name",
          "reference",
          "active",
          "partner",
          "client",
          "type",
          "accessMode",
          "options",
          "integration",
          "fieldTemplates"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "The Template's name."
          },
          "reference": {
            "type": "string",
            "maxLength": 255,
            "description": "The Template's unique reference."
          },
          "active": {
            "type": "boolean",
            "description": "This property indicates if the Template is active or inactive. In the UI this is referred to as published and when set to true the template cannot be modified."
          },
          "partner": {
            "$ref": "#/components/schemas/PartnerReference"
          },
          "client": {
            "$ref": "#/components/schemas/ClientReference"
          },
          "type": {
            "type": "string",
            "enum": [
              "userDefined",
              "templatePayConexTokenPayments",
              "templatePayConexTokenization",
              "templateMyChartCardTransaction",
              "templateMyChartAchTransaction"
            ],
            "description": "The Template's type. TODO provide description"
          },
          "accessMode": {
            "type": "string",
            "enum": [
              "specific",
              "restricted",
              "unrestricted"
            ],
            "description": "The Template's access mode. TODO provide description"
          },
          "options": {
            "$ref": "#/components/schemas/Templates.TemplateOptions"
          },
          "integration": {
            "$ref": "#/components/schemas/Templates.TemplateIntegration"
          },
          "fieldTemplates": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplateFieldDetails"
                },
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplateDateDetails"
                },
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplatePhoneDetails"
                },
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplateCardDetails"
                },
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplateAddressDetails"
                },
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplateEmailDetails"
                },
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplateBankDetails"
                },
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplateRoutingDetails"
                },
                {
                  "$ref": "#/components/schemas/Templates.FieldTemplateTaxDetails"
                }
              ]
            }
          }
        }
      },
      "Templates.TemplateIntegration": {
        "type": "object",
        "properties": {
          "networkToken": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Enable Network tokens."
              },
              "timeout": {
                "type": "integer",
                "format": "int32",
                "description": "Network token timeout."
              },
              "brands": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Templates.Brands"
                  }
                ],
                "description": "For the brands you selected we would automatically try to provision a network token."
              }
            }
          }
        }
      },
      "Templates.TemplateOptions": {
        "type": "object",
        "properties": {
          "customStyles": {
            "type": "string",
            "description": "Template custom styles in css format."
          },
          "customStyleFile": {
            "type": "string",
            "description": "URL pointing to the template's custom style file."
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Template's whitelist domains. Access will not be limited by domain if not set."
          },
          "security": {
            "type": "object",
            "properties": {
              "irreversible": {
                "type": "boolean",
                "description": "Irreversible Detokenization. If the Irreversible Tokens feature is enabled, tokens cannot be detokenized."
              },
              "active": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "Duration Until Token Activation starting from the time of tokenization. ISO 8601 duration format."
                  },
                  "to": {
                    "type": "string",
                    "description": "Duration Until Token Deactivation. ISO 8601 duration format. Should be greater than the `active.from` setting. If not, the token will be effectively irreversible."
                  }
                },
                "description": "Duration until token activation and deactivation."
              }
            }
          }
        }
      },
      "TooManyRequestsErrorResponse": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        ],
        "description": "Too many requests."
      },
      "ValidationErrorResponse": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "object",
            "unevaluatedProperties": {
              "type": "object",
              "properties": {
                "attribute": {
                  "type": "string",
                  "description": "Invalid attribute name"
                },
                "message": {
                  "type": "string",
                  "description": "Invalid attribute description"
                },
                "errorCode": {
                  "type": "integer",
                  "format": "int32",
                  "description": "Error code"
                }
              },
              "required": [
                "attribute",
                "message",
                "errorCode"
              ]
            }
          }
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        ]
      }
    },
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "Basic"
      }
    }
  },
  "servers": [
    {
      "url": "https://portal-cert.shieldconex.com:4010/api/v1",
      "variables": {}
    }
  ],
  "x-readme": {}
}
```