{
  "schemaVersion": "1.0.0.0",
  "templateName": "Zetaleap_Word_Docx_Template_Merge_PowerAutomate",
  "provider": "Zetaleap (https://zetaleap.com)",
  "openApiSpecUrl": "https://zetaleap.com/api/openapi/pp-toolkit.swagger.json",
  "definition": {
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "triggers": {
      "Manual_Docx_Merge": {
        "type": "Request",
        "kind": "Button"
      }
    },
    "actions": {
      "Merge_Document_Template": {
        "type": "Http",
        "inputs": {
          "method": "POST",
          "uri": "https://zetaleap.com/api/pp/template-merge",
          "headers": {
            "Authorization": "Bearer REPLACE_WITH_YOUR_ZL_TOKEN",
            "Content-Type": "application/json"
          },
          "body": {
            "mode": "mustache",
            "template": "Invoice {{InvoiceNumber}} for {{CustomerName}}",
            "data": {
              "InvoiceNumber": "INV-2026-1042",
              "CustomerName": "Contoso GmbH"
            }
          }
        }
      }
    }
  }
}