Add a charge (tolls, violations, fees)
Scope: charges:write
For a toll or violation service the host connected with an API token: add one toll, violation or fee to a booking. It’s billed on the booking’s invoices and the host collects it from the renter. If the booking’s invoice is already paid, it goes on a new invoice for that booking rather than reopening the paid one. (Services working with many hosts should use the Fleetwire Partner API instead: one key, no per-host tokens.)
provider(string, required) — your service’s short id, e.g.myeztoll(lowercase letters, digits,-,_)external_id(string, required) — your id for the charge. Idempotent: sending the sameexternal_idwith the same amount and kind returns the original with200and never bills twice. Different details under the same id return409.kind(required) —toll,violationorfeeamount_cents(integer, required) — the road cost or fineprovider_fee_cents(integer) — your fee, billed as its own line next to the chargeoccurred_at(ISO 8601, required except forfee) — when the toll was passed or the violation issueddescription(string) — shown to the renter on the invoice line, e.g.E-ZPass NY — 3 tolls, Oct 10listing_id,plate,plate_state— cross-checked against the booking’s vehicleauthority,location,citation_number,violation_type(parking,red_light,speed,other),due_atdocument(PDF file, multipart),document_pdf(base64) ordocument_url(public https link) — an itemized receipt, up to 5 MBcurrency(defaultUSD)
Refused (422) when the charge isn’t for that booking: a different listing_id or plate, or an occurred_at outside the trip. 404 for a booking that isn’t yours. 409 when the booking has no order to bill, or the external_id conflicts.
status is unbilled, billed (on an unpaid invoice), paid or voided.
Authentication
An API token from Settings → API tokens in Fleetwire, sent as Authorization: Bearer …. Each token carries scopes: read for every GET, plus write scopes such as bookings:write.
Path parameters
Request
Your service’s short id, e.g. myeztoll.
Required unless kind is fee.
Cross-checked against the booking’s vehicle.
Cross-checked against the booking’s vehicle.

