$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "previousSnapshot": {
< "sourceId": "example-store",
< "scope": "all-public-products",
< "capturedAt": "2026-09-03T12:00:00Z",
< "complete": true,
< "products": [
< {
< "id": 1,
< "type": "simple",
< "name": "Product 1",
< "sku": "SKU-1",
< "is_in_stock": true,
< "prices": {
< "price": "1000",
< "currency_code": "USD",
< "currency_minor_unit": 2
< }
< },
< {
< "id": 2,
< "type": "simple",
< "name": "Product 2",
< "sku": "SKU-2",
< "is_in_stock": true,
< "prices": {
< "price": "1000",
< "currency_code": "USD",
< "currency_minor_unit": 2
< }
< },
< {
< "id": 3,
< "type": "simple",
< "name": "Product 3",
< "sku": "SKU-3",
< "is_in_stock": true,
< "prices": {
< "price": "1000",
< "currency_code": "USD",
< "currency_minor_unit": 2
< }
< },
< {
< "id": 4,
< "type": "simple",
< "name": "Product 4",
< "sku": "SKU-4",
< "is_in_stock": true,
< "prices": {
< "price": "1000",
< "currency_code": "USD",
< "currency_minor_unit": 2
< }
< },
< {
< "id": 5,
< "type": "simple",
< "name": "Product 5",
< "sku": "SKU-5",
< "is_in_stock": true,
< "prices": {
< "price": "1000",
< "currency_code": "USD",
< "currency_minor_unit": 2
< }
< }
< ]
< },
< "currentSnapshot": {
< "sourceId": "example-store",
< "scope": "all-public-products",
< "capturedAt": "2026-09-04T12:00:00Z",
< "complete": false,
< "products": [
< {
< "id": 1,
< "type": "simple",
< "name": "Product 1",
< "sku": "SKU-1",
< "is_in_stock": true,
< "prices": {
< "price": "1",
< "currency_code": "USD",
< "currency_minor_unit": 2
< }
< },
< {
< "id": 2,
< "type": "simple",
< "name": "Product 2",
< "sku": "SKU-2",
< "is_in_stock": false,
< "prices": {
< "price": "1000",
< "currency_code": "USD",
< "currency_minor_unit": 2
< }
< },
< {
< "id": 3,
< "type": "simple",
< "name": "Product 3",
< "sku": "SKU-3",
< "is_in_stock": true,
< "prices": {
< "price": "900",
< "currency_code": "EUR",
< "currency_minor_unit": 2
< }
< },
< {
< "id": 4,
< "type": "simple",
< "name": "Product 4",
< "sku": "SKU-4",
< "is_in_stock": true,
< "prices": {
< "price": "",
< "currency_code": "USD",
< "currency_minor_unit": 2
< }
< }
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/willing_relic~woocommerce-catalog-change-guard/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'