> ## 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 rates

> Returns a cursor-paginated list of rate-card entries extracted from a contract. Each entry represents a single (origin, destination, service, weight) rate.



## OpenAPI

````yaml GET /v1/contracts/{contract_id}/rates
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}/rates:
    get:
      summary: List contract rates
      description: >-
        Returns a cursor-paginated list of rate-card entries extracted from a
        contract. Each entry represents a single (origin, destination, service,
        weight) rate.
      operationId: listContractRates
      parameters:
        - $ref: '#/components/parameters/ContractId'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: origin_country
          in: query
          description: Filter by ISO 3166-1 alpha-2 origin country code.
          schema:
            type: string
            minLength: 2
            maxLength: 2
        - name: destination_country
          in: query
          description: Filter by ISO 3166-1 alpha-2 destination country code.
          schema:
            type: string
            minLength: 2
            maxLength: 2
        - name: service_type
          in: query
          description: Filter by carrier service code (e.g. `EXPRESS_WORLDWIDE`).
          schema:
            type: string
        - name: weight_min
          in: query
          description: >-
            Return only rates whose weight band overlaps with weight ≥ this
            value (kg).
          schema:
            type: number
        - name: weight_max
          in: query
          description: >-
            Return only rates whose weight band overlaps with weight ≤ this
            value (kg).
          schema:
            type: number
      responses:
        '200':
          description: Cursor-paginated rate-card entries.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - pagination
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ContractRate'
                  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:
    ContractRate:
      type: object
      description: >-
        A single rate-card entry extracted from a contract: the price for
        shipping a parcel matching the (origin, destination, service, weight)
        selectors.
      required:
        - id
        - contract_id
        - origin_country
        - destination_country
        - service_type
        - container_type
        - weight_mode
        - rate_type
        - rate
        - currency
      properties:
        id:
          type: string
        contract_id:
          type: string
        origin_country:
          type: string
          description: ISO 3166-1 alpha-2 origin country code.
        destination_country:
          type: string
          description: ISO 3166-1 alpha-2 destination country code.
        origin_postcode:
          type:
            - string
            - 'null'
          description: Origin postcode pattern, if the rate is postcode-specific.
        destination_postcode:
          type:
            - string
            - 'null'
          description: Destination postcode pattern, if the rate is postcode-specific.
        service_type:
          type: string
          description: Carrier service code this rate applies to.
          example: EXPRESS_WORLDWIDE
        container_type:
          type: string
          description: Container or packaging the rate applies to.
          example: PARCEL
        weight:
          type:
            - string
            - 'null'
          description: >-
            Exact weight in kg this rate applies to (only set when
            `weight_mode=FIXED`).
        weight_min:
          type:
            - string
            - 'null'
          description: >-
            Lower bound of the weight band in kg, inclusive (only set when
            `weight_mode=RANGE`).
        weight_max:
          type:
            - string
            - 'null'
          description: >-
            Upper bound of the weight band in kg, exclusive (only set when
            `weight_mode=RANGE`).
        weight_mode:
          type: string
          enum:
            - FIXED
            - RANGE
          description: Whether the rate applies to an exact weight or a weight band.
        rate_type:
          type: string
          enum:
            - FLAT
            - PER_KG
          description: Whether `rate` is a flat fee per shipment or a per-kilogram price.
        rate:
          type: string
          description: Decimal price as a string (preserves precision).
          example: '12.50'
        currency:
          type: string
          description: ISO 4217 currency code.
          example: EUR
    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)`.

````