$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "offers": [
< {
< "id": "EXAMPLE-HOTEL",
< "title": "Example beach hotel, 2 nights",
< "listingType": "lodging",
< "displayedPrice": 189,
< "priceUnit": "per night",
< "nights": 2,
< "fees": [
< {
< "name": "Resort fee",
< "amount": 35,
< "per": "night",
< "mandatory": true
< },
< {
< "name": "Taxes",
< "amount": 51.03,
< "government": true
< }
< ],
< "description": "Resort fee collected at the property."
< },
< {
< "id": "EXAMPLE-TICKET",
< "title": "Example concert, 2 tickets",
< "listingType": "ticket",
< "displayedPrice": 79,
< "priceUnit": "per ticket",
< "quantity": 2,
< "fees": [
< {
< "name": "Service fee",
< "amount": 18.5,
< "per": "ticket",
< "mandatory": true
< },
< {
< "name": "Facility charge",
< "amount": 4,
< "per": "ticket",
< "mandatory": true
< },
< {
< "name": "Taxes and fees",
< "amount": 9.6
< }
< ]
< },
< {
< "id": "EXAMPLE-CABIN",
< "title": "Example cabin, 3 nights (all-in price)",
< "listingType": "lodging",
< "displayedPrice": 642,
< "totalPrice": 642,
< "nights": 3,
< "fees": [
< {
< "name": "Cleaning fee",
< "amount": 90,
< "mandatory": true,
< "includedInPrice": true
< }
< ],
< "description": "Total price includes all fees, before taxes."
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/ultimatemc~hidden-fee-price-checker/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'