Authorize · Guide
Act as an arbiter
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 -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 /:
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:
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 / 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 /, and download the signed bundle with GET /.
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 -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_ | Only the arbiter the offer named records the outcome. Check the dispute's arbiter. |
dispute_ | The dispute already ended, or the parties or the rail decide it. |
insufficient_ | Ask an admin or owner to change the arbiter settings. |