> ## Documentation Index
> Fetch the complete documentation index at: https://developers.opereit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List contract surcharges

> Returns a cursor-paginated list of surcharges extracted from a contract (fuel, residential delivery, peak-season, etc.).



## OpenAPI

````yaml GET /v1/contracts/{contract_id}/surcharges
openapi: 3.1.0
info:
  title: Opereit Invoice Auditing API
  description: >-
    Public API for the Opereit Invoice Auditing product. Upload carrier
    contracts, run audits against incoming carrier invoices, and retrieve line
    items and findings.
  version: 1.0.0
servers:
  - url: https://api.opereit.com
    description: Production
security:
  - apiKey: []
paths:
  /v1/contracts/{contract_id}/surcharges:
    get:
      summary: List contract surcharges
      description: >-
        Returns a cursor-paginated list of surcharges extracted from a contract
        (fuel, residential delivery, peak-season, etc.).
      operationId: listContractSurcharges
      parameters:
        - $ref: '#/components/parameters/ContractId'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: search
          in: query
          description: Free-text search against the surcharge display name.
          schema:
            type: string
        - name: billing_type
          in: query
          description: Filter by how the surcharge is billed.
          schema:
            type: string
            enum:
              - PERCENTAGE
              - PERCENTAGE_OF_BASE
              - FIXED
              - TIERED
              - PERCENTAGE_OFF
        - name: service_type
          in: query
          description: Filter by carrier service code the surcharge applies to.
          schema:
            type: string
        - name: is_waived
          in: query
          description: If `true`, returns only surcharges marked as waived in the contract.
          schema:
            type: boolean
      responses:
        '200':
          description: Cursor-paginated surcharges.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - pagination
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ContractSurcharge'
                  pagination:
                    $ref: '#/components/schemas/CursorPagination'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ContractId:
      name: contract_id
      in: path
      required: true
      description: ID of the contract.
      schema:
        type: string
    Limit:
      name: limit
      in: query
      description: Number of items to return per request.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Cursor:
      name: cursor
      in: query
      description: Opaque cursor from a previous response. Omit on the first request.
      schema:
        type: string
  schemas:
    ContractSurcharge:
      type: object
      description: >-
        A surcharge extracted from a contract — an additional fee applied to
        shipments under specific conditions.
      required:
        - id
        - contract_id
        - slug
        - display_name
        - billing_type
        - value
        - currency
        - is_waived
      properties:
        id:
          type: string
        contract_id:
          type: string
        slug:
          type: string
          description: Stable identifier for the surcharge type.
          example: fuel
        display_name:
          type: string
          description: Human-readable surcharge name.
          example: Fuel surcharge
        origin_country:
          type:
            - string
            - 'null'
          description: >-
            ISO 3166-1 alpha-2 origin country code, if the surcharge is
            geographically scoped.
        destination_country:
          type:
            - string
            - 'null'
          description: >-
            ISO 3166-1 alpha-2 destination country code, if the surcharge is
            geographically scoped.
        service_type:
          type:
            - string
            - 'null'
          description: >-
            Service code this surcharge applies to, or `null` if it applies to
            all services.
        billing_type:
          type: string
          enum:
            - PERCENTAGE
            - PERCENTAGE_OF_BASE
            - FIXED
            - TIERED
            - PERCENTAGE_OFF
          description: >-
            How the surcharge is billed.


            - `PERCENTAGE`: % of one or more line items (see
            `calculation_base`).

            - `PERCENTAGE_OF_BASE`: % of the base shipping rate only.

            - `FIXED`: flat fee per shipment.

            - `TIERED`: amount varies by weight or other tier.

            - `PERCENTAGE_OFF`: discount, expressed as a percentage.
        value:
          type: string
          description: >-
            Surcharge value as a decimal string. Interpretation depends on
            `billing_type` (e.g. `"15.00"` = 15% for `PERCENTAGE`, or 15
            currency units for `FIXED`).
          example: '15.00'
        currency:
          type: string
          description: >-
            ISO 4217 currency code (relevant for `FIXED` and `TIERED`
            surcharges).
          example: EUR
        is_waived:
          type: boolean
          description: Whether this surcharge is waived under the contract.
        calculation_base:
          type:
            - array
            - 'null'
          items:
            type: string
          description: >-
            For `PERCENTAGE` surcharges, the list of slugs the percentage is
            applied to (e.g. `["base_rate"]`).
    CursorPagination:
      type: object
      required:
        - cursor
        - has_more
      properties:
        cursor:
          type:
            - string
            - 'null'
          description: >-
            Opaque cursor to use in the next request to fetch the next page.
            `null` if there are no more items.
        has_more:
          type: boolean
          description: Whether there are more items to fetch beyond the current page.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
  responses:
    Unauthorized:
      description: Authentication is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: basic
      description: >-
        HTTP Basic Auth using your API key. Send `Authorization: Basic
        base64(key_id:key_secret)`.

````