# Refund Hunter: UPS & FedEx Late Delivery Refund Finder (`the100/refund-hunter`) Actor

Audits your UPS and FedEx invoices for guaranteed-service late deliveries, duplicate charges, labels billed but never shipped, and wrong residential fees. Outputs a ready-to-file claim list with deadlines.

- **URL**: https://apify.com/the100/refund-hunter.md
- **Developed by:** [Christopher Dorado](https://apify.com/the100) (community)
- **Categories:** E-commerce, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $790.00 / 1,000 confirmed refund claims

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Refund Hunter: UPS & FedEx Late Delivery Refunds + Billing Audit

**Find every UPS & FedEx late-delivery refund you're owed, with the 15-day deadline for each. $0.99 per claim found. If it finds nothing, you pay nothing.**

> **Try it free in 30 seconds:** click **Try for free**, leave the input empty and press **Start**. It runs on built-in sample data, so you see exactly what you'd get before uploading anything.

#### Sample output (real rows from the built-in demo run)

| Carrier | Service | Claim | Why | Refund $ | File by |
|---|---|---|---|---|---|
| UPS | UPS Next Day Air Early | late_delivery | Delivered 90 min after guaranteed time | 88.4 | 2026-11-06 |
| FEDEX | FedEx Priority Overnight | duplicate_charge | Package also billed on invoice 8-110-95555 | 41.43 | 2027-05-02 |
| FEDEX | FedEx Standard Overnight | billed_not_shipped | No carrier scans: label billed but package never shipped | 31.76 | 2027-04-25 |
| FEDEX | FedEx Standard Overnight | residential_on_commercial | Residential surcharge billed on an address marked commercial | 5.95 | 2027-05-02 |

UPS and FedEx refund the full transportation charge when a guaranteed express package arrives even a minute late, but only if *you* claim it within 15 days. Most shippers never do. Refund Hunter reads your carrier invoices, checks every package against the official guarantee rules, and gives you a ready-to-file claim list sorted by deadline.

You pay only per confirmed claim. Audit services charge 25–50% of every refund they recover.

### What it finds

| Check | Window | Refund |
|---|---|---|
| **Late guaranteed deliveries** (UPS Service Guarantee, FedEx Money-Back Guarantee) | 15 days | Transportation charge |
| **Duplicate charges** (same package on two invoices, or the same fee billed twice) | 180 days | Duplicate amount |
| **Billed but never shipped** (label created, no carrier scans after 14 days) | 180 days | Full charge |
| **Residential fee on a business address** | 180 days | Surcharge |

It also shows **refunds you already missed**, so you can see what lateness has cost you.

#### Rules applied (published carrier terms, Nov 2026)

- **Eligible services only.** UPS: Next Day Air Early / Air / Air Saver, 2nd Day Air A.M., Worldwide Express family. FedEx: First / Priority / Standard Overnight, 2Day A.M., Overnight Extra Hours, International Priority family. **UPS Ground and FedEx Ground have no lateness refund** and are skipped.
- **60-second rule.** UPS counts an on-time *attempt*; FedEx is late at 60 s or more after commitment.
- **Exclusions:** weather, incorrect address, security/customs, recipient delivery changes / Hold at Location, dangerous goods, UPS 2nd Day Air A.M. to residences, UPS Large Package / Additional Handling.
- **Peak season:** UPS Nov 27 to Jan 2 and FedEx Nov 23 to Jan 4 shifted commitments, FedEx Thanksgiving-eve and pre-Christmas grace periods.
- **Deadlines:** UPS counts 15 days from the scheduled delivery date. FedEx counts 15 days from the invoice date, or from the ship date if you pay by card.
- When in doubt it is conservative: it uses the earlier deadline and the later commit time, and flags the claim `needs_review`. Those claims are **not charged**.

### Input

No invoice handy? Leave the input empty or tick **Try with sample data** for a free demo run.

1. **Invoice CSVs**: paste URLs or the CSV text. Works with UPS Billing Center detail (one row per charge line), FedEx Billing Online invoice CSV (one row per package), and shipping-software exports (ShipStation, Shippo, ShipBob). Column names are auto-detected.
2. **Optional free carrier API keys** (developer.ups.com, developer.fedex.com). If your CSV lacks guaranteed or actual delivery times, Refund Hunter looks them up read-only through the official tracking APIs, and pulls exception scans such as weather or address problems.
3. **Monitor mode**: schedule it daily and you only get new claims.

### Output

- **Dataset**: one row per claim, with status (`urgent` = ≤3 days left, `open`, `needs_review`, `expired`), days left, amount, reason, how to file, and the fields the carrier asks for (tracking, ship date, recipient, weight).
- **`REPORT`** (key-value store): a one-page HTML summary. See `sample/sample_report.html`.
- **`CLAIMS_CSV`**: a filing pack to work through or hand to your team.
- **`OUTPUT`**: JSON totals (recoverable now, urgent, missed, by type and carrier).

### Important

Only the **account that paid the carrier** can claim a refund. Run this on your own invoices, or on your clients' invoices as their 3PL if they ship on your account. Verify each claim against the invoice before filing.

# Actor input Schema

## `invoiceUrls` (type: `array`):

Direct links to CSV exports from UPS Billing Center, FedEx Billing Online, or your shipping software (ShipStation, Shippo, etc.). One row per package or one row per charge line both work. Leave empty (or tick 'Try with sample data') for a free demo.

## `useSampleData` (type: `boolean`):

Runs on bundled sample UPS + FedEx invoices so you can see the report. Never charged. Also used automatically when no invoice data is given.

## `invoiceCsv` (type: `string`):

Paste CSV text directly instead of a URL.

## `upsClientId` (type: `string`):

From your free app at developer.ups.com (Tracking API enabled).

## `upsClientSecret` (type: `string`):

Stored encrypted. Used only to read tracking.

## `fedexClientId` (type: `string`):

From your free project at developer.fedex.com (Track API).

## `fedexClientSecret` (type: `string`):

Stored encrypted. Used only to read tracking.

## `fetchTracking` (type: `boolean`):

Fills in guaranteed and actual delivery times when the CSV doesn't have them.

## `includeBillingErrors` (type: `boolean`):

Duplicate charges, labels billed but never shipped, residential fees on business addresses.

## `monitorMode` (type: `boolean`):

For scheduled daily runs: skip claims already reported on earlier runs.

## `stateKey` (type: `string`):

Use a different key per shipping account if you monitor several.

## `fedexPaysByCard` (type: `boolean`):

FedEx then counts the 15-day claim window from the ship date instead of the invoice date.

## `minClaimAmount` (type: `integer`):

Minimum claim amount (USD)

## `includeExpired` (type: `boolean`):

Lists refunds whose deadline already passed so you can see what you lost. Never charged.

## `defaultCarrier` (type: `string`):

Used only when the CSV has no carrier column and the tracking number format is ambiguous.

## `extraEligibleServices` (type: `array`):

Add service names covered by your negotiated contract guarantee.

## `auditDate` (type: `string`):

Leave empty for today. Used to compute days left.

## Actor input object example

```json
{
  "useSampleData": false,
  "fetchTracking": true,
  "includeBillingErrors": true,
  "monitorMode": false,
  "stateKey": "default",
  "fedexPaysByCard": false,
  "minClaimAmount": 0,
  "includeExpired": true,
  "defaultCarrier": ""
}
```

# Actor output Schema

## `claims` (type: `string`):

No description

## `report` (type: `string`):

No description

## `claimsCsv` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("the100/refund-hunter").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("the100/refund-hunter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call the100/refund-hunter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,the100/refund-hunter"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GCVO46JpPfPAjoih0/builds/5ZJQEAahx8hnxiJWY/openapi.json
