Fleetwire Partner API Charges API
Tolls, violations and fees you send, and changes to them.
Tolls, violations and fees you send, and changes to them.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/fleetwire:fleetwire-partnerapicharges-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Reference Partner API Charges API
version: 1.0.0
description: Tolls, violations and fees you send, and changes to them.
servers:
- url: https://api.fleetwire.io/api
description: Production
- url: https://staging.fleetwire.io/api
description: Sandbox (Partner API)
tags:
- name: partnerApiCharges
description: Tolls, violations and fees you send, and changes to them.
paths:
/partners/v1/companies/{company_id}/charges:
post:
operationId: partnerApiCharges_partnerSendCharge
summary: Send a charge
description: 'Send one toll, violation or fee. It''s billed on the rental''s order by the rental company''s own rules.
With `rental_id`, the charge is checked against that rental: the plate must match the rental''s vehicle and
`occurred_at` must fall within the trip (with a day either side). If not, you get `422` and nothing is billed.
Without `rental_id`, Fleetwire matches by `plate` and `occurred_at`; if no rental had the car then, the charge
is kept as `unmatched` for the rental company to review.
The receipt can be a multipart file (`document`), base64 (`document_pdf`) or a public `https` link
(`document_url`, downloaded once, no redirects). It must be a PDF of 5 MB or less.
**Idempotent:** the same `external_id` with the same amount and kind returns the original with `200`.
A different amount or kind under the same `external_id` returns `409`; use PATCH to change a charge.'
tags:
- partnerApiCharges
parameters:
- name: company_id
in: path
description: The Fleetwire company ID from `GET /companies`.
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The charge. `200` means this was a retry of a charge Fleetwire already has, and the original is returned; `201` means it was newly created.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerChargeEnvelope'
'401':
description: Missing, wrong or revoked partner key.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'404':
description: Unknown company, or it hasn't turned you on, or turned you off. Stop sending for this company.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'409':
description: The `external_id` was already used for a charge with a different amount or kind.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'422':
description: The request is invalid. `error.fields` lists each problem.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'429':
description: More than 600 requests in a minute. Wait for the `Retry-After` header (seconds).
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerSendChargeRequestTooManyRequestsError'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerChargeInput'
security:
- partnerKey: []
/partners/v1/companies/{company_id}/charges/{external_id}:
get:
operationId: partnerApiCharges_partnerGetCharge
summary: Get a charge
description: The charge with its current status. Use it to reconcile.
tags:
- partnerApiCharges
parameters:
- name: company_id
in: path
description: The Fleetwire company ID from `GET /companies`.
required: true
schema:
type: string
format: uuid
- name: external_id
in: path
description: Your `external_id` for the charge.
required: true
schema:
type: string
maxLength: 191
responses:
'200':
description: The charge.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerChargeEnvelope'
'401':
description: Missing, wrong or revoked partner key.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'404':
description: No charge with that `external_id` (or the company isn't connected; see `error.code`).
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'429':
description: More than 600 requests in a minute. Wait for the `Retry-After` header (seconds).
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerGetChargeRequestTooManyRequestsError'
security:
- partnerKey: []
patch:
operationId: partnerApiCharges_partnerUpdateCharge
summary: Change a charge
description: '| `status` | Also send | Effect |
|---|---|---|
| `voided` | `reason`? | Taken off the renter''s bill. If they already paid, they''re refunded on a new invoice. |
| `amount_changed` | `amount_cents`, `reason`? | Re-billed at the new amount (`0` voids it). A paid amount is refunded and re-billed, never edited in place. |
| `paid_at_authority` | | Recorded; shown as `authority_status`. |
| `disputed` | | Recorded; shown as `authority_status`. |
| `dispute_resolved` | `amount_cents` | `0` voids the charge; another amount re-bills it. |'
tags:
- partnerApiCharges
parameters:
- name: company_id
in: path
description: The Fleetwire company ID from `GET /companies`.
required: true
schema:
type: string
format: uuid
- name: external_id
in: path
description: Your `external_id` for the charge.
required: true
schema:
type: string
maxLength: 191
responses:
'200':
description: The updated charge.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerChargeEnvelope'
'401':
description: Missing, wrong or revoked partner key.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'404':
description: No charge with that `external_id` (or the company isn't connected; see `error.code`).
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'422':
description: The request is invalid. `error.fields` lists each problem.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerError'
'429':
description: More than 600 requests in a minute. Wait for the `Retry-After` header (seconds).
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerUpdateChargeRequestTooManyRequestsError'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerChargeUpdate'
security:
- partnerKey: []
components:
schemas:
PartnerChargeInput:
type: object
properties:
external_id:
type: string
maxLength: 191
description: Your id for this charge. The idempotency key.
kind:
$ref: '#/components/schemas/PartnerChargeInputKind'
description: '`fee` is a charge of yours that isn''t a toll or violation, e.g. a registration fee.'
amount_cents:
type: integer
minimum: 1
maximum: 10000000
description: What the authority charged.
provider_fee_cents:
type: integer
minimum: 0
maximum: 10000000
default: 0
description: Your fee for this charge. Billed to the renter as its own line.
currency:
type: string
minLength: 3
maxLength: 3
default: USD
occurred_at:
type: string
format: date-time
description: When it happened. Required unless `kind` is `fee`.
rental_id:
type: string
maxLength: 64
description: The rental, if you know it. Otherwise matched by `plate` and `occurred_at`.
plate:
type: string
maxLength: 20
description: Needed for matching when there's no `rental_id`.
plate_state:
type: string
maxLength: 10
authority:
type: string
maxLength: 191
location:
type: string
maxLength: 250
description: Plaza, gantry or address.
description:
type: string
maxLength: 200
description: Shown on the renter's invoice.
citation_number:
type: string
maxLength: 100
violation_type:
$ref: '#/components/schemas/PartnerChargeInputViolationType'
due_at:
type: string
format: date
description: When the authority wants it paid.
document_pdf:
type: string
description: Itemized receipt PDF, base64-encoded. Up to 5 MB.
document_url:
type: string
format: uri
maxLength: 2000
description: A public https link to the receipt PDF. Downloaded once, no redirects.
required:
- external_id
- kind
- amount_cents
title: PartnerChargeInput
PartnerChargeStatus:
type: string
enum:
- unmatched
- unbilled
- billed
- paid
- voided
description: '`unmatched`: no rental found. `unbilled`: matched, but the rental has nothing to bill on yet.
`billed`: on the renter''s invoice, not paid yet. `paid`: the renter paid that invoice.
`voided`: voided by you or the rental company.
'
title: PartnerChargeStatus
PartnerChargeKind:
type: string
enum:
- toll
- violation
- fee
title: PartnerChargeKind
PartnerChargeAuthorityStatus:
type: string
enum:
- paid_at_authority
- disputed
- dispute_resolved
title: PartnerChargeAuthorityStatus
PartnerChargeUpdateStatus:
type: string
enum:
- voided
- amount_changed
- paid_at_authority
- disputed
- dispute_resolved
title: PartnerChargeUpdateStatus
PartnerCharge:
type: object
properties:
charge_id:
type: string
format: uuid
description: Fleetwire's id for the charge.
external_id:
type: string
kind:
$ref: '#/components/schemas/PartnerChargeKind'
rental_id:
type:
- string
- 'null'
description: '`null` while unmatched.'
match:
$ref: '#/components/schemas/PartnerChargeMatch'
description: '`provided`: you sent `rental_id`. `matched`: Fleetwire found the rental by plate and time.
`unmatched`: no rental had the car then; the rental company reviews it.
'
status:
$ref: '#/components/schemas/PartnerChargeStatus'
description: '`unmatched`: no rental found. `unbilled`: matched, but the rental has nothing to bill on yet.
`billed`: on the renter''s invoice, not paid yet. `paid`: the renter paid that invoice.
`voided`: voided by you or the rental company.
'
amount_cents:
type: integer
provider_fee_cents:
type: integer
currency:
type: string
occurred_at:
type:
- string
- 'null'
format: date-time
has_document:
type: boolean
authority_status:
$ref: '#/components/schemas/PartnerChargeAuthorityStatus'
created_at:
type: string
format: date-time
voided_at:
type:
- string
- 'null'
format: date-time
required:
- charge_id
- external_id
- kind
- rental_id
- match
- status
- amount_cents
- provider_fee_cents
- currency
- occurred_at
- has_document
- authority_status
- created_at
- voided_at
title: PartnerCharge
PartnerUpdateChargeRequestTooManyRequestsError:
type: object
properties:
message:
type: string
title: PartnerUpdateChargeRequestTooManyRequestsError
PartnerChargeInputKind:
type: string
enum:
- toll
- violation
- fee
description: '`fee` is a charge of yours that isn''t a toll or violation, e.g. a registration fee.'
title: PartnerChargeInputKind
PartnerChargeUpdate:
type: object
properties:
status:
$ref: '#/components/schemas/PartnerChargeUpdateStatus'
amount_cents:
type: integer
minimum: 0
maximum: 10000000
description: Required for `amount_changed` and `dispute_resolved`. `0` voids the charge.
reason:
type: string
maxLength: 200
required:
- status
title: PartnerChargeUpdate
PartnerGetChargeRequestTooManyRequestsError:
type: object
properties:
message:
type: string
title: PartnerGetChargeRequestTooManyRequestsError
PartnerChargeInputViolationType:
type: string
enum:
- parking
- red_light
- speed
- other
title: PartnerChargeInputViolationType
PartnerErrorError:
type: object
properties:
code:
$ref: '#/components/schemas/PartnerErrorErrorCode'
message:
type: string
fields:
type: object
additionalProperties:
type: array
items:
type: string
description: Present only on `validation_failed`. Each invalid field with its problems.
required:
- code
- message
title: PartnerErrorError
PartnerChargeEnvelope:
type: object
properties:
data:
$ref: '#/components/schemas/PartnerCharge'
required:
- data
title: PartnerChargeEnvelope
PartnerChargeMatch:
type: string
enum:
- provided
- matched
- unmatched
description: '`provided`: you sent `rental_id`. `matched`: Fleetwire found the rental by plate and time.
`unmatched`: no rental had the car then; the rental company reviews it.
'
title: PartnerChargeMatch
PartnerError:
type: object
properties:
error:
$ref: '#/components/schemas/PartnerErrorError'
required:
- error
title: PartnerError
PartnerErrorErrorCode:
type: string
enum:
- invalid_key
- company_not_connected
- not_found
- external_id_conflict
- validation_failed
title: PartnerErrorErrorCode
PartnerSendChargeRequestTooManyRequestsError:
type: object
properties:
message:
type: string
title: PartnerSendChargeRequestTooManyRequestsError
securitySchemes:
apiToken:
type: http
scheme: bearer
description: '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`.'
partnerKey:
type: http
scheme: bearer
description: 'Your partner key, starting with `fwp_`, sent as `Authorization: Bearer fwp_…`. Keep it server-side.
Fleetwire can rotate it at any time; the old key stops working as soon as a new one is issued.
'