← Back to Apps

Logik Debug Payload Generator

Generate trimmed cfgRequest payloads for debugging Logik configurator scripts

How It Works:
  • Step 1: Paste a Fields JSON — either a Logik POST request body (Init / Reconfigure) or a Field State response.
  • Step 2: Paste the Logik script (e.g. an Init or Reconfigure Enrichment) that references cfgRequest.<fieldName>.
  • Step 3: Click Generate. The tool extracts every field the script reads, looks up its current value & userEdited flag, and emits a minimal cfgRequest JSON for testing.
  • Set fields (cfgRequest.X.data, cfgRequest.X.size) are now included under cfgRequest.set.X with full row data, size, and any aggregates from the Fields JSON.
  • Partner & system fields (cfgRequest.partner.quote.id, cfgRequest.sys.enableValidation, etc.) are resolved against partnerData and top-level keys.
  • Fields that are only set (never read) are excluded from flat fields. Set-type fields accessed via .data or .size are always included with their full payload.
Fields JSON
Logik Script
Generated Debug Payload