Rule on a dispute and close it
BIL-011. Upheld or rejected, with a reason; an upheld ruling names the retained corrected charge fact it rests on and requests the derived correction of the stay's charge, carried on the carrier's next payout once approved. The charge itself never changes. **Required permission:** `billing.dispute:rule`
/billing/v1/disputes/{disputeId}/rulingBIL-011. Upheld or rejected, with a reason; an upheld ruling names the retained corrected charge fact it rests on and requests the derived correction of the stay's charge, carried on the carrier's next payout once approved. The charge itself never changes.
Required permission: billing.dispute:rule
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/billing/v1/disputes/{disputeId}/ruling" \ -H "Content-Type: application/json" \ -d '{ "decision": "UPHELD", "reason": "string", "reference": "string" }'{ "already_ruled": true, "dispute": { "actions": [ { "acted_at": "2019-08-24T14:15:22Z", "actor": "string", "kind": "string", "reason": "string", "reference": "string", "sequence": 0 } ], "charge_revision": 0, "claim": "string", "claimed_amount": 0, "complainant": "string", "currency": "string", "escalation": { "at": "2019-08-24T14:15:22Z", "escalated_by": "string", "reason": "string", "reference": "string" }, "id": "string", "invoice_id": "string", "raise_evidence": { "file_id": "string", "first_broken_position": 0, "late_facts": 0, "missing_facts": [ "string" ], "sealed": true, "status": "string", "verified_at": "2019-08-24T14:15:22Z" }, "raised_at": "2019-08-24T14:15:22Z", "raised_by": "string", "reason": "string", "reference": "string", "ruling": { "consequence": "string", "correction_request_id": "string", "decision": "string", "document": { "id": "string", "state": "string" }, "evidence_status": "string", "evidence_verified_at": "2019-08-24T14:15:22Z", "finding_fact_id": "string", "finding_fact_kind": "string", "reason": "string", "reference": "string", "ruled_at": "2019-08-24T14:15:22Z", "ruled_by": "string" }, "ruling_notice": { "attempts": 0, "failure": "string", "link": "string", "recipient": "string", "recorded_at": "2019-08-24T14:15:22Z", "sent_at": "2019-08-24T14:15:22Z", "status": "string" }, "status": "string", "target_amount": 0, "target_id": "string", "target_kind": "string", "updated_at": "2019-08-24T14:15:22Z", "vehicle_cycle_id": "string", "window": { "anchor_at": "2019-08-24T14:15:22Z", "anchor_kind": "string", "deadline": "2019-08-24T14:15:22Z", "length_seconds": 0 } }}Escalate an open dispute to the operator post
**Required permission:** `billing.dispute:escalate`
Retrieve a dispute's ruling document
BIL-015. The bytes of this dispute's ruling document and of no other document, handed over only after they were read back and matched the size and SHA-256 fingerprint recorded when it was kept. Its own right, so a counter can print a ruling without the right to retrieve any other kept document. A pending, removed, missing or altered document, or a store that cannot be reached, is refused with its reason and no byte. **Required permission:** `billing.dispute:print-ruling`