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

# List Templates



## OpenAPI

````yaml /api/openapi-cutmake.json get /api/v1/expense-templates
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /api/v1/expense-templates:
    get:
      tags:
        - 'Admin Sector: Expense Templates'
      summary: List Templates
      operationId: list_templates_api_v1_expense_templates_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: isActive
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: Isactive
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTemplateResponse'
        '401':
          description: Unauthorized
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    PaginatedTemplateResponse:
      properties:
        data:
          items:
            $ref: >-
              #/components/schemas/routers__admin_sector__expense_templates__TemplateResponse
          type: array
          title: Data
        pagination:
          $ref: '#/components/schemas/core__pagination__PaginationInfo'
      type: object
      required:
        - data
        - pagination
      title: PaginatedTemplateResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    routers__admin_sector__expense_templates__TemplateResponse:
      properties:
        id:
          type: string
          title: Id
        orgId:
          type: string
          title: Orgid
        name:
          type: string
          title: Name
        requestType:
          type: string
          title: Requesttype
        paymentMethod:
          type: string
          title: Paymentmethod
        supplierId:
          anyOf:
            - type: string
            - type: 'null'
          title: Supplierid
        currency:
          type: string
          title: Currency
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        frequency:
          type: string
          title: Frequency
        nextRunDate:
          type: string
          title: Nextrundate
        isActive:
          type: boolean
          title: Isactive
        lastGeneratedAt:
          anyOf:
            - type: string
            - type: 'null'
          title: Lastgeneratedat
        createdAt:
          anyOf:
            - type: string
            - type: 'null'
          title: Createdat
        lineItems:
          items:
            $ref: '#/components/schemas/TemplateLineItemResponse'
          type: array
          title: Lineitems
      type: object
      required:
        - id
        - orgId
        - name
        - requestType
        - paymentMethod
        - currency
        - frequency
        - nextRunDate
        - isActive
      title: TemplateResponse
    core__pagination__PaginationInfo:
      properties:
        page:
          type: integer
          title: Page
        limit:
          type: integer
          title: Limit
        total:
          type: integer
          title: Total
        totalPages:
          type: integer
          title: Totalpages
        hasNext:
          type: boolean
          title: Hasnext
        hasPrev:
          type: boolean
          title: Hasprev
      type: object
      required:
        - page
        - limit
        - total
        - totalPages
        - hasNext
        - hasPrev
      title: PaginationInfo
      description: |-
        Pagination metadata following API standards.

        Attributes:
            page: Current page number (1-indexed)
            limit: Items per page
            total: Total number of items matching query
            totalPages: Total number of pages
            hasNext: Whether there is a next page
            hasPrev: Whether there is a previous page
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    TemplateLineItemResponse:
      properties:
        description:
          type: string
          title: Description
        quantity:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Quantity
          default: '1'
        unitPrice:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Unitprice
        amount:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Amount
        supplierId:
          anyOf:
            - type: string
            - type: 'null'
          title: Supplierid
        id:
          type: string
          title: Id
        expenseTemplateId:
          type: string
          title: Expensetemplateid
        createdAt:
          anyOf:
            - type: string
            - type: 'null'
          title: Createdat
      type: object
      required:
        - description
        - amount
        - id
        - expenseTemplateId
      title: TemplateLineItemResponse
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login

````