$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "quoteFiles": [
< {
< "id": "alpha",
< "format": "csv",
< "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nAlpha,Q1,P1,each,USD,10,1,0,,7 days,1\r\nAlpha,Q1,P1,each,USD,8,1,100,,7 days,1\r\n"
< },
< {
< "id": "beta",
< "format": "csv",
< "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nBeta,Q2,P1,box,EUR,96,5,0,,7 days,1\r\n"
< },
< {
< "id": "gamma",
< "format": "csv",
< "csvText": "supplier,quote_id,product_key,unit,currency,unit_price,moq,tier_min_quantity,tier_max_quantity,lead_time,order_multiple\r\nGamma,Q3,P1,each,USD,7,1,0,,7 days,1\r\n"
< }
< ],
< "columnMapping": {
< "supplier": "supplier",
< "quote_id": "quote_id",
< "product_key": "product_key",
< "unit": "unit",
< "currency": "currency",
< "unit_price": "unit_price",
< "moq": "moq",
< "tier_min_quantity": "tier_min_quantity",
< "tier_max_quantity": "tier_max_quantity",
< "lead_time": "lead_time",
< "order_multiple": "order_multiple"
< },
< "targetQuantities": {
< "P1": {
< "quantity": "120",
< "unit": "each"
< }
< },
< "targetCurrency": "USD",
< "fxRates": [
< {
< "fromCurrency": "EUR",
< "toCurrency": "USD",
< "rate": "1.1",
< "date": "2026-11-06"
< }
< ],
< "unitConversions": [
< {
< "productKey": "P1",
< "fromUnit": "box",
< "toUnit": "each",
< "factor": "12"
< }
< ],
< "shippingAndDutyInputs": [
< {
< "supplier": "Alpha",
< "quoteId": "Q1",
< "currency": "USD",
< "shippingTotal": "60",
< "allocationMethod": "by_value",
< "lines": [
< {
< "productKey": "P1",
< "dutyTotal": "24",
< "taxTotal": "0"
< }
< ]
< },
< {
< "supplier": "Beta",
< "quoteId": "Q2",
< "currency": "USD",
< "shippingTotal": "36",
< "allocationMethod": "by_quantity",
< "lines": [
< {
< "productKey": "P1",
< "dutyTotal": "12",
< "taxTotal": "0"
< }
< ]
< }
< ],
< "maxLines": 5000
<}
<EOF
$curl "https://api.apify.com/v2/actors/afkdigital~supplier-quote-comparison-landed-cost/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'