> ## 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 Request Bills

> List all bills linked to an expense request, with billed/paid totals and the
variance vs the request's approved amount.



## OpenAPI

````yaml /api/openapi-cutmake.json get /api/v1/expense-requests/{expense_request_id}/bills
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-requests/{expense_request_id}/bills:
    get:
      tags:
        - 'Admin Sector: Expense Requests'
      summary: List Request Bills
      description: >-
        List all bills linked to an expense request, with billed/paid totals and
        the

        variance vs the request's approved amount.
      operationId: >-
        list_request_bills_api_v1_expense_requests__expense_request_id__bills_get
      parameters:
        - name: expense_request_id
          in: path
          required: true
          schema:
            type: string
            title: Expense Request Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedBillsResponse'
        '401':
          description: Unauthorized
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    LinkedBillsResponse:
      properties:
        requestId:
          type: string
          title: Requestid
        requestTotal:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Requesttotal
        totalBilled:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Totalbilled
        totalPaid:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Totalpaid
        variance:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Variance
        transactionVariance:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Transactionvariance
        billCount:
          type: integer
          title: Billcount
        bills:
          items:
            $ref: '#/components/schemas/LinkedBill'
          type: array
          title: Bills
      type: object
      required:
        - requestId
        - requestTotal
        - totalBilled
        - totalPaid
        - variance
        - transactionVariance
        - billCount
      title: LinkedBillsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LinkedBill:
      properties:
        id:
          type: string
          title: Id
        billNumber:
          anyOf:
            - type: string
            - type: 'null'
          title: Billnumber
        billType:
          anyOf:
            - type: string
            - type: 'null'
          title: Billtype
        supplierId:
          anyOf:
            - type: string
            - type: 'null'
          title: Supplierid
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        totalAmount:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Totalamount
        paidAmount:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Paidamount
        remainingBalance:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Remainingbalance
        dueDate:
          anyOf:
            - type: string
            - type: 'null'
          title: Duedate
        createdAt:
          anyOf:
            - type: string
            - type: 'null'
          title: Createdat
        varianceAmount:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Varianceamount
          readOnly: true
        variancePct:
          anyOf:
            - type: number
            - type: 'null'
          title: Variancepct
          readOnly: true
      type: object
      required:
        - id
        - varianceAmount
        - variancePct
      title: LinkedBill
    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
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login

````