{
  "info": {
    "name": "JLJ Treasury — Norma 43 & SEPA ISO 20022 API (v1.1.0)",
    "description": "Zero-retention deterministic European treasury API by JLJ Lab: AEB Norma 43, SEPA Creditor ID (AT-02), pain.001 (34.14), pain.008 (19.14 CORE/B2B), camt.053 & Invoice Reconciliation.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://treasury-api.specgrid-api.workers.dev" },
    { "key": "apiKey", "value": "JLJ-REPLACE-WITH-YOUR-POLAR-KEY" }
  ],
  "item": [
    {
      "name": "GET Health",
      "request": { "method": "GET", "url": "{{baseUrl}}/api/v1/health" }
    },
    {
      "name": "POST Parse & Audit Norma 43",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-JLJ-Sandbox", "value": "demo" }
        ],
        "url": "{{baseUrl}}/api/v1/norma43/parse",
        "body": {
          "mode": "raw",
          "raw": "{\"content\":\"112100041802000513322611012611302000000001000009782JLJ LAB DEMO SL              \\r\\n22    041826111526111502001200000000025050DOC0000001INV-2026-01 RF18539007547034\\r\\n3321000418020005133200000000000000000000000100000000025050200000000125050978    \\r\\n88999999999999999999000003                                                      \"}"
        }
      }
    },
    {
      "name": "POST Generate SEPA Creditor ID (AT-02)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-JLJ-Sandbox", "value": "demo" }
        ],
        "url": "{{baseUrl}}/api/v1/sepa/creditor-id",
        "body": {
          "mode": "raw",
          "raw": "{\"mode\":\"generate\",\"countryCode\":\"ES\",\"nationalId\":\"B85905495\",\"businessCode\":\"000\"}"
        }
      }
    },
    {
      "name": "POST Generate SEPA pain.001 XML",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-JLJ-Sandbox", "value": "demo" }
        ],
        "url": "{{baseUrl}}/api/v1/sepa/pain001",
        "body": {
          "mode": "raw",
          "raw": "{\"schemaVersion\":\"pain.001.001.03\",\"messageId\":\"JLJ-PAY-01\",\"executionDate\":\"2026-12-05\",\"debtorName\":\"JLJ Lab SL\",\"debtorIban\":\"ES9121000418450200051332\",\"transfers\":[{\"endToEndId\":\"INV-101\",\"creditorName\":\"Supplier GmbH\",\"creditorIban\":\"DE89370400440532013000\",\"amount\":121.5,\"remittanceInfo\":\"Invoice 101\"}]}"
        }
      }
    },
    {
      "name": "POST Generate SEPA pain.008 XML",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-JLJ-Sandbox", "value": "demo" }
        ],
        "url": "{{baseUrl}}/api/v1/sepa/pain008",
        "body": {
          "mode": "raw",
          "raw": "{\"schemaVersion\":\"pain.008.001.02\",\"scheme\":\"CORE\",\"sequenceType\":\"RCUR\",\"messageId\":\"JLJ-DD-01\",\"collectionDate\":\"2026-12-10\",\"creditorName\":\"JLJ Lab SL\",\"creditorIban\":\"ES9121000418450200051332\",\"creditorId\":\"ES85000B85905495\",\"debits\":[{\"endToEndId\":\"SUB-01\",\"debtorName\":\"Client SA\",\"debtorIban\":\"DE89370400440532013000\",\"amount\":49.0,\"mandateId\":\"MNDT-01\",\"mandateSignatureDate\":\"2026-01-15\",\"remittanceInfo\":\"Monthly Plan\"}]}"
        }
      }
    },
    {
      "name": "POST Parse camt.053 XML",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-JLJ-Sandbox", "value": "demo" }
        ],
        "url": "{{baseUrl}}/api/v1/camt053/parse",
        "body": {
          "mode": "raw",
          "raw": "{\"xml\":\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><Document><BkToCstmrStmt><Stmt><Id>S1</Id><Acct><Id><IBAN>ES9121000418450200051332</IBAN></Id><Ccy>EUR</Ccy></Acct><Ntry><Amt Ccy=\\\"EUR\\\">250.50</Amt><CdtDbtInd>CRDT</CdtDbtInd><BookgDt><Dt>2026-11-15</Dt></BookgDt><NtryDtls><TxDtls><RmtInf><Ustrd>INV-2026-01</Ustrd></RmtInf></TxDtls></NtryDtls></Ntry></Stmt></BkToCstmrStmt></Document>\"}"
        }
      }
    },
    {
      "name": "POST Reconcile Movements & Open Invoices",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-JLJ-Sandbox", "value": "demo" }
        ],
        "url": "{{baseUrl}}/api/v1/reconcile",
        "body": {
          "mode": "raw",
          "raw": "{\"movements\":[{\"id\":\"MV-1\",\"source\":\"norma43\",\"accountNumber\":\"ES9121000418450200051332\",\"bookingDate\":\"2026-11-15\",\"valueDate\":\"2026-11-15\",\"direction\":\"credit\",\"amountCents\":25050,\"amount\":\"250.50\",\"currency\":\"EUR\",\"reference\":\"INV-2026-01\",\"structuredRef\":\"RF18539007547034\",\"remittanceText\":\"ACME INV-2026-01 B85905495\"}],\"openInvoices\":[{\"invoiceId\":\"INV-2026-01\",\"amount\":250.5,\"currency\":\"EUR\",\"structuredRef\":\"RF18539007547034\",\"counterpartyTaxId\":\"B85905495\"}]}"
        }
      }
    }
  ]
}
