SmartGare
API referenceEndpoints

Read a carrier charge

BIL-052. One stay's charge: the amount it was recorded for, the amount its approved corrections leave it at, when it was recorded, what priced it and every line, and the payouts that took it off. **Required permission:** `billing.payout:read`

GET/billing/v1/carrier-charges/{id}

BIL-052. One stay's charge: the amount it was recorded for, the amount its approved corrections leave it at, when it was recorded, what priced it and every line, and the payouts that took it off.

Required permission: billing.payout:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Carrier charge id

Response Body

*/*

curl -X GET "https://example.com/billing/v1/carrier-charges/string"
{  "carrier_id": "string",  "charge_list_hash": "string",  "charge_list_id": "string",  "charge_revision": 0,  "closed_at": "2019-08-24T14:15:22Z",  "coach_kind": "string",  "corrected_amount": 0,  "currency": "string",  "deductions": [    {      "amount": 0,      "given_back": true,      "payout_id": "string",      "produced_at": "2019-08-24T14:15:22Z",      "statement_number": "string"    }  ],  "departure_at": "2019-08-24T14:15:22Z",  "departure_id": "string",  "id": "string",  "lines": [    {      "amount": 0,      "basis": "string",      "charge_list_line_id": "string",      "charged_minutes": 0,      "minutes": 0,      "rule_version_id": "string",      "tickets_sold": 0,      "tickets_threshold": 0    }  ],  "original_amount": 0,  "recorded_at": "2019-08-24T14:15:22Z",  "source": "string",  "tickets_sold": 0,  "vehicle_cycle_id": "string",  "vehicle_id": "string",  "vehicle_plate": "string"}