$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "template": "https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/invoice-template-example.docx?signature=190drBPUUHMJlHQInNGAv",
< "data": {
< "company": {
< "name": "Northwind Studio",
< "address": "12 Harbor Lane, Portland, ME 04101",
< "email": "billing@northwind.example",
< "payment": "bank transfer to account 0012 3456 78"
< },
< "number": "INV-2026-0142",
< "issued": "2026-10-25",
< "due": "2026-11-24",
< "client": {
< "name": "Blue Fern Cafe",
< "address": "88 Market Street, Springfield, IL 62701",
< "email": "accounts@bluefern.example"
< },
< "items": [
< {
< "description": "Website redesign",
< "qty": 1,
< "price": 2400
< },
< {
< "description": "Product photography (half day)",
< "qty": 2,
< "price": 350
< },
< {
< "description": "Hosting, 12 months",
< "qty": 12,
< "price": 15
< }
< ],
< "subtotal": 3280,
< "tax_rate": 0.08,
< "tax": 262.4,
< "total": 3542.4,
< "notes": "Thank you! Please put the invoice number on your payment."
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/jumblemog~docx-template-filler/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'