API referenceEndpoints
Raise a dispute against a stay's carrier charge
**Required permission:** `billing.dispute:raise`
POST
/billing/v1/disputesRequired permission: billing.dispute:raise
Authorization
oauth2 AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
body*RaiseDisputeRequest
Response Body
*/*
*/*
curl -X POST "https://example.com/billing/v1/disputes" \ -H "Content-Type: application/json" \ -d '{ "claim": "string", "complainant": "DRIVER", "reason": "string", "reference": "string", "target_id": "string", "target_kind": "CARRIER_CHARGE" }'{ "already_raised": 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 } }}Read a departure's road sheet
BIL-054. The tickets sold and refunded on the departure, every fee and penalty of the stay that drove it with its approved corrections, no station share, and what is owed to the carrier, from billing's own records; what is not known yet is named pending, and no amount owed is given while anything is. **Required permission:** `billing.payout:read`
List the disputes at the operator post
BIL-010. Disputes currently escalated, oldest escalation first, one bounded page at a time. **Required permission:** `billing.dispute:read`