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

# List policy rules for an organization

> Returns the organization's active expense policy rules, for showing them to the user. These are the rules the organization's expenses are checked against during approval. The list is empty when the organization has no policy rules. The caller must be an employee of the organization.




## OpenAPI

````yaml /openapi/findity-expense-api.json get /me/organizations/{organizationId}/policies/rules
openapi: 3.0.3
info:
  title: Findity Expense API
  description: Findity Expense API
  version: 1.0.0
servers:
  - url: https://stage-api.findity.com/api/v1/expense
  - url: https://api.findity.com/api/v1/expense
security:
  - bearerAuth: []
paths:
  /me/organizations/{organizationId}/policies/rules:
    get:
      tags:
        - Organizations
      summary: List policy rules for an organization
      description: >
        Returns the organization's active expense policy rules, for showing them
        to the user. These are the rules the organization's expenses are checked
        against during approval. The list is empty when the organization has no
        policy rules. The caller must be an employee of the organization.
      operationId: listPolicyRules
      parameters:
        - name: organizationId
          in: path
          required: true
          description: >
            Required. The id of the organization to list policy rules for: a
            string of 32 hexadecimal characters. The caller must be an employee
            of the organization.
          schema:
            $ref: '#/components/schemas/Uuid'
          example: 05b8daba9ba14a49846fe77883248cf0
        - name: max
          in: query
          required: false
          description: >
            Optional. The maximum number of policy rules to return: an integer
            from 1 to 1000. Defaults to 10.
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 10
        - name: offset
          in: query
          required: false
          description: >
            Optional. The number of policy rules to skip before the first one
            returned, for paging: an integer of 0 or more. Defaults to 0.
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: sort
          in: query
          required: false
          description: >
            Optional. The property and direction to sort the policy rules by, as
            a string in the `property:direction` format, where property is `id`
            or `rule` and direction is `asc` or `desc` (for example `rule:asc`).
            Several criteria can be given as a comma-separated list
            (`?sort=rule:asc,id:desc`) or by repeating the parameter. Properties
            other than `id` and `rule` are ignored. Defaults to `id:asc` when
            omitted.
          schema:
            type: string
            default: id:asc
          example: rule:asc
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArrayOfPolicyRules'
              example:
                meta:
                  count: 2
                  total: 2
                data:
                  - id: '123'
                    rule: Alcohol is not reimbursed.
                    levels:
                      - USER
                  - id: '124'
                    rule: Meals over 500 SEK need approval from a manager.
                    levels:
                      - ADMIN
                      - USER
        '400':
          description: '`max` or `offset` is not a valid number'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
              examples:
                invalid max:
                  value:
                    result: error
                    code: INVALID_PARAMETER
                    description: 'max must be an integer between 1 and 1000, was: 0'
        '401':
          description: The access token is missing, invalid or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/401Error'
              example:
                result: unauthorized
        '404':
          description: >-
            The organization does not exist, or the caller is not an employee of
            it
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
              examples:
                organization not found:
                  value:
                    result: error
                    code: ORGANIZATION_NOT_FOUND
                    description: Organization not found
components:
  schemas:
    Uuid:
      type: string
      pattern: ^[0-9a-fA-F]{32}$
      description: UUID without dashes (32-character hex string)
    ArrayOfPolicyRules:
      type: object
      properties:
        meta:
          properties:
            count:
              type: integer
              description: Number of policy rules in this page.
            total:
              type: integer
              description: Total number of active policy rules in the organization.
        data:
          type: array
          items:
            $ref: '#/components/schemas/PolicyRule'
    400Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
        requestId:
          type: string
          description: >-
            Identifier of the request in the server logs. Included when the
            server assigned one.
          example: 47b17d6f18b84c5b8c9460c55d98c108
    401Error:
      type: object
      properties:
        result:
          type: string
        description:
          type: string
    404Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
    PolicyRule:
      type: object
      description: A rule from the organization's expense policy.
      properties:
        id:
          type: string
          description: Identifier of the policy rule.
          example: '123'
        rule:
          type: string
          description: The rule text, as shown to the user.
          example: Alcohol is not reimbursed.
        levels:
          type: array
          description: >
            Who the rule applies to. `USER` rules apply to the employees
            submitting expenses, `ADMIN` rules to the people approving and
            administering them. Sorted alphabetically, and empty when the rule
            has no level.
          items:
            type: string
            enum:
              - ADMIN
              - USER
          example:
            - USER
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````