> ## 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.

# updateFormAndTable



## OpenAPI

````yaml post /updateFormAndTable
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:
  /updateFormAndTable:
    post:
      tags:
        - EzzyRest
      summary: updateFormAndTable
      operationId: updateFormAndTable
      parameters:
        - name: invoiceid
          in: query
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormAndRows'
          text/json:
            schema:
              $ref: '#/components/schemas/FormAndRows'
          application/*+json:
            schema:
              $ref: '#/components/schemas/FormAndRows'
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Servicestatus'
            application/json:
              schema:
                $ref: '#/components/schemas/Servicestatus'
            text/json:
              schema:
                $ref: '#/components/schemas/Servicestatus'
        '400':
          description: Bad Request
        '500':
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    FormAndRows:
      type: object
      properties:
        fd:
          $ref: '#/components/schemas/FormData'
        notes:
          type: string
        rows:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceRow'
        switch_workflow:
          type: string
        doctype:
          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
        docsub:
          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
    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
    InvoiceRow:
      type: object
      properties:
        article_code:
          type: string
        description:
          type: string
        description2:
          type: string
        contact_name:
          type: string
        gl_code:
          type: string
        po_item_number:
          type: string
        gst:
          type: number
        quantity:
          type: number
        row_height:
          type: integer
        row_page:
          type: integer
        row_y:
          type: integer
        tax_code:
          type: string
        total:
          type: number
        total_excl:
          type: number
        total_incl:
          type: number
        tracking:
          type: string
        unit_measure:
          type: string
        unit_price:
          type: number
        approver_name:
          type: string
        is_approved:
          type: integer
    CustomPair:
      type: object
      properties:
        name:
          type: string
        value:
          type: string
        hint:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````