# Which PayPal Disputes Need Our Answer, and by When? An Outdoor-Gear Store's Morning List From PayPal

An outdoor-gear store's agent reads its open PayPal disputes each weekday morning and lists each one's deadline, reason and the evidence to gather before replying.

[Run this on Rush](https://cloud.getrush.ai/run/prepare-responses-to-open-disputes/paypal/). Opens the console with this prompt ready to send. Connect PayPal there first.

## What the agent does

This is for an online store that sells tents, packs and climbing gear, and takes a good share of its payments through PayPal. A few times a week a buyer opens a dispute: the parcel never arrived, the jacket was not the size described, a charge they do not recognise. PayPal gives the seller a deadline to answer, and a dispute with no answer by then closes in the buyer's favour. The two people who run customer service check PayPal's Resolution Center when they remember. They want one list each morning of every dispute waiting on the store, soonest deadline first, with what each one needs.

The run names one connection, `paypal`, which the store owner signed in to on PayPal's own login page through PayPal's hosted MCP server. The agent calls `list_disputes` to get the summary of every dispute, then keeps those whose `status` is not `RESOLVED`. For each it calls `get_dispute` with its `dispute_id` and reads the fields PayPal's Disputes API defines: `reason` (such as `MERCHANDISE_OR_SERVICE_NOT_RECEIVED` or `MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED`), `status`, `dispute_life_cycle_stage` (`INQUIRY`, `CHARGEBACK`, `PRE_ARBITRATION` or `ARBITRATION`), `dispute_amount`, `seller_response_due_date` and the `messages` the buyer wrote.

From `disputed_transactions` it reads the `seller_transaction_id`, the `invoice_number` and `custom` fields the store's checkout fills with its own order number, and the `items`. Disputes waiting on the store, with `status` `WAITING_FOR_SELLER_RESPONSE` or `OPEN`, go at the top, ordered by `seller_response_due_date`; those waiting on the buyer or under PayPal's review follow, for information. A dispute due within 48 hours is marked urgent.

For each dispute waiting on the store it writes what to gather, by reason: for a parcel not received, the store's order number so someone pulls the carrier's tracking and delivery scan from the shipping tool; for not as described, the product page and photos of what was sent; for an unrecognised charge, the order's shipping address and any earlier orders from that buyer. It also drafts a short reply to the buyer's message in the store's voice. It writes `disputes-today.md` and `disputes-today.csv`. It never calls `accept_dispute_claim` or `create_refund`: accepting a claim settles it in the buyer's favour, and that is a decision for a person.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "claude",
  "input": "List our PayPal disputes that need an answer. Today is 2026-11-18. Use the paypal connection. 1) Call list_disputes and keep every dispute whose status is not RESOLVED. 2) For each, call get_dispute and read reason, status, dispute_life_cycle_stage, dispute_amount, seller_response_due_date, messages, and from disputed_transactions the seller_transaction_id, invoice_number, custom (our order number) and items. 3) Put disputes with status WAITING_FOR_SELLER_RESPONSE or OPEN first, ordered by seller_response_due_date, and mark URGENT any due before 2026-11-20T09:00:00-07:00; list the others after, under Waiting on the buyer or PayPal. 4) For each dispute waiting on us, write what to gather by reason: MERCHANDISE_OR_SERVICE_NOT_RECEIVED: the order number, to pull carrier tracking and the delivery scan; MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED: the product page and photos of what was shipped; UNAUTHORISED: the shipping address and the buyer's earlier orders; anything else: the buyer's message and the order. Draft a reply to the buyer's latest message of at most 80 words, friendly and factual, promising nothing. Write disputes-today.md and disputes-today.csv (dispute_id, order number, reason, stage, amount, status, due, urgent, what to gather). Do not call accept_dispute_claim, create_refund, cancel_subscription, update_shipment_tracking or any tool that pays, refunds, accepts, sends or changes anything.",
  "connections": [
    "paypal"
  ]
}
```

1. **Get an API key.** In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
2. **Send the request.** POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
3. **Read what came back.** Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

## What comes back

The session returns `disputes-today.md` and `disputes-today.csv` as artifacts. The Markdown opens with the disputes due soonest, the urgent ones marked, each with the order number, amount, reason, stage, what to gather and a draft reply, and ends with the disputes waiting on the buyer or on PayPal so nobody answers those by mistake.

What a person checks before answering in PayPal: the tracking and delivery scan in the shipping tool, which the run cannot see; whether the buyer already wrote to the store's support inbox about the same order, which changes the reply; and whether to fight, offer a partial refund or accept, which depends on the amount, the evidence and the customer. The response and any refund are made in PayPal by a person. The draft reply promises nothing.

## Run it on every weekday morning

The owner saves the agent with `POST /o/{org}/agents`, naming the `paypal` connection and the instructions above with "today" and "within 48 hours" in place of the dates, and adds a console automation with a `schedule` trigger, `cron` `0 8 * * 1-5` and the store's `timezone`. A schedule fills nothing into the prompt.

Around holidays, when the store closes for a few days, the owner can start the same agent by hand the afternoon before closing, so any dispute due while the store is shut is answered before it.

## Why run it on Rush?

The PayPal account that holds the store's disputes can also refund, cancel and accept claims. On Rush the sign-in stays in the connection rather than as a client ID and secret in a script, the prompt keeps the run to reading, and the run's record lists every tool call, so the owner can see that no claim was accepted and no money moved.

Each morning's run has its own computer and a record of what its model calls cost. A dispute lost because nobody saw the deadline costs the order and often the item; a list that arrives every weekday with the deadlines sorted is the part of dispute handling that should never depend on someone remembering to look.

## Frequently asked questions

### Can the agent answer the dispute in PayPal?

No. PayPal's tools for this job include accepting a claim and refunding, both of which settle money, and the prompt forbids them. A person submits the response and evidence in PayPal after checking the list.

### Why can't the agent get the tracking number itself?

PayPal's tracking tool looks a shipment up by the order it was attached to, and a dispute names the payment, not that order. The store's order number in the dispute's `invoice_number` or `custom` field is the reliable link, so the list gives it to whoever opens the shipping tool.

### What does the stage tell us?

`INQUIRY` is the buyer and the store trying to settle it without PayPal. `CHARGEBACK`, despite its name, is PayPal's own claim stage and not a card chargeback: PayPal investigates, and the store accepts, submits evidence or makes an offer. `PRE_ARBITRATION` and `ARBITRATION` are appeal stages. The list shows the stage so the team knows whether a friendly reply can still settle it.

### Does this need a PayPal developer app?

No. PayPal's hosted MCP server sends the store owner to PayPal's login page to authorize, and Rush keeps that sign-in in the connection. PayPal's other option, a client ID and secret from the Developer Dashboard, is for clients without a browser sign-in.

## More PayPal jobs

- [How Does Bookkeeping Software Turn Each Seller's PayPal Month Into Lines for the Books?](https://getrush.ai/run/summarize-paypal-month-for-the-books/paypal/)
- [List Unpaid PayPal Invoices and Draft Reminders](https://getrush.ai/run/unpaid-invoices-report/paypal/)
- [Summarize Open PayPal Disputes](https://getrush.ai/run/dispute-report/paypal/)

## More jobs like this: Produce a report or file, no repo

- [Reconcile Stripe Payouts Against Charges](https://getrush.ai/run/reconcile-payouts/stripe/)
- [Check Release Health in Sentry After a Deploy](https://getrush.ai/run/release-health-report/sentry/)
- [Write Release Notes in Confluence From Jira Issues](https://getrush.ai/run/release-notes-in-confluence/atlassian/)

## Keep reading

- [Connect PayPal to Rush once, then name it on any run](https://getrush.ai/integrations/paypal/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
