SmartGare
API referenceEndpoints

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`

POST/billing/v1/disputes/{disputeId}/ruling

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

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*RuleDisputeRequest

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    }  }}