Check funding for an invoice batch

Group invoice recipients and apply the resulting total to an operating-reserve check.

Program steps

Result

Run the calculation to see the result.
Use this through REST or MCP

POST /api/v1/agent/operations/programs/sequence or call bitpont_operationsRunSequence with these inputs.

{
  "definition": "{\n  \"version\": 1,\n  \"steps\": [\n    {\n      \"key\": \"invoices\",\n      \"tool\": \"treasuryInvoiceBatches\",\n      \"input\": {\n        \"invoices\": [\n          {\n            \"id\": \"INV-101\",\n            \"recipient\": \"0x1111111111111111111111111111111111111111\",\n            \"amount\": \"125.25\"\n          }\n        ]\n      }\n    },\n    {\n      \"key\": \"cash\",\n      \"tool\": \"treasuryFundingGap\",\n      \"input\": {\n        \"balance\": \"120\",\n        \"reserve\": \"25\"\n      },\n      \"bind\": {\n        \"spend\": \"invoices.total\"\n      }\n    }\n  ]\n}"
}

All Operations programs →