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

# Get reimbursement rates for one or more locations



## OpenAPI

````yaml /openapi/reimbursement/rates/openapi.yaml get /v1
openapi: 3.0.3
info:
  title: Reimbursement Rates
  description: API for managing reimbursement rates.
  version: '0.1'
servers:
  - url: https://api.spirii.com/reimbursement/rates
security:
  - BearerAuth: []
tags:
  - name: Reimbursement Rates
    description: Operations related to reimbursement rates.
paths:
  /v1:
    get:
      tags:
        - Reimbursement Rates
      summary: Get reimbursement rates for one or more locations
      operationId: getReimbursementRates
      parameters:
        - name: locationIds
          in: query
          required: true
          description: >-
            Comma-separated list of location IDs to retrieve reimbursement rates
            for.
          schema:
            type: string
        - $ref: '#/components/parameters/after'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/sortBy'
        - $ref: '#/components/parameters/sortDirection'
      responses:
        '200':
          description: Returns a paginated list of reimbursement rates.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedReimbursementRates'
        '400':
          description: Invalid or missing location IDs.
        '401':
          description: Missing or invalid authorization token.
        '403':
          description: Access to the requested location(s) is not permitted.
        '404':
          description: The requested location(s) do not exist or you do not have access.
components:
  parameters:
    after:
      name: after
      in: query
      required: false
      description: >-
        Cursor for pagination. Use the `endCursor` from the previous response to
        fetch the next page.
      schema:
        type: integer
    limit:
      name: limit
      in: query
      required: false
      description: Maximum number of records to return.
      schema:
        type: integer
        minimum: 1
        maximum: 500
        default: 25
    sortBy:
      name: sortBy
      in: query
      required: false
      description: Field to sort reimbursement rates by.
      schema:
        type: string
        enum:
          - id
          - locationId
          - validFrom
          - validUntil
        default: validFrom
    sortDirection:
      name: sortDirection
      in: query
      required: false
      description: Sort order for results.
      schema:
        type: string
        enum:
          - ASC
          - DESC
        default: DESC
  schemas:
    PaginatedReimbursementRates:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ReimbursementRateDto'
        pagination:
          $ref: '#/components/schemas/Pagination'
      required:
        - data
        - pagination
    ReimbursementRateDto:
      type: object
      properties:
        id:
          type: integer
          description: Unique identifier of the reimbursement rate.
        locationId:
          type: integer
          description: ID of the location.
        pricePerKwh:
          type: number
          format: float
          description: Price per kilowatt-hour.
        currency:
          $ref: '#/components/schemas/Currency'
        validFrom:
          type: string
          format: date-time
          description: Start date of validity.
        validUntil:
          type: string
          format: date-time
          description: End date of validity.
          nullable: true
        lockedBy:
          type: string
          description: >-
            Only set if the rate is locked. Contains reference to locking
            business entity, e.g. expense report id.
          nullable: true
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the rate was created.
        updatedAt:
          type: string
          format: date-time
          description: Timestamp when the rate was last updated.
      required:
        - id
        - locationId
        - pricePerKwh
        - currency
        - validFrom
        - createdAt
        - updatedAt
    Pagination:
      type: object
      properties:
        hasNextPage:
          type: boolean
          description: Whether there are more records after the current page.
        endCursor:
          type: integer
          description: >-
            ID of the last record in the current page, use as `after` to fetch
            the next page.
          nullable: true
      required:
        - hasNextPage
        - endCursor
    Currency:
      type: string
      enum:
        - CHF
        - CZK
        - DKK
        - EUR
        - GBP
        - NOK
        - PLN
        - SEK
        - USD
      description: ISO 4217 currency code.
      example: EUR
  securitySchemes:
    BearerAuth:
      scheme: bearer
      bearerFormat: JWT
      description: Authorization via a JWT bearer token.
      type: http

````