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

# Get Government Data

> Retrieve information about government finances and transfers.

Available actions:
- `balance` - government balance
- `transfers` - list of government transfers (requires page, limit).




## OpenAPI

````yaml en/openapi/en-economy-v2-openapi.yaml GET /moscowroleplay/civops/government
openapi: 3.1.0
info:
  title: ER:LC Russia API V2 - Moscow RolePlay Economy API V2
  version: 2.0.0
servers:
  - url: https://api.erlcrussia.xyz/v2
    description: ER:LC Russia API V2
security: []
tags:
  - name: Moscow RolePlay Economy API V2
    description: Endpoints for managing economy and CivOps system.
paths:
  /moscowroleplay/civops/government:
    get:
      tags:
        - Moscow RolePlay Economy API V2
      summary: Get Government Data
      description: |
        Retrieve information about government finances and transfers.

        Available actions:
        - `balance` - government balance
        - `transfers` - list of government transfers (requires page, limit).
      parameters:
        - name: action
          in: query
          description: Action type for retrieving data.
          required: true
          schema:
            type: string
            enum:
              - balance
              - transfers
        - name: page
          in: query
          description: Page number for transfers (default 1).
          required: false
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          description: Record limit for transfers (default 25).
          required: false
          schema:
            type: integer
            default: 25
      responses:
        '200':
          description: Successful response with government data.
          content:
            application/json:
              schema:
                type: object
              examples:
                balance:
                  summary: Government balance.
                  value:
                    balance:
                      bank: 99990000001
                transfers:
                  summary: Government transfers.
                  value:
                    rows:
                      - id: SUIGV5OF
                        to_type: opg
                        to_id: WKQYFHZI
                        amount: 10000000
                        reason: Перевод
                        created_at: 1762001561094
                        author_id: '1133665013794607114'
                      - id: EGRJQIJH
                        to_type: business
                        to_id: QONWJE
                        amount: 1000000
                        reason: На ремонт дорог.
                        created_at: 1761666889623
                        author_id: '1133665013794607114'
                      - id: 2XI4F7T5
                        to_type: business
                        to_id: QONWJE
                        amount: 1000000
                        reason: На ремонт дорог.
                        created_at: 1761666445708
                        author_id: '1133665013794607114'
                      - id: QEM2QFR7
                        to_type: business
                        to_id: VWIV4H
                        amount: 10000
                        reason: Так надо
                        created_at: 1760990772813
                        author_id: '1133665013794607114'
                      - id: 5RW0QT8T
                        to_type: user
                        to_id: '843529697853046804'
                        amount: 10000
                        reason: ''
                        created_at: 1760990605583
                        author_id: '1133665013794607114'
                      - id: WUOAKURW
                        to_type: user
                        to_id: '843529697853046804'
                        amount: 10000
                        reason: Зарплата
                        created_at: 1760990551476
                        author_id: '1133665013794607114'
                    total: 6
        '401':
          $ref: '#/components/responses/UnauthorizedMissingOrInvalidToken'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - MRPAPIKey: []
components:
  responses:
    UnauthorizedMissingOrInvalidToken:
      description: Authentication error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedError'
          examples:
            Missing Token:
              summary: No token.
              value:
                code: 5007
                message: Missing Token
            Invalid Token:
              summary: Invalid or deactivated token.
              value:
                code: 5008
                message: Invalid Token
            Invalid Master Key:
              summary: Invalid master key.
              value:
                code: 5006
                message: Invalid Master Key
    Forbidden:
      description: Access forbidden.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenError'
          examples:
            Forbidden:
              summary: No access rights to endpoint.
              value:
                code: 5009
                message: Forbidden
            Api Version Forbidden:
              summary: Access to this API version is forbidden.
              value:
                code: 5010
                message: Api Version Forbidden
            Query Param Forbidden:
              summary: Query parameter is forbidden.
              value:
                code: 5011
                message: Query Param Forbidden
    TooManyRequests:
      description: Request limit exceeded.
      headers:
        X-RateLimit-Limit:
          description: Maximum requests per minute.
          schema:
            type: integer
            example: 60
        X-RateLimit-Remaining:
          description: Remaining number of requests.
          schema:
            type: integer
            example: 0
        Retry-After:
          description: Seconds until limit reset.
          schema:
            type: integer
            example: 30
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          examples:
            Rate Limit Exceeded:
              summary: Request limit exceeded.
              value:
                code: 6021
                message: Rate Limit Exceeded
                retry_after: 30
    InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/EconomyApiError'
          examples:
            Internal Server Error Occurred:
              summary: Economy API error.
              value:
                code: 6005
                message: Internal Server Error Occurred.
  schemas:
    UnauthorizedError:
      type: object
      description: Authentication error (missing or invalid token).
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 5007
        message:
          type: string
          example: Missing Token
    ForbiddenError:
      type: object
      description: Access error (forbidden).
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 5009
        message:
          type: string
          example: Forbidden
    RateLimitError:
      type: object
      description: Request limit exceeded error.
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 6021
        message:
          type: string
          example: Rate Limit Exceeded
        retry_after:
          type: integer
          description: Time until limit reset in seconds.
          example: 30
    EconomyApiError:
      type: object
      description: Economy API error.
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 6010
        message:
          type: string
          example: Business not found
  securitySchemes:
    MRPAPIKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: |
        API key for accessing CivOps endpoints.

        Passed in the `Authorization: Bearer <key>` header.

        REQUIRED FOR ALL CIVOPS ENDPOINTS (except /health).

````