SmartGare
API referenceEndpoints

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`

GET/billing/v1/departures/{departureId}/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

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/billing/v1/departures/{departureId}/road-sheet"
{  "accounts": [    {      "carried_forward": 0,      "carrier_id": "string",      "charges": 0,      "currency": "string",      "net_sales": 0,      "owed": 0,      "purchases": 0,      "refunds_total": 0,      "sales_total": 0,      "tickets_refunded": 0,      "tickets_sold": 0    }  ],  "departure_id": "string",  "no_station_share_since": "2019-08-24",  "payout_ids": [    "string"  ],  "pending": [    "string"  ],  "station_share": "string",  "stays": [    {      "carrier_id": "string",      "charge_id": "string",      "closed_at": "2019-08-24T14:15:22Z",      "corrections": 0,      "currency": "string",      "fees": 0,      "lines": [        {          "amount": 0,          "basis": "string",          "charge_list_line_id": "string",          "rule_version_id": "string"        }      ],      "payout_ids": [        "string"      ],      "penalties": 0,      "total": 0,      "vehicle_cycle_id": "string"    }  ]}