{
  "schemaVersion": "2026.11",
  "publisher": "Zetaleap Power Platform Cloud APIs (https://zetaleap.com)",
  "templateSlug": "external-supplier-kyc-file-upload-portal",
  "displayName": "External Supplier KYC & Document Upload Portal (/r/:token — Microsoft Forms Fix)",
  "category": "External Portals",
  "estimatedSetupMinutes": 3,
  "quickstart": {
    "step1_getFreeApiKey": "https://zetaleap.com/login",
    "step2_generateBearerToken": "https://zetaleap.com/profile",
    "step3_optionalCustomConnectorSwagger": "https://zetaleap.com/connectors",
    "step4_pasteHttpActionInPowerAutomate": "Open make.powerautomate.com -> Add an action -> HTTP (or import Zetaleap Custom Connector) -> Paste definition.actions.Zetaleap_Cloud_Action below."
  },
  "definition": {
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "contentVersion": "1.0.0.0",
    "triggers": {
      "When_Business_Event_Occurs": {
        "type": "Metadata",
        "description": "When a New Vendor Request is created in SharePoint or Power Apps"
      }
    },
    "actions": {
      "Zetaleap_Cloud_Action": {
        "type": "Http",
        "inputs": {
          "method": "POST",
          "uri": "https://zetaleap.com/api/hub/intake-create",
          "headers": {
            "Authorization": "Bearer zl_YOUR_API_KEY",
            "Content-Type": "application/json"
          },
          "body": {
            "title": "Supplier KYC & Tax Certificate Submission",
            "requesterName": "Global Procurement",
            "allowFiles": true,
            "maxFiles": 4,
            "expiresInHours": 96,
            "fields": [
              {
                "key": "tax_id",
                "label": "Corporate VAT / Tax ID",
                "type": "text",
                "required": true
              },
              {
                "key": "iban",
                "label": "Settlement IBAN",
                "type": "text",
                "required": true
              }
            ]
          }
        }
      }
    },
    "expectedDynamicOutputs": [
      "token",
      "portalUrl",
      "statusApiUrl",
      "submissionSha256",
      "submittedFiles[]"
    ]
  }
}