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

# approve6



## OpenAPI

````yaml /mintlify/docs/openapi.yaml post /approve6
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:
  /approve6:
    post:
      tags:
        - EzzyRest
      summary: approve6
      operationId: approve6
      parameters:
        - name: invoiceid
          in: query
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovalForm'
          text/json:
            schema:
              $ref: '#/components/schemas/ApprovalForm'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ApprovalForm'
      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:
    ApprovalForm:
      type: object
      properties:
        charge:
          type: number
        discount:
          type: number
        tax:
          type: number
        invoicedate:
          type: string
        number:
          type: string
        total:
          type: number
        paymentdate:
          type: string
          format: date-time
        ponumber:
          type: string
        refnumber:
          type: string
        supplier:
          type: string
        glcode:
          type: string
        note:
          type: string
        tracking:
          type: string
        tag:
          type: string
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````