$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "offers": "Account,Source,Offer Id,Revision,Sku,Variant,Currency,Market,Kind,Amount,Decimals,Row Id,Approved At,Effective Start,Effective End,Effective End Inclusive,Display Start,Display End,Display End Inclusive,Exception Activation Id,Exception Amount,Exception Reason,Export Note\nfictional-account,approved-ledger,offer-1,rev-1,SKU-001,standard,USD,US,fixed_price,10.00,2,approval-1,2026-09-30T12:00:00Z,2026-10-01T00:00:00Z,2026-11-01T00:00:00Z,false,2026-10-01T00:00:00Z,2026-11-01T00:00:00Z,false,,,,Fictional extra column; not included in the report\n",
< "activations": "Account,Source,Offer Id,Revision,Sku,Variant,Currency,Market,Kind,Amount,Decimals,Row Id,Activation Id,Campaign Id,Starts At,Ends At,End Inclusive,Owner,Spend,Spend Period,Export Note\nfictional-account,approved-ledger,offer-1,rev-1,SKU-001,standard,USD,US,fixed_price,10.00,2,activation-row-1,activation-1,campaign-1,2026-10-01T00:00:00Z,2026-11-01T00:00:00Z,false,Fictional reviewer,10.00,2026-10,Fictional extra column; not included in the report\nfictional-account,approved-ledger,offer-1,rev-1,SKU-001,standard,USD,US,fixed_price,12.00,2,activation-row-2,activation-2,campaign-2,2026-10-01T00:00:00Z,2026-11-01T00:00:00Z,false,Fictional reviewer,10.00,2026-10,Fictional extra column; not included in the report\nfictional-account,approved-ledger,offer-1,rev-unmapped,SKU-001,standard,USD,US,fixed_price,10.00,2,activation-row-3,activation-3,campaign-3,2026-10-01T00:00:00Z,2026-11-01T00:00:00Z,false,Fictional reviewer,10.00,2026-10,Fictional extra column; not included in the report\n",
< "observations": "[\n {\n \"Account\": \"fictional-account\",\n \"Source\": \"approved-ledger\",\n \"Offer Id\": \"offer-1\",\n \"Revision\": \"rev-1\",\n \"Sku\": \"SKU-001\",\n \"Variant\": \"standard\",\n \"Currency\": \"USD\",\n \"Market\": \"US\",\n \"Kind\": \"fixed_price\",\n \"Amount\": \"10.00\",\n \"Decimals\": \"2\",\n \"Row Id\": \"observation-1\",\n \"Observed At\": \"2026-10-02T11:00:00Z\",\n \"Export Note\": \"Fictional extra column; not included in the report\"\n }\n]\n",
< "mapping": {
< "ignore_unmapped_columns": true,
< "offers": [
< {
< "source": "Account",
< "target": "account"
< },
< {
< "source": "Source",
< "target": "source"
< },
< {
< "source": "Offer Id",
< "target": "offer_id"
< },
< {
< "source": "Revision",
< "target": "revision"
< },
< {
< "source": "Sku",
< "target": "sku"
< },
< {
< "source": "Variant",
< "target": "variant"
< },
< {
< "source": "Currency",
< "target": "currency"
< },
< {
< "source": "Market",
< "target": "market"
< },
< {
< "source": "Kind",
< "target": "kind"
< },
< {
< "source": "Amount",
< "target": "amount"
< },
< {
< "source": "Decimals",
< "target": "decimals"
< },
< {
< "source": "Row Id",
< "target": "row_id"
< },
< {
< "source": "Approved At",
< "target": "approved_at"
< },
< {
< "source": "Effective Start",
< "target": "effective_start"
< },
< {
< "source": "Effective End",
< "target": "effective_end"
< },
< {
< "source": "Effective End Inclusive",
< "target": "effective_end_inclusive"
< },
< {
< "source": "Display Start",
< "target": "display_start"
< },
< {
< "source": "Display End",
< "target": "display_end"
< },
< {
< "source": "Display End Inclusive",
< "target": "display_end_inclusive"
< },
< {
< "source": "Exception Activation Id",
< "target": "exception_activation_id"
< },
< {
< "source": "Exception Amount",
< "target": "exception_amount"
< },
< {
< "source": "Exception Reason",
< "target": "exception_reason"
< }
< ],
< "activations": [
< {
< "source": "Account",
< "target": "account"
< },
< {
< "source": "Source",
< "target": "source"
< },
< {
< "source": "Offer Id",
< "target": "offer_id"
< },
< {
< "source": "Revision",
< "target": "revision"
< },
< {
< "source": "Sku",
< "target": "sku"
< },
< {
< "source": "Variant",
< "target": "variant"
< },
< {
< "source": "Currency",
< "target": "currency"
< },
< {
< "source": "Market",
< "target": "market"
< },
< {
< "source": "Kind",
< "target": "kind"
< },
< {
< "source": "Amount",
< "target": "amount"
< },
< {
< "source": "Decimals",
< "target": "decimals"
< },
< {
< "source": "Row Id",
< "target": "row_id"
< },
< {
< "source": "Activation Id",
< "target": "activation_id"
< },
< {
< "source": "Campaign Id",
< "target": "campaign_id"
< },
< {
< "source": "Starts At",
< "target": "starts_at"
< },
< {
< "source": "Ends At",
< "target": "ends_at"
< },
< {
< "source": "End Inclusive",
< "target": "end_inclusive"
< },
< {
< "source": "Owner",
< "target": "owner"
< },
< {
< "source": "Spend",
< "target": "spend"
< },
< {
< "source": "Spend Period",
< "target": "spend_period"
< }
< ],
< "observations": [
< {
< "source": "Account",
< "target": "account"
< },
< {
< "source": "Source",
< "target": "source"
< },
< {
< "source": "Offer Id",
< "target": "offer_id"
< },
< {
< "source": "Revision",
< "target": "revision"
< },
< {
< "source": "Sku",
< "target": "sku"
< },
< {
< "source": "Variant",
< "target": "variant"
< },
< {
< "source": "Currency",
< "target": "currency"
< },
< {
< "source": "Market",
< "target": "market"
< },
< {
< "source": "Kind",
< "target": "kind"
< },
< {
< "source": "Amount",
< "target": "amount"
< },
< {
< "source": "Decimals",
< "target": "decimals"
< },
< {
< "source": "Row Id",
< "target": "row_id"
< },
< {
< "source": "Observed At",
< "target": "observed_at"
< }
< ]
< },
< "asOf": "2026-10-02T12:00:00Z"
<}
<EOF
$curl "https://api.apify.com/v2/actors/critd~campaign-offer-guard/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'