$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "snapshotId": "demo-2026-10-04",
< "snapshotCoverage": "partial",
< "executionModel": "simultaneous-outbound",
< "inventory": [
< {
< "rowId": "i-a",
< "sku": "001",
< "locationId": "A",
< "unit": "each",
< "availableQuantity": "10",
< "reserveFloor": "3",
< "snapshotId": "demo-2026-10-04"
< },
< {
< "rowId": "i-b",
< "sku": "001",
< "locationId": "B",
< "unit": "each",
< "availableQuantity": "0",
< "reserveFloor": "0",
< "snapshotId": "demo-2026-10-04"
< },
< {
< "rowId": "i-c",
< "sku": "001",
< "locationId": "C",
< "unit": "each",
< "availableQuantity": "0",
< "reserveFloor": "0",
< "snapshotId": "demo-2026-10-04"
< },
< {
< "rowId": "i-d",
< "sku": "002",
< "locationId": "D",
< "unit": "each",
< "availableQuantity": "7.25",
< "reserveFloor": "1",
< "snapshotId": "demo-2026-10-04"
< },
< {
< "rowId": "i-e",
< "sku": "002",
< "locationId": "E",
< "unit": "each",
< "availableQuantity": "0",
< "reserveFloor": "0",
< "snapshotId": "demo-2026-10-04"
< },
< {
< "rowId": "i-f-case",
< "sku": "003",
< "locationId": "F",
< "unit": "case",
< "availableQuantity": "15",
< "reserveFloor": "0",
< "snapshotId": "demo-2026-10-04"
< },
< {
< "rowId": "i-g",
< "sku": "003",
< "locationId": "G",
< "unit": "each",
< "availableQuantity": "0",
< "reserveFloor": "0",
< "snapshotId": "demo-2026-10-04"
< },
< {
< "rowId": "i-n",
< "sku": "004",
< "locationId": "N",
< "unit": "each",
< "availableQuantity": "0",
< "reserveFloor": "0",
< "snapshotId": "demo-2026-10-04"
< },
< {
< "rowId": "i-m-old",
< "sku": "004",
< "locationId": "M",
< "unit": "each",
< "availableQuantity": "99",
< "reserveFloor": "0",
< "snapshotId": "previous-snapshot"
< },
< {
< "rowId": "i-z",
< "sku": "005",
< "locationId": "Z",
< "unit": "kg",
< "availableQuantity": "4.5",
< "reserveFloor": "0.5",
< "snapshotId": "demo-2026-10-04"
< }
< ],
< "inventoryCsv": "",
< "inventoryColumns": {
< "rowId": "rowId",
< "sku": "sku",
< "locationId": "locationId",
< "unit": "unit",
< "availableQuantity": "availableQuantity",
< "reserveFloor": "reserveFloor",
< "snapshotId": "snapshotId"
< },
< "transfers": [
< {
< "rowId": "t-shared-1",
< "sku": "001",
< "fromLocationId": "A",
< "toLocationId": "B",
< "unit": "each",
< "quantity": "4",
< "sequence": 1
< },
< {
< "rowId": "t-shared-2",
< "sku": "001",
< "fromLocationId": "A",
< "toLocationId": "C",
< "unit": "each",
< "quantity": "4",
< "sequence": 2
< },
< {
< "rowId": "t-valid",
< "sku": "002",
< "fromLocationId": "D",
< "toLocationId": "E",
< "unit": "each",
< "quantity": "2.125",
< "sequence": 3
< },
< {
< "rowId": "t-unit",
< "sku": "003",
< "fromLocationId": "F",
< "toLocationId": "G",
< "unit": "each",
< "quantity": "1",
< "sequence": 4
< },
< {
< "rowId": "t-missing",
< "sku": "004",
< "fromLocationId": "M",
< "toLocationId": "N",
< "unit": "each",
< "quantity": "2",
< "sequence": 5
< }
< ],
< "transfersCsv": "",
< "transferColumns": {
< "rowId": "rowId",
< "sku": "sku",
< "fromLocationId": "fromLocationId",
< "toLocationId": "toLocationId",
< "unit": "unit",
< "quantity": "quantity",
< "sequence": "sequence"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/h_murdock~stock-transfer-plan-evidence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'