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

# getWaitingApprovalBatch



## OpenAPI

````yaml /mintlify/docs/openapi.yaml get /getWaitingApprovalBatch
openapi: 3.0.1
info:
  title: EzzyRest API
  version: 1.0.0
servers:
  - url: https://app.ezzydoc.com/EzzyService.svc/Rest/
    description: Production Server
security: []
paths:
  /getWaitingApprovalBatch:
    get:
      tags:
        - EzzyRest
      summary: getWaitingApprovalBatch
      operationId: getWaitingApprovalBatch
      parameters:
        - name: batchsize
          in: query
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/InvoiceBatchSS'
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceBatchSS'
            text/json:
              schema:
                $ref: '#/components/schemas/InvoiceBatchSS'
        '400':
          description: Bad Request
        '500':
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    InvoiceBatchSS:
      type: object
      properties:
        batch:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceBatch'
        service_status:
          $ref: '#/components/schemas/Servicestatus'
    InvoiceBatch:
      type: object
      properties:
        blob_url:
          type: string
        pdf_url:
          type: string
        create_time:
          type: string
          format: date-time
        data:
          type: string
        file_name:
          type: string
        form:
          $ref: '#/components/schemas/FormData'
        invoice_id:
          type: integer
        subtype:
          type: integer
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
            - 5
            - 6
            - 7
            - 8
            - 9
            - 10
            - 11
            - 12
            - 13
            - 14
            - 15
            - 16
          x-enumNames:
            - Unknown
            - AccountsPayable
            - AccountsReceivable
            - CreditNote
            - Receipt
            - SpendMoney
            - PurchaseOrder
            - CreditNoteSale
            - ContractorOrder
            - Delivery
            - DeliveryReceipt
            - PickingSlip
            - Quote
            - JobCost
            - ProgressOrder
            - CustomerQuote
            - ContractorJobCost
        type:
          type: integer
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
            - 5
            - 6
            - 7
            - 8
            - 9
            - 10
            - 11
            - 12
            - 13
            - 14
            - 15
            - 16
            - 17
            - 18
            - 19
            - 20
            - 21
          x-enumNames:
            - Unknown
            - Invoice
            - EInvoice
            - Correspondence
            - BusinessCards
            - Picture
            - Order
            - Data
            - Notes
            - Media
            - Template
            - Form
            - Blob
            - Statement
            - Application
            - Junk
            - Event
            - Enquiry
            - Generic
            - Remittance
            - AI
            - AIWEB
        locale:
          type: integer
    Servicestatus:
      type: object
      properties:
        invoice_id:
          type: integer
        message:
          type: string
        status:
          type: integer
          enum:
            - 0
            - 1
            - 2
            - 3
          x-enumNames:
            - OK
            - FAILED
            - NO_MORE_INVOICES
            - NOT_PERMITTED
    FormData:
      type: object
      properties:
        purchaseOrder:
          type: string
        invoiceNumber:
          type: string
        invoiceDate:
          type: string
          format: date-time
        paymentDate:
          type: string
          format: date-time
        supplier:
          type: string
        supplier_id:
          type: string
        total:
          type: number
        tax:
          type: number
        charge:
          type: number
        discount:
          type: number
        abn:
          type: string
        description:
          type: string
        from_email:
          type: string
        delivery_to:
          type: string
        invoice_to:
          type: string
        company_invoiced:
          type: string
        delivery_to_address:
          type: string
        invoice_to_address:
          type: string
        supplier_address:
          type: string
        bankBranch:
          type: string
        bankAccount:
          type: string
        bPaycode:
          type: string
        bPayRef:
          type: string
        customField1:
          type: string
        customField2:
          type: string
        customField3:
          type: string
        customField4:
          type: string
        customValues:
          $ref: '#/components/schemas/CustomPair'
        wfsettings:
          type: string
        location:
          type: string
        tracking:
          type: string
        tracking_option:
          type: string
        glcode_option:
          type: string
        glcode_text:
          type: string
        expense_claim:
          type: string
        email_to:
          type: string
        document_subtype:
          type: integer
        switch_workflow:
          type: integer
        approver:
          type: string
        approver_email:
          type: string
        additional_request:
          type: string
        require_email:
          type: boolean
        require_bank_details:
          type: boolean
        email:
          type: string
        bank_details:
          type: string
        changed:
          type: boolean
    CustomPair:
      type: object
      properties:
        name:
          type: string
        value:
          type: string
        hint:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````