TheWavlyDocs
DocsGuides

Disputes and findings

When an agent's purchase goes wrong, the records decide who carries it. A dispute is opened on a check, each party adds evidence, a named reviewer records a signed finding and remedy, one appeal goes to a different reviewer, and the remedy is tracked until it is settled.

Open a dispute

POST /v1/disputes with the check and one of seven reasons:

ReasonWhen
no_authorityThe user says they never approved this.
limit_breachedIt went beyond an amount, budget or count in the mandate.
wrong_purchaseThe agent bought something other than what was asked.
not_as_orderedThe merchant delivered something other than what was ordered.
duplicate_paymentThe same purchase was paid twice.
price_changedThe amount charged differs from the amount shown.
unclear_instructionThe user's instruction could be read more than one way.

TheWavly answers with a suggested finding read from the records, the facts behind it, and the next step and channel. The suggestion is a starting point for the reviewer, never the decision. The first response is due 24 hours after the complaint was received (pass received_at when a partner forwards it).

Set independent_review: true to send a live case to TheWavly's independent desk, at a flat fee per case with the appeal included.

Add evidence

POST /v1/disputes/{id}/evidence from each party. Each item has a kind and a party, and is hashed into the finding:

  • Kinds: statement, order confirmation, delivery record, payment record, quote, screenshot or other.
  • Parties: customer, agent operator, merchant, payment participant or organisation.

Run the desk

When more than one person reviews disputes, use the queue:

  • Assign: POST /v1/disputes/{id}/assign with {"assignee": "lead@acme.in"} (a member's email or id), or null to unassign. Viewers cannot be assigned. In the dashboard, Take it assigns the case to you, and deciding an unassigned case takes it.
  • Deadlines: each open dispute carries sla, the next deadline:

| Stage | Due | Set by | | --- | --- | --- | | first_finding | 24 hours after the complaint was received (respond_by) | the rulebook | | appeal_decision | 7 days after the appeal was asked for | TheWavly's desk standard |

overdue is true once that deadline has passed.

  • The work queue: GET /v1/disputes?sort=due lists open and appealed disputes, the nearest deadline first. Add assignee=none for the unassigned ones, assignee=<id> for one reviewer's, or overdue=true.
  • Appeals: an appeal goes back to the queue unassigned, and cannot be assigned to anyone who decided the finding under appeal.
  • Time per case: send handling_minutes when you record a finding. The dashboard pre-fills it from how long the case was open on screen. It is kept for the desk's figures and is not part of the signed finding.
  • The desk's figures: GET /v1/disputes/stats?days=30 returns:
  • the queue now, by assignee;
  • the median and 90th-percentile hours to a first finding;
  • the share decided within the deadline;
  • minutes per case;
  • how many appeals changed the outcome.

Each assignment raises a dispute.assigned event.

Ask the other parties to respond

The merchant, the agent operator and the payment provider usually hold the facts that decide a case, and rarely have a TheWavly account. Give each one a link:

Shell
curl https://thewavly.com/v1/disputes/dsp_…/parties -u $WAVLY_KEY: \
  -H "Content-Type: application/json" \
  -d '{ "party": "merchant", "name": "Saree House", "email": "disputes@sareehouse.in" }'
  • The link: TheWavly emails it when email is on, and returns it to you once either way, so you can send it yourself. It works for 14 days by default (expires_in_days, up to 30), and you can withdraw it at any time.
  • What the party sees:
  • the purchase that was checked, and TheWavly's answer and receipt;
  • the payment reference;
  • what was reported about delivery;
  • the complaint and the deadline.

It never shows the customer's own words in the mandate. Other parties' evidence appears only if you set include_evidence: true.

  • What the party can do:
  • say whether it accepts, partly accepts or contests the complaint;
  • add a statement and documents;
  • as a merchant or payment provider, report what happened to the order.

Each response becomes evidence under that party's name, and you get dispute.party_responded.

  • The case file: the party can download a signed copy of what it was shown, to keep with its own records.

Fulfilment reports

What happened after payment is often what a dispute turns on. Merchants report it with their release key (see Accept agent orders), and you can record it with POST /v1/checks/{id}/fulfilment, naming the party you speak for. Each report adds a fact to the suggestion, and the merchant's own report can change it:

The merchant or payment provider reportsSuggested finding
A refund of the full amountsettled
not_delivered or partially_deliveredmerchant
delivered, with items that differ from the item checkedmerchant
delivered, with the item checked (on a not_as_ordered dispute)insufficient_evidence: ask the customer what arrived

When a report changes an open dispute's suggestion, TheWavly sends dispute.suggestion_updated. The suggestion is a starting point; the reviewer decides.

Record the finding

A person decides. POST /v1/disputes/{id}/resolve records:

  • reviewer, by name;
  • finding: agent_operator, merchant, payment_participant, shared, no_breach, insufficient_evidence or settled;
  • a note;
  • a remedy: refund, compensation, correction or goodwill, with an amount and who funds it.

The finding is signed and lists the digest of every piece of evidence the reviewer had.

Appeal

Either party may appeal within 14 days with POST /v1/disputes/{id}/appeal. A reviewer who took no part in the first decision must decide it. Until the appeal window closes, a finding is provisional, and it does not count in an agent's score.

Track the remedy

POST /v1/disputes/{id}/remedy moves the remedy from promised to initiated to settled, with a reference. The dispute's history, and the evidence pack of its check, carry every step.