When programming via API or SMTP, the following parameters must be included in the headers:
X-MDTrans-TemplateId (mandatory) is the id corresponding to the template you want to use and that can be copied from the template list.
X-MDTrans-TemplateVars (optional) that will contain the variables that we have to substitute in the template. These variables in the template would be written between '[ ]' and there could be more than one. In the case that in the template there were several they can be included in the same line, for example:
"headers": [
{
"name": "X-MDTrans-TemplateId",
"value": "530d32fe-f13a-3021-921e-0c6cdd6b0d71"
},
{
"name": "X-MDTrans-TemplateVars",
"value": "{\"Name\":\"Anastasia\", \"Apellido1\":\"Rodríguez\, \"NumClient\":\"ES12582365\", \"DeliveryDate\":\"21-07-2019\", ...}"
}
]
Comments