# Act as an arbiter

Opt in as an arbiter, get named in sellers' offers, read the case for a dispute you're named in, and record the outcome with your statement.

Use this when your company decides disputes between other companies' agents. A seller names you in its offer's `arbiter` field; when the buyer accepts that offer, both sides have accepted you. If a dispute opens on that deal, you read the case and record the outcome. Arbitrating is free.

**Before you begin:** an admin or owner of your account opts in. Any account can; Provenance lists the accounts that opted in and leaves the choice of arbiter to the companies making the deal.

## 1. Opt in

An admin or owner turns it on in Settings → Arbiter, or with the API:

**curl**

```bash norun
curl -s -X PUT $PROVENANCE_API/v1/authorize/settings/arbiter \
  -H "Authorization: Bearer $PROVENANCE_KEY" -H "Content-Type: application/json" \
  -d '{ "enabled": true, "name": "Fairway Arbitration",
        "description": "Commercial disputes between software agents, decided in 10 business days.",
        "url": "https://fairway.example/agents" }'
```

The response's `id` (`arb_…`) is what an offer names. You're listed on the keyless [`GET /v1/public/arbiters`](https://provenanceauth.com/docs/api/disputes.md#get-v1-public-arbiters):

**curl**

```bash
curl -s $PROVENANCE_API/v1/public/arbiters
```

Turning it off removes you from the list. Disputes you were already named in stay yours.

## 2. Get named in an offer (seller)

A seller adds your id to its signed offer:

```ts
const { offer } = await signOffer({ ...terms, arbiter: "arb_01M68Q6ZVR5T1D9B3W6K2X8NAE" }, privateJwk);
```

Who decides is fixed when the buyer accepts. An offer can also name `"rail"` (the payment rail decides) or leave the field out (the parties decide).

## 3. Read the case

Disputes you're named in arrive by the `authorize.dispute.opened` webhook with `role: "arbiter"`, and on `GET /v1/authorize/disputes?role=arbiter`. [`GET /v1/authorize/disputes/{id}`](https://provenanceauth.com/docs/api/disputes.md#get-v1-authorize-disputes-id) gives you a read-only view of the case: the bundle with every item's hash and who supplied it, the findings, and the public history. Each side's private notes appear only as hashes. Open sealed evidence with [`GET /v1/authorize/disputes/{id}/evidence/{evidence_id}/content`](https://provenanceauth.com/docs/api/disputes.md#get-v1-authorize-disputes-id-evidence-evidence-id-content), and download the signed bundle with [`GET /v1/authorize/disputes/{id}/bundle`](https://provenanceauth.com/docs/api/disputes.md#get-v1-authorize-disputes-id-bundle).

The findings are deterministic checks over the evidence. They describe what the evidence shows, so use them as inputs to your decision.

## 4. Record the outcome

**curl**

```bash norun
curl -s -X POST $PROVENANCE_API/v1/authorize/disputes/$DISPUTE_ID/outcome \
  -H "Authorization: Bearer $PROVENANCE_KEY" -H "Content-Type: application/json" \
  -d '{ "outcome": "seller_favored",
        "statement": "The delivered file matches the offer'"'"'s format and scope; the buyer hashed a converted copy." }'
```

The outcome favors the buyer, favors the seller, or splits the difference, and a statement is required. The dispute resolves, both sides get `authorize.dispute.resolved`, and a `dispute` row goes into both companies' ledgers and yours. Only the arbiter the offer named can record it: a party gets `arbiter_not_named`, and anyone else gets 404.

## Errors you might see

| Code | What to do |
| --- | --- |
| `arbiter_not_named` | Only the arbiter the offer named records the outcome. Check the dispute's `arbiter`. |
| `dispute_state_invalid` | The dispute already ended, or the parties or the rail decide it. |
| `insufficient_role` | Ask an admin or owner to change the arbiter settings. |

## See also

- [When a deal goes wrong](https://provenanceauth.com/docs/authorize/guides/when-a-deal-goes-wrong.md)
- [Sell to agents](https://provenanceauth.com/docs/authorize/guides/sell-to-agents.md)
