$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "offers": [
< {
< "asin": "EXAMPLE-001",
< "title": "Example Widget 2-Pack",
< "vendor": "Vendor A",
< "price": "$24.99",
< "shipping": "free"
< },
< {
< "asin": "EXAMPLE-001",
< "title": "Example Widget 2-Pack",
< "vendor": "Vendor B",
< "price": "21,50 €",
< "shipping": "3,00 €"
< },
< {
< "asin": "EXAMPLE-001",
< "title": "Example Widget 2-Pack",
< "vendor": "Vendor C",
< "price": 26.4,
< "currency": "USD"
< },
< {
< "asin": "EXAMPLE-002",
< "title": "Example Gadget Mini",
< "vendor": "Vendor A",
< "price": "$12.00",
< "shipping": 4.5,
< "availability": "In stock"
< },
< {
< "asin": "EXAMPLE-002",
< "title": "Example Gadget Mini",
< "vendor": "Vendor B",
< "price": "11,20 €",
< "shipping": "2,50 €",
< "availability": "Out of stock"
< }
< ],
< "fxRates": {
< "EUR": 1.08
< },
< "vendorFees": {
< "Vendor A": {
< "percent": 15,
< "fixed": 0.3
< },
< "Vendor B": {
< "percent": 8
< }
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-amazon-competitor-offer-matrix/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'