$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "cashModel": {
< "company": "Example Technology Inc.",
< "currency": "USD",
< "startDate": "2026-09-07",
< "openingCash": 2400000,
< "availableCreditLine": 750000,
< "collections": [
< {
< "customer": "Customer A (monthly invoice)",
< "weeks": {
< "2": 620000,
< "6": 620000,
< "11": 620000
< }
< },
< {
< "customer": "Customer B (project payment)",
< "weeks": {
< "8": 900000
< }
< },
< {
< "customer": "Other customers (every week)",
< "weekly": 300000
< }
< ],
< "otherInflows": [
< {
< "item": "Grant payment",
< "week": 9,
< "amount": 250000
< }
< ],
< "expenses": [
< {
< "item": "Payroll and social security",
< "amount": 1150000,
< "frequency": "monthly",
< "paymentDay": 5
< },
< {
< "item": "Rent",
< "amount": 180000,
< "frequency": "monthly",
< "paymentDay": 1
< },
< {
< "item": "SaaS and infrastructure",
< "amount": 95000,
< "frequency": "monthly",
< "paymentDay": 15
< },
< {
< "item": "Marketing",
< "amount": 45000,
< "frequency": "weekly"
< },
< {
< "item": "Taxes and withholding",
< "amount": 320000,
< "frequency": "monthly",
< "paymentDay": 26
< },
< {
< "item": "Loan instalment",
< "amount": 210000,
< "frequency": "monthly",
< "paymentDay": 20
< },
< {
< "item": "Supplier payments (share of collections)",
< "rate": 0.22,
< "frequency": "variable"
< },
< {
< "item": "Annual insurance premium",
< "amount": 90000,
< "frequency": "one-off",
< "week": 7
< }
< ],
< "scenarios": {
< "base": {
< "collectionMultiplier": 1,
< "expenseMultiplier": 1,
< "collectionDelayWeeks": 0
< },
< "best": {
< "collectionMultiplier": 1.1,
< "expenseMultiplier": 0.97,
< "collectionDelayWeeks": 0
< },
< "worst": {
< "collectionMultiplier": 0.8,
< "expenseMultiplier": 1.05,
< "collectionDelayWeeks": 2
< }
< },
< "thresholdWeeks": 4,
< "pastMonthlyNetCash": [
< -310000,
< -280000,
< -350000
< ],
< "actuals": {
< "1": {
< "inflow": 280000,
< "outflow": 125000
< }
< }
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/bloom-consulting~cash-runway-13-week/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'