# updateInvoice

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/invoice/{invoiceId}:
    patch:
      summary: updateInvoice
      deprecated: false
      description: ''
      operationId: updateInvoiceUsingPATCH
      tags:
        - >-
          Account Receivable/APIs - Account Receivable /Invoice
          Management/invoice-controller
        - invoice-controller
      parameters:
        - name: invoiceId
          in: path
          description: invoiceId
          required: true
          example: ''
          schema:
            type: string
        - name: sellerId
          in: query
          description: sellerId
          required: false
          schema:
            type: string
            pattern: ^CEK[A-Z0-9]{7}$
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoiceUpdateRequest'
            example: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApplicationResponse%C2%ABInvoiceResponse%C2%BB
          headers: {}
          x-apidog-name: OK
        '400':
          description: ''
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ApplicationResponse'
          headers: {}
          x-apidog-name: Bad Request
        '401':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Forbidden
        '404':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Not Found
        '422':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Unprocessable Request
        '500':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Server Error
      security: []
      x-apidog-folder: >-
        Account Receivable/APIs - Account Receivable /Invoice
        Management/invoice-controller
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-18880682-run
components:
  schemas:
    InvoiceUpdateRequest:
      type: object
      properties:
        approvalStatus: &ref_2
          $ref: '#/components/schemas/JsonNullable%C2%ABstring%C2%BB'
          description: Approval status of the invoice
        balanceAmount: &ref_1
          $ref: '#/components/schemas/JsonNullable%C2%ABbigdecimal%C2%BB'
          description: Balance amount of the invoice
        baseAmount: *ref_1
        cgst: *ref_1
        chargeCustomer: &ref_3
          $ref: '#/components/schemas/JsonNullable%C2%ABboolean%C2%BB'
          description: Indicates if the customer is to be charged
        customerId:
          type: string
          pattern: ^KC[A-Z0-9]{14}$
          description: Unique identifier for the customer
        description: *ref_2
        dispatchNow: *ref_3
        dueDate:
          $ref: '#/components/schemas/JsonNullable%C2%ABLocalDate%C2%BB'
          description: Due date for the invoice payment
        emailAddress: *ref_2
        gstExclusive: *ref_3
        igst: *ref_1
        invoiceDate:
          $ref: '#/components/schemas/JsonNullable%C2%ABLocalDateTime%C2%BB'
          description: Date of the invoice
        invoiceNumber: *ref_2
        mobileNumber: *ref_2
        netAmount: *ref_1
        partialPaymentAllowed: *ref_3
        payableReferenceId: *ref_2
        poNumber: *ref_2
        receivableStatus: *ref_2
        sgst: *ref_1
        tds: *ref_1
        totalReceived: *ref_1
        via: *ref_2
      title: InvoiceUpdateRequest
      x-apidog-orders:
        - approvalStatus
        - balanceAmount
        - baseAmount
        - cgst
        - chargeCustomer
        - customerId
        - description
        - dispatchNow
        - dueDate
        - emailAddress
        - gstExclusive
        - igst
        - invoiceDate
        - invoiceNumber
        - mobileNumber
        - netAmount
        - partialPaymentAllowed
        - payableReferenceId
        - poNumber
        - receivableStatus
        - sgst
        - tds
        - totalReceived
        - via
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    JsonNullable«LocalDateTime»:
      type: object
      title: JsonNullable«LocalDateTime»
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    JsonNullable«LocalDate»:
      type: object
      title: JsonNullable«LocalDate»
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    JsonNullable«boolean»:
      type: object
      title: JsonNullable«boolean»
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    JsonNullable«bigdecimal»:
      type: object
      title: JsonNullable«bigdecimal»
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    JsonNullable«string»:
      type: object
      title: JsonNullable«string»
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApplicationResponse«InvoiceResponse»:
      type: object
      properties:
        errorResponse: &ref_5
          $ref: '#/components/schemas/ErrorResponse'
        payload:
          $ref: '#/components/schemas/InvoiceResponse'
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
      title: ApplicationResponse«InvoiceResponse»
      x-apidog-orders:
        - errorResponse
        - payload
        - response_code
        - response_message
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    InvoiceResponse:
      type: object
      properties:
        approvalStatus: &ref_4
          $ref: '#/components/schemas/EnumModel%C2%ABstring%C2%BB'
        attachmentUrl:
          type: string
        balanceAmount:
          type: number
        baseAmount:
          type: number
        cgst:
          type: number
        createdBy:
          type: string
        createdByEmail:
          type: string
        createdByMobile:
          type: string
        createdByName:
          type: string
        createdOn:
          type: string
          format: date-time
        customerId:
          type: string
        customerLegalName:
          type: string
        description:
          type: string
        dispatched:
          type: boolean
        dispatchedOn:
          type: string
          format: date-time
        dueDate:
          type: string
          format: date
        externalId:
          type: string
        hasKeyContacts:
          type: boolean
        igst:
          type: number
        invoiceAttachments:
          type: array
          uniqueItems: true
          items:
            $ref: '#/components/schemas/InvoiceAttachmentResponse'
        invoiceDate:
          type: string
          format: date-time
        invoiceId:
          type: string
        invoiceNumber:
          type: string
        modifiedBy:
          type: string
        modifiedByEmail:
          type: string
        modifiedByMobile:
          type: string
        modifiedByName:
          type: string
        modifiedOn:
          type: string
          format: date-time
        netAmount:
          type: number
        partialPaymentAllowed:
          type: boolean
        payableReferenceId:
          type: string
        paymentLink:
          type: string
        payoutStatus: *ref_4
        poNumber:
          type: string
        receivableStatus: *ref_4
        sellerId:
          type: string
        sgst:
          type: number
        tds:
          type: number
        totalReceived:
          type: number
        via:
          type: string
      title: InvoiceResponse
      x-apidog-orders:
        - approvalStatus
        - attachmentUrl
        - balanceAmount
        - baseAmount
        - cgst
        - createdBy
        - createdByEmail
        - createdByMobile
        - createdByName
        - createdOn
        - customerId
        - customerLegalName
        - description
        - dispatched
        - dispatchedOn
        - dueDate
        - externalId
        - hasKeyContacts
        - igst
        - invoiceAttachments
        - invoiceDate
        - invoiceId
        - invoiceNumber
        - modifiedBy
        - modifiedByEmail
        - modifiedByMobile
        - modifiedByName
        - modifiedOn
        - netAmount
        - partialPaymentAllowed
        - payableReferenceId
        - paymentLink
        - payoutStatus
        - poNumber
        - receivableStatus
        - sellerId
        - sgst
        - tds
        - totalReceived
        - via
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    InvoiceAttachmentResponse:
      type: object
      properties:
        attachmentSource:
          type: string
          enum:
            - TALLY_INVOICE
            - UI_INVOICE
        createdBy:
          type: string
        deleted:
          type: boolean
        fileExt:
          type: string
        invoiceAttachmentId:
          type: string
        modifiedBy:
          type: string
        originalFilename:
          type: string
        primary:
          type: boolean
        referenceId:
          type: string
        remarks:
          type: string
        shared:
          type: boolean
        url:
          type: string
      title: InvoiceAttachmentResponse
      x-apidog-orders:
        - attachmentSource
        - createdBy
        - deleted
        - fileExt
        - invoiceAttachmentId
        - modifiedBy
        - originalFilename
        - primary
        - referenceId
        - remarks
        - shared
        - url
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    EnumModel«string»:
      type: object
      properties:
        label:
          type: string
        name:
          type: string
          enum:
            - PAID
            - PARTIAL_PAID
            - REJECT
            - UNPAID
      title: EnumModel«string»
      x-apidog-orders:
        - label
        - name
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ErrorResponse:
      type: object
      properties:
        apiSubErrors:
          type: array
          items:
            $ref: '#/components/schemas/ApiSubError'
        errorMessage:
          type: string
        errorType:
          type: string
          enum:
            - CLIENT_REQUEST_ABORT
            - CLIENT_REQUEST_ERROR
            - INVALID_ACCESS
            - RECORD_NOT_FOUND
            - SYSTEM_ERROR
            - UNAUTHORIZED
            - UNKNOWN_ERROR
            - UNPROCESSABLE_REQUEST
            - VALIDATION_ERROR
        requestId:
          type: string
        timestamp:
          type: string
          examples:
            - yyyy-MM-dd HH:mm:ss
      title: ErrorResponse
      x-apidog-orders:
        - apiSubErrors
        - errorMessage
        - errorType
        - requestId
        - timestamp
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApiSubError:
      type: object
      title: ApiSubError
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApplicationResponse:
      type: object
      properties:
        errorResponse: *ref_5
        payload:
          type: object
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
      title: ApplicationResponse
      x-apidog-orders:
        - errorResponse
        - payload
        - response_code
        - response_message
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
