Fleetwire Partner API: Charges API

Tolls, violations and fees you send, and changes to them.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

POST /partners/v1/companies/{company_id}/charges Send a charge #
GET /partners/v1/companies/{company_id}/charges/{external_id} Get a charge #
PATCH /partners/v1/companies/{company_id}/charges/{external_id} Change a charge #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fleetwire:fleetwire-partner-api-charges-api"
All apis
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.

Get an API 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 Specification

fleetwire-partner-api-charges-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Fleetwire Partner API: Charges API'
  version: 2.0.0
  contact:
    name: Fleetwire
    email: hi@fleetwire.io
  description: '# Fleetwire API


    Read your fleet''s listings, availability and bookings, and block dates or change booking status from your own systems. ## Authentication


    Create a token in the dashboard under **Settings → Security → API Tokens**: https://app.fleetwire.io/settings/security/api-tokens


    Send it as a bearer token on every request:


    ```

    Authorization: Bearer YOUR_API_TOKEN

    Accept: application/json

    ```


    A token acts as the user who created it, scoped to that user''s company. Treat it like a password: keep it server-side, never put it in browser or mobile code, and delete it from the dashboard if it leaks. ## Token scopes


    When you create a token you choose its access:


    | Access | Scopes | Can |

    |---|---|---|

    | Full access | `*` | Everything the user can do. Use this for Zapier. |

    | Read only | `read` | Every `GET` endpoint |

    | Custom | `read` plus any of the below | Read, plus the writes you pick |


    Write scopes:


    - `bookings:write` — booking status, blocked dates, notes, payment requests

    - `customers:write` — create and update customers

    - `webhooks:write` — create, change and delete webhook endpoints

    - `pricing:write` — set and clear per-day listing prices


    A request outside the token''s scopes gets `403` with the missing scope in `message`. Scopes narrow a token; they never grant more than the user who created it has. ## Plan requirement


    Reading works on every paid plan and during a free trial: any `GET`, with a token that has `read`. Changing data (any request that needs a write scope such as `bookings:write`) needs the **Premium** plan. Both cases are refused with `402 Payment Required`. Without an active subscription:


    ```json

    { "success": false, "message": "No subscription", "errors": ["You do not have an active subscription"] }

    ```


    A write request on a plan below Premium:


    ```json

    { "success": false, "message": "Your subscription does not support this feature.", "errors": ["Your subscription does not support this feature."] }

    ```


    ## Base URL


    `https://api.fleetwire.io/api/v2`


    ## Rate limits


    200 requests per minute per token. Over the limit you receive `429 Too Many Requests` with a `Retry-After` header. ## Errors


    | Status | Meaning |

    |---|---|

    | 401 | Missing or invalid token |

    | 402 | No active subscription, or a write request on a plan below Premium |

    | 403 | The token''s user lacks permission for this action |

    | 404 | Record not found, or it belongs to another company |

    | 422 | Validation failed — see `errors` for the field messages |

    | 429 | Rate limited |


    Validation errors look like:


    ```json

    { "message": "The trip end field is required.", "errors": { "trip_end": ["The trip end field is required."] } }

    ```


    ## Dates and times


    `trip_start` / `trip_end` are local wall-clock times (`YYYY-MM-DD HH:MM:SS`) in the listing''s timezone, returned alongside as `timezone`. `created_at` / `updated_at` are UTC ISO 8601. Money values are in **cents**. ## Webhooks


    Rather than polling, register an endpoint (see the **Webhooks** folder) and Fleetwire POSTs a JSON body to it when something happens. Events:


    | Event | When |

    |---|---|

    | `reservation.created` | A booking is made, or a request is approved |

    | `reservation.requested` | A booking request needs your approval |

    | `reservation.canceled` | A booking is canceled |

    | `booking.updated` | Dates, vehicle, customer or total change. `changed` lists the fields. |

    | `booking.status_changed` | Any status change. Includes `previous_status`. |

    | `trip.started` | A booking is marked started |

    | `trip.ended` | A started trip is returned or completed |

    | `payment.processed` | A payment succeeds |

    | `payment.failed` | A charge is declined |

    | `payment.refunded` | A payment is refunded |

    | `customer.created` | A customer is added |

    | `customer.updated` | A customer''s name, email, phone, birth date or address changes. `changed` lists the fields.'
servers:
- url: https://api.fleetwire.io/api
  description: Production
- url: https://staging.fleetwire.io/api
  description: Sandbox (Partner API)
security:
- apiToken: []
tags:
- name: 'Partner API: Charges'
  description: Tolls, violations and fees you send, and changes to them.
paths:
  /partners/v1/companies/{company_id}/charges:
    post:
      tags:
      - 'Partner API: Charges'
      operationId: 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.'
      parameters:
      - $ref: '#/components/parameters/PartnerCompanyId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartnerChargeInput'
            examples:
              toll:
                summary: A toll matched by plate and time
                value:
                  external_id: tc_8812
                  kind: toll
                  amount_cents: 675
                  provider_fee_cents: 100
                  occurred_at: '2026-10-10T18:12:00Z'
                  plate: K72LMX
                  plate_state: NJ
                  authority: E-ZPass NY
                  location: NJ Turnpike Interchange 11
                  description: E-ZPass NY — 3 tolls, Oct 10
                  document_url: https://files.example.com/receipts/tc_8812.pdf
              violation:
                summary: A violation for a known rental
                value:
                  external_id: tc_cit_20391
                  rental_id: b_EXAMPLE1
                  kind: violation
                  amount_cents: 10000
                  provider_fee_cents: 2500
                  occurred_at: '2026-10-09T14:40:00-04:00'
                  plate: K72LMX
                  plate_state: NJ
                  authority: City of Miami Parking
                  citation_number: MIA-20391
                  violation_type: parking
                  due_at: '2026-11-08'
                  description: Parking citation, Brickell Ave
                  document_pdf: JVBERi0xLjQK...
              fee:
                summary: A fee of yours (no occurred_at needed)
                value:
                  external_id: tc_reg_77
                  rental_id: b_EXAMPLE1
                  kind: fee
                  amount_cents: 1000
                  description: Toll service registration
          multipart/form-data:
            schema:
              allOf:
              - $ref: '#/components/schemas/PartnerChargeInput'
              - type: object
                properties:
                  document:
                    type: string
                    format: binary
                    description: Itemized receipt PDF, up to 5 MB.
      responses:
        '201':
          description: The charge, newly created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerChargeEnvelope'
              examples:
                charge:
                  $ref: '#/components/examples/PartnerCharge'
        '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':
          $ref: '#/components/responses/PartnerInvalidKey'
        '404':
          $ref: '#/components/responses/PartnerCompanyNotConnected'
        '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'
              example:
                error:
                  code: external_id_conflict
                  message: This external_id was already used for a charge with different details. Use PATCH to change a charge.
        '422':
          $ref: '#/components/responses/PartnerValidationFailed'
        '429':
          $ref: '#/components/responses/PartnerRateLimited'
      security:
      - partnerKey: []
  /partners/v1/companies/{company_id}/charges/{external_id}:
    parameters:
    - $ref: '#/components/parameters/PartnerCompanyId'
    - name: external_id
      in: path
      required: true
      description: Your `external_id` for the charge.
      schema:
        type: string
        maxLength: 191
      example: tc_8812
    get:
      tags:
      - 'Partner API: Charges'
      operationId: partnerGetCharge
      summary: Get a charge
      description: The charge with its current status. Use it to reconcile.
      responses:
        '200':
          description: The charge.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerChargeEnvelope'
              examples:
                charge:
                  $ref: '#/components/examples/PartnerCharge'
        '401':
          $ref: '#/components/responses/PartnerInvalidKey'
        '404':
          $ref: '#/components/responses/PartnerNotFound'
        '429':
          $ref: '#/components/responses/PartnerRateLimited'
      security:
      - partnerKey: []
    patch:
      tags:
      - 'Partner API: Charges'
      operationId: 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. |'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartnerChargeUpdate'
            examples:
              voided:
                summary: Void
                value:
                  status: voided
                  reason: Agency reversed the toll
              amount_changed:
                summary: New amount
                value:
                  status: amount_changed
                  amount_cents: 450
                  reason: Agency adjusted to off-peak rate
              disputed:
                summary: Dispute opened
                value:
                  status: disputed
              dispute_resolved:
                summary: Dispute dismissed
                value:
                  status: dispute_resolved
                  amount_cents: 0
                  reason: Dismissed by the authority
      responses:
        '200':
          description: The updated charge.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerChargeEnvelope'
        '401':
          $ref: '#/components/responses/PartnerInvalidKey'
        '404':
          $ref: '#/components/responses/PartnerNotFound'
        '422':
          $ref: '#/components/responses/PartnerValidationFailed'
        '429':
          $ref: '#/components/responses/PartnerRateLimited'
      security:
      - partnerKey: []
components:
  responses:
    PartnerCompanyNotConnected:
      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'
          example:
            error:
              code: company_not_connected
              message: This company has not turned on your integration, or has turned it off. Stop sending for this company.
    PartnerRateLimited:
      description: More than 600 requests in a minute. Wait for the `Retry-After` header (seconds).
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: Too Many Attempts.
    PartnerInvalidKey:
      description: Missing, wrong or revoked partner key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PartnerError'
          example:
            error:
              code: invalid_key
              message: Missing or unknown partner key.
    PartnerNotFound:
      description: No charge with that `external_id` (or the company isn't connected; see `error.code`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PartnerError'
          example:
            error:
              code: not_found
              message: No charge with this external_id.
    PartnerValidationFailed:
      description: The request is invalid. `error.fields` lists each problem.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PartnerError'
          example:
            error:
              code: validation_failed
              message: The request is invalid.
              fields:
                occurred_at:
                - This happened outside that rental_id's trip.
  schemas:
    PartnerChargeInput:
      type: object
      required:
      - external_id
      - kind
      - amount_cents
      properties:
        external_id:
          type: string
          maxLength: 191
          description: Your id for this charge. The idempotency key.
        kind:
          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.'
        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
          example: E-ZPass NY
        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:
          type: string
          enum:
          - parking
          - red_light
          - speed
          - other
        due_at:
          type: string
          format: date
          description: When the authority wants it paid.
        document_pdf:
          type: string
          contentEncoding: base64
          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.
    PartnerCharge:
      type: object
      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
      properties:
        charge_id:
          type: string
          format: uuid
          description: Fleetwire's id for the charge.
        external_id:
          type: string
        kind:
          type: string
          enum:
          - toll
          - violation
          - fee
        rental_id:
          type:
          - string
          - 'null'
          description: '`null` while unmatched.'
        match:
          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.

            '
        status:
          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.

            '
        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:
          type:
          - string
          - 'null'
          enum:
          - paid_at_authority
          - disputed
          - dispute_resolved
          - null
        created_at:
          type: string
          format: date-time
        voided_at:
          type:
          - string
          - 'null'
          format: date-time
    PartnerChargeUpdate:
      type: object
      required:
      - status
      properties:
        status:
          type: string
          enum:
          - voided
          - amount_changed
          - paid_at_authority
          - disputed
          - dispute_resolved
        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
    PartnerChargeEnvelope:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/PartnerCharge'
    PartnerError:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - invalid_key
              - company_not_connected
              - not_found
              - external_id_conflict
              - validation_failed
            message:
              type: string
            fields:
              type: object
              description: Present only on `validation_failed`. Each invalid field with its problems.
              additionalProperties:
                type: array
                items:
                  type: string
  parameters:
    PartnerCompanyId:
      name: company_id
      in: path
      required: true
      description: The Fleetwire company ID from `GET /companies`.
      schema:
        type: string
        format: uuid
      example: 9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11
  examples:
    PartnerCharge:
      summary: A billed toll
      value:
        data:
          charge_id: 3f0c8e2a-7b1d-4c5e-9a6f-0d2b4e8c1a73
          external_id: tc_8812
          kind: toll
          rental_id: b_EXAMPLE1
          match: matched
          status: billed
          amount_cents: 675
          provider_fee_cents: 100
          currency: USD
          occurred_at: '2026-10-10T18:12:00Z'
          has_document: true
          authority_status: null
          created_at: '2026-10-14T15:20:00Z'
          voided_at: null
  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.

        '