Creates a new dynamic template by uploading TMPL and JSON configuration files for multiple languages. The system parses the TMPL to extract field schemas and rules, then persists the template with version 1.0.
POST/orgs/{org_id}/dynamic_templates
Parameters
Name
In
Type
Required
Description
org_id
path
string
true
The string id related with one of Grupo MasOrange tenants
body
body
object
true
Template metadata and sources (TMPL and JSON files) for each language
Request body - Content-Type: multipart/form-data
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
metadata:external_id:factura_bilingue_premiumdescription:Plantilla para facturas en Español e Inglés.default_language:EStags:- factura- multi-idiomasources:- language:EStemplate_part:stringeditor_config_part:string
Returns a paginated list of all dynamic templates for an organization. Only the latest version of each template (identified by external_id) is included, ordered by creation_date in descending order.
GET/orgs/{org_id}/dynamic_templates
Parameters
Name
In
Type
Required
Description
org_id
path
string
true
The string id related with one of Grupo MasOrange tenants
Returns all minor versions for a specific major version of a dynamic template, ordered by minor version in descending order (newest to oldest). Includes field schemas and rules extracted from the template file.
Creates a new minor version of an existing dynamic template with non-breaking changes such as adding new languages or updating existing language content. Breaking changes like adding or removing fields and rules, removing sources or changing default language will result in a 409 error.
The string id related with one of Grupo MasOrange tenants
external_id
path
string
true
The external id of the dynamic template
major_version
path
integer
true
The major version number
body
body
object
true
Template metadata and sources for creating a minor version
Request body - Content-Type: multipart/form-data
Custom schema example
1
2
3
4
5
6
7
8
metadata:description:Plantilla actualizada con soporte para Catalán.sources:- language:EStemplate_part:stringeditor_config_part:stringchangelog:Added Catalan language support
Returns complete information for a specific minor version of a dynamic template, including field schemas, rules,and source URLs for rendering or analysis.
Creates a new major version of an existing dynamic template with breaking changes. All languages must be provided with their sources. The new version will be X+1.0 where X is the highest existing major version.All new information in the template must be provided, as the information from the previous version will not be kept.
The string id related with one of Grupo MasOrange tenants
external_id
path
string
true
The external id of the dynamic template
body
body
object
true
Template metadata and sources for creating a major version
Request body - Content-Type: multipart/form-data
Custom schema example
1
2
3
4
5
6
7
8
9
metadata:description:Plantilla para facturas en Español e Inglés.default_language:ESlanguages:- language:EStemplate_part:stringeditor_config_part:stringchangelog:Added discount field and removed unused languages
Deletes the latest minor version of a specific major version line. Cannot delete the base version (X.0) or if it's the only minor version in the major line.
Returns the complete changelog history for a dynamic template, showing all version transitions ordered by version in descending order (newest to oldest).