{
  "title": "DN Payout Batch and Bank Bridge — original method record",
  "version": 1,
  "commissionId": "N040",
  "articleUrl": "https://decentralised.news/processor-payout-batch-bank-reconciliation-2027",
  "reviewedOn": "2026-11-29",
  "planningEdition": 2027,
  "creator": {
    "name": "Decentralised News",
    "url": "https://decentralised.news"
  },
  "dataClassification": "Original fictional teaching data; not observed merchant results.",
  "evidenceBoundary": "Official public documentation and original hypothetical arithmetic. No merchant account, paid transaction, referral earnings or production payout was tested.",
  "sources": [
    {
      "url": "https://docs.stripe.com/api/balance_transactions/object",
      "title": "Stripe: Balance Transaction object",
      "checkedOn": "2026-11-29",
      "supportedClaims": [
        "The object distinguishes amount, fee, net, currency, source and availability.",
        "Net impact is amount minus fee, using currency's smallest units.",
        "Status may be available or pending; availability refers to Stripe balance."
      ]
    },
    {
      "url": "https://docs.stripe.com/reports/payout-reconciliation",
      "title": "Stripe: Payout reconciliation report",
      "checkedOn": "2026-11-29",
      "supportedClaims": [
        "Standard automatic payout batches can be associated with included transactions.",
        "Manual/instant payout situations need a different reconciliation boundary."
      ]
    },
    {
      "url": "https://docs.stripe.com/payouts/reconciliation",
      "title": "Stripe: Payout reconciliation",
      "checkedOn": "2026-11-29",
      "supportedClaims": [
        "Payout object alone does not provide its full transaction set; underlying balance transactions can be queried for supported automatic payouts.",
        "Manual payouts are controlled by the account operator and do not have automatically determined transaction membership.",
        "Pagination must be completed before summing all rows."
      ]
    },
    {
      "url": "https://docs.stripe.com/api/payouts/object",
      "title": "Stripe: Payout object",
      "checkedOn": "2026-11-29",
      "supportedClaims": [
        "A payout has status, destination, amount, currency and expected arrival metadata.",
        "Some payouts can initially show paid and later fail; failed payouts have reversal evidence."
      ]
    },
    {
      "url": "https://docs.stripe.com/reports/balance",
      "title": "Stripe: Balance summary report",
      "checkedOn": "2026-11-29",
      "supportedClaims": [
        "The balance report reconciles starting balance, activity, payouts and ending balance; it does not assign specific payments to payouts.",
        "Reports present settlement-currency transactions."
      ]
    }
  ],
  "inputDefinitions": [
    {
      "field": "payoutId",
      "label": "Selected synthetic payout ID"
    },
    {
      "field": "payout",
      "label": "Declared processor payout (USD)"
    },
    {
      "field": "bankFee",
      "label": "Separately evidenced bank deduction (USD)"
    },
    {
      "field": "received",
      "label": "Observed bank receipt (USD)"
    },
    {
      "field": "transactions",
      "label": "Synthetic batch transaction rows"
    }
  ],
  "syntheticInputs": {
    "payoutId": "demo-batch-1",
    "payout": "1555.00",
    "bankFee": "5.00",
    "received": "1550.00",
    "transactions": "[\n  {\n    \"id\": \"demo-sale-1\",\n    \"type\": \"payment\",\n    \"amount\": \"1000.00\",\n    \"fee\": \"30.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-sale-2\",\n    \"type\": \"payment\",\n    \"amount\": \"600.00\",\n    \"fee\": \"18.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-sale-3\",\n    \"type\": \"payment\",\n    \"amount\": \"400.00\",\n    \"fee\": \"12.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-refund-1\",\n    \"type\": \"refund\",\n    \"amount\": \"-150.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-adjustment-1\",\n    \"type\": \"adjustment\",\n    \"amount\": \"-100.00\",\n    \"fee\": \"15.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-hold-1\",\n    \"type\": \"reserve_hold\",\n    \"amount\": \"-200.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-release-1\",\n    \"type\": \"reserve_release\",\n    \"amount\": \"80.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-payout-transfer\",\n    \"type\": \"payout\",\n    \"amount\": \"-1555.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-unassigned-sale\",\n    \"type\": \"payment\",\n    \"amount\": \"250.00\",\n    \"fee\": \"7.50\",\n    \"payoutId\": \"\"\n  }\n]"
  },
  "workedOutput": {
    "summary": "The supplied batch and bank bridge reconcile arithmetically; transaction membership and receipt evidence still need verification.",
    "metrics": [
      {
        "label": "Included activity net",
        "value": "USD 1,555.00"
      },
      {
        "label": "Activity less declared payout",
        "value": "USD 0.00"
      },
      {
        "label": "Expected bank receipt",
        "value": "USD 1,550.00"
      },
      {
        "label": "Observed less expected bank receipt",
        "value": "USD 0.00"
      },
      {
        "label": "Unassigned activity excluded",
        "value": "USD 242.50"
      },
      {
        "label": "Included activity rows",
        "value": "7"
      },
      {
        "label": "Exact duplicate rows ignored",
        "value": "0"
      }
    ],
    "columns": [
      {
        "key": "id",
        "label": "Transaction ID"
      },
      {
        "key": "type",
        "label": "Type"
      },
      {
        "key": "gross",
        "label": "Gross (USD)"
      },
      {
        "key": "fee",
        "label": "Fee (USD)"
      },
      {
        "key": "net",
        "label": "Net (USD)"
      },
      {
        "key": "membership",
        "label": "Treatment"
      }
    ],
    "rows": [
      {
        "id": "demo-sale-1",
        "type": "payment",
        "gross": "1,000.00",
        "fee": "30.00",
        "net": "970.00",
        "membership": "Included by supplied payout ID"
      },
      {
        "id": "demo-sale-2",
        "type": "payment",
        "gross": "600.00",
        "fee": "18.00",
        "net": "582.00",
        "membership": "Included by supplied payout ID"
      },
      {
        "id": "demo-sale-3",
        "type": "payment",
        "gross": "400.00",
        "fee": "12.00",
        "net": "388.00",
        "membership": "Included by supplied payout ID"
      },
      {
        "id": "demo-refund-1",
        "type": "refund",
        "gross": "-150.00",
        "fee": "0.00",
        "net": "-150.00",
        "membership": "Included by supplied payout ID"
      },
      {
        "id": "demo-adjustment-1",
        "type": "adjustment",
        "gross": "-100.00",
        "fee": "15.00",
        "net": "-115.00",
        "membership": "Included by supplied payout ID"
      },
      {
        "id": "demo-hold-1",
        "type": "reserve_hold",
        "gross": "-200.00",
        "fee": "0.00",
        "net": "-200.00",
        "membership": "Included by supplied payout ID"
      },
      {
        "id": "demo-release-1",
        "type": "reserve_release",
        "gross": "80.00",
        "fee": "0.00",
        "net": "80.00",
        "membership": "Included by supplied payout ID"
      },
      {
        "id": "demo-payout-transfer",
        "type": "payout",
        "gross": "-1,555.00",
        "fee": "0.00",
        "net": "-1,555.00",
        "membership": "Payout transfer excluded from activity sum"
      },
      {
        "id": "demo-unassigned-sale",
        "type": "payment",
        "gross": "250.00",
        "fee": "7.50",
        "net": "242.50",
        "membership": "Unassigned; excluded"
      }
    ],
    "notes": [
      "Signed net = signed amount − signed fee. Payout transfers are excluded from the activity sum so the same movement is not deducted twice.",
      "Only explicit supplied payout membership counts. Manual or instant payouts may need an account-balance roll-forward instead; no provider mapping is inferred.",
      "One currency, no FX, tax or revenue recognition. Complete the source export and verify actual bank evidence. The worksheet makes no API calls."
    ]
  },
  "calculationRules": [
    "For each unique activity row, signed net = signed amount − signed fee.",
    "Include only non-payout rows whose supplied payout ID matches the selected payout.",
    "Batch difference = included activity net − declared payout.",
    "Expected bank receipt = declared payout − separately evidenced bank deduction.",
    "Bank difference = observed receipt − expected bank receipt; unassigned activity and payout transfers stay outside the batch activity total."
  ],
  "knownAnswerAndValidationCases": [
    {
      "kind": "N040",
      "name": "batch and separate bank fee",
      "input": {
        "payoutId": "demo-batch-1",
        "payout": "1555.00",
        "bankFee": "5.00",
        "received": "1550.00",
        "transactions": "[\n  {\n    \"id\": \"demo-sale-1\",\n    \"type\": \"payment\",\n    \"amount\": \"1000.00\",\n    \"fee\": \"30.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-sale-2\",\n    \"type\": \"payment\",\n    \"amount\": \"600.00\",\n    \"fee\": \"18.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-sale-3\",\n    \"type\": \"payment\",\n    \"amount\": \"400.00\",\n    \"fee\": \"12.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-refund-1\",\n    \"type\": \"refund\",\n    \"amount\": \"-150.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-adjustment-1\",\n    \"type\": \"adjustment\",\n    \"amount\": \"-100.00\",\n    \"fee\": \"15.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-hold-1\",\n    \"type\": \"reserve_hold\",\n    \"amount\": \"-200.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-release-1\",\n    \"type\": \"reserve_release\",\n    \"amount\": \"80.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-payout-transfer\",\n    \"type\": \"payout\",\n    \"amount\": \"-1555.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-unassigned-sale\",\n    \"type\": \"payment\",\n    \"amount\": \"250.00\",\n    \"fee\": \"7.50\",\n    \"payoutId\": \"\"\n  }\n]"
      },
      "expectedSummaryIncludes": "reconcile arithmetically",
      "expectedMetrics": {
        "Included activity net": "USD 1,555.00",
        "Activity less declared payout": "USD 0.00",
        "Expected bank receipt": "USD 1,550.00",
        "Observed less expected bank receipt": "USD 0.00",
        "Unassigned activity excluded": "USD 242.50",
        "Included activity rows": "7"
      }
    },
    {
      "kind": "N040",
      "name": "bank variance not forced to zero",
      "input": {
        "payoutId": "demo-batch-1",
        "payout": "1555.00",
        "bankFee": "5.00",
        "received": "1549.00",
        "transactions": "[\n  {\n    \"id\": \"demo-sale-1\",\n    \"type\": \"payment\",\n    \"amount\": \"1000.00\",\n    \"fee\": \"30.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-sale-2\",\n    \"type\": \"payment\",\n    \"amount\": \"600.00\",\n    \"fee\": \"18.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-sale-3\",\n    \"type\": \"payment\",\n    \"amount\": \"400.00\",\n    \"fee\": \"12.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-refund-1\",\n    \"type\": \"refund\",\n    \"amount\": \"-150.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-adjustment-1\",\n    \"type\": \"adjustment\",\n    \"amount\": \"-100.00\",\n    \"fee\": \"15.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-hold-1\",\n    \"type\": \"reserve_hold\",\n    \"amount\": \"-200.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-release-1\",\n    \"type\": \"reserve_release\",\n    \"amount\": \"80.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-payout-transfer\",\n    \"type\": \"payout\",\n    \"amount\": \"-1555.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-unassigned-sale\",\n    \"type\": \"payment\",\n    \"amount\": \"250.00\",\n    \"fee\": \"7.50\",\n    \"payoutId\": \"\"\n  }\n]"
      },
      "expectedSummaryIncludes": "differs",
      "expectedMetrics": {
        "Observed less expected bank receipt": "USD -1.00"
      }
    },
    {
      "kind": "N040",
      "name": "payout transfer alone is not activity",
      "input": {
        "payoutId": "b1",
        "payout": "0.00",
        "bankFee": "0.00",
        "received": "0.00",
        "transactions": "[{\"id\":\"p1\",\"type\":\"payout\",\"amount\":\"0.00\",\"fee\":\"0.00\",\"payoutId\":\"b1\"}]"
      },
      "expectedSummaryIncludes": "No activity rows",
      "expectedMetrics": {
        "Included activity rows": "0"
      }
    },
    {
      "kind": "N040",
      "name": "conflicting IDs",
      "input": {
        "payoutId": "demo-batch-1",
        "payout": "1555.00",
        "bankFee": "5.00",
        "received": "1550.00",
        "transactions": "[{\"id\":\"t1\",\"type\":\"payment\",\"amount\":\"100\",\"fee\":\"0\",\"payoutId\":\"demo-batch-1\"},{\"id\":\"t1\",\"type\":\"payment\",\"amount\":\"200\",\"fee\":\"0\",\"payoutId\":\"demo-batch-1\"}]"
      },
      "expectError": "Conflicting"
    },
    {
      "kind": "N040",
      "name": "nonfinite amount rejected",
      "input": {
        "payoutId": "demo-batch-1",
        "payout": "Infinity",
        "bankFee": "5.00",
        "received": "1550.00",
        "transactions": "[\n  {\n    \"id\": \"demo-sale-1\",\n    \"type\": \"payment\",\n    \"amount\": \"1000.00\",\n    \"fee\": \"30.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-sale-2\",\n    \"type\": \"payment\",\n    \"amount\": \"600.00\",\n    \"fee\": \"18.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-sale-3\",\n    \"type\": \"payment\",\n    \"amount\": \"400.00\",\n    \"fee\": \"12.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-refund-1\",\n    \"type\": \"refund\",\n    \"amount\": \"-150.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-adjustment-1\",\n    \"type\": \"adjustment\",\n    \"amount\": \"-100.00\",\n    \"fee\": \"15.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-hold-1\",\n    \"type\": \"reserve_hold\",\n    \"amount\": \"-200.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-release-1\",\n    \"type\": \"reserve_release\",\n    \"amount\": \"80.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-payout-transfer\",\n    \"type\": \"payout\",\n    \"amount\": \"-1555.00\",\n    \"fee\": \"0.00\",\n    \"payoutId\": \"demo-batch-1\"\n  },\n  {\n    \"id\": \"demo-unassigned-sale\",\n    \"type\": \"payment\",\n    \"amount\": \"250.00\",\n    \"fee\": \"7.50\",\n    \"payoutId\": \"\"\n  }\n]"
      },
      "expectError": "plain amount"
    }
  ],
  "limitations": [
    "Signed net = signed amount − signed fee. Payout transfers are excluded from the activity sum so the same movement is not deducted twice.",
    "Only explicit supplied payout membership counts. Manual or instant payouts may need an account-balance roll-forward instead; no provider mapping is inferred.",
    "One currency, no FX, tax or revenue recognition. Complete the source export and verify actual bank evidence. The worksheet makes no API calls."
  ],
  "notTested": [
    "Provider accounts",
    "Live customer or affiliate records",
    "Actual transfers or payouts",
    "Account eligibility",
    "Legal or accounting recognition",
    "Future provider rules"
  ],
  "privacy": "The embedded worksheet performs local arithmetic and does not connect to a provider account. Do not paste secrets or customer identities into teaching examples.",
  "calculationModule": "calculator.js"
}
