# updateCustomer

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/customer/{customerId}:
    patch:
      summary: updateCustomer
      deprecated: false
      description: ''
      operationId: updateCustomerUsingPATCH
      tags:
        - >-
          Account Receivable/APIs - Account Receivable /Customer
          Management/Customer Apis
        - Customer Apis
      parameters:
        - name: customerId
          in: path
          description: customerId
          required: true
          example: ''
          schema:
            type: string
            pattern: ^KC[A-Z0-9]{14}$
        - name: parentCompanyId
          in: query
          description: parentCompanyId
          required: false
          schema:
            type: string
            pattern: ^CEK[A-Z0-9]{7}$
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerUpdateRequest'
            example: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApplicationResponse%C2%ABCustomerResponse%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 /Customer
        Management/Customer Apis
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-18880674-run
components:
  schemas:
    CustomerUpdateRequest:
      type: object
      properties:
        accountNumber: &ref_1
          $ref: '#/components/schemas/JsonNullable%C2%ABstring%C2%BB'
          description: Unique account number for the customer
        address: *ref_1
        assignedAgent: *ref_1
        branchCodes:
          $ref: '#/components/schemas/JsonNullable%C2%ABList%C2%ABstring%C2%BB%C2%BB'
          description: Codes of branches associated with the customer
        contactNumber: *ref_1
        customerId: *ref_1
        customerKeyContacts:
          $ref: >-
            #/components/schemas/JsonNullable%C2%ABList%C2%ABCustomerKeyContactCreateDTO%C2%BB%C2%BB
          description: Key contact persons for the customer
        customerReminders:
          $ref: >-
            #/components/schemas/JsonNullable%C2%ABList%C2%ABCustomerReminderCreateDTO%C2%BB%C2%BB
          description: Reminders for the customer
        ifsc: *ref_1
        legalName: *ref_1
        panOrGstin: *ref_1
        pinCode: *ref_1
        state: *ref_1
        uniqueRefNo: *ref_1
      title: CustomerUpdateRequest
      x-apidog-orders:
        - accountNumber
        - address
        - assignedAgent
        - branchCodes
        - contactNumber
        - customerId
        - customerKeyContacts
        - customerReminders
        - ifsc
        - legalName
        - panOrGstin
        - pinCode
        - state
        - uniqueRefNo
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    JsonNullable«List«CustomerReminderCreateDTO»»:
      type: object
      title: JsonNullable«List«CustomerReminderCreateDTO»»
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    JsonNullable«List«CustomerKeyContactCreateDTO»»:
      type: object
      title: JsonNullable«List«CustomerKeyContactCreateDTO»»
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    JsonNullable«List«string»»:
      type: object
      title: JsonNullable«List«string»»
      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«CustomerResponse»:
      type: object
      properties:
        errorResponse: &ref_2
          $ref: '#/components/schemas/ErrorResponse'
        payload:
          $ref: '#/components/schemas/CustomerResponse'
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
      title: ApplicationResponse«CustomerResponse»
      x-apidog-orders:
        - errorResponse
        - payload
        - response_code
        - response_message
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    CustomerResponse:
      type: object
      properties:
        accountNumber:
          type: string
        active:
          type: boolean
        address:
          type: string
        assignedAgent:
          type: string
        bankName:
          type: string
        branchCodes:
          type: array
          items:
            type: string
        companyId:
          type: string
        contactEmail:
          type: string
        contactNumber:
          type: string
        createdBy:
          type: string
        createdByName:
          type: string
        createdOn:
          type: string
          format: date-time
        customerId:
          type: string
        customerKeyContacts:
          type: array
          uniqueItems: true
          items:
            $ref: '#/components/schemas/CustomerKeyContactResponse'
        customerLogo:
          type: string
        customerReminders:
          type: array
          uniqueItems: true
          items:
            $ref: '#/components/schemas/CustomerReminderConfigResponse'
        dsoMedian:
          type: integer
          format: int64
        id:
          type: integer
          format: int64
        ifsc:
          type: string
        legalName:
          type: string
        modifiedBy:
          type: string
        modifiedByName:
          type: string
        modifiedOn:
          type: string
          format: date-time
        netAmount:
          type: number
        panOrGstin:
          type: string
        parentCompanyId:
          type: string
        parentLegalName:
          type: string
        pinCode:
          type: string
        state:
          type: string
        uniqueRefNo:
          type: string
        warnings:
          type: array
          items:
            type: string
      title: CustomerResponse
      x-apidog-orders:
        - accountNumber
        - active
        - address
        - assignedAgent
        - bankName
        - branchCodes
        - companyId
        - contactEmail
        - contactNumber
        - createdBy
        - createdByName
        - createdOn
        - customerId
        - customerKeyContacts
        - customerLogo
        - customerReminders
        - dsoMedian
        - id
        - ifsc
        - legalName
        - modifiedBy
        - modifiedByName
        - modifiedOn
        - netAmount
        - panOrGstin
        - parentCompanyId
        - parentLegalName
        - pinCode
        - state
        - uniqueRefNo
        - warnings
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    CustomerReminderConfigResponse:
      type: object
      properties:
        customerId:
          type: string
        customerReminderId:
          type: string
        dueDateDifference:
          type: integer
          format: int32
        reminderInterval:
          type: integer
          format: int32
        reminderTime:
          type: string
          examples:
            - HH:mm
        reminderType:
          type: string
          enum:
            - ONCE
            - RECURRING
        stage:
          type: string
      title: CustomerReminderConfigResponse
      x-apidog-orders:
        - customerId
        - customerReminderId
        - dueDateDifference
        - reminderInterval
        - reminderTime
        - reminderType
        - stage
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    CustomerKeyContactResponse:
      type: object
      properties:
        createdBy:
          type: string
        createdOn:
          type: string
          format: date-time
        customerId:
          type: string
        customerName:
          type: string
        deleted:
          type: string
        email:
          type: string
        keyContactPersonId:
          type: string
        mail_enabled:
          type: boolean
        mobile:
          type: string
        modifiedBy:
          type: string
        modifiedOn:
          type: string
          format: date-time
        name:
          type: string
        sms_enabled:
          type: boolean
        whatsapp_enabled:
          type: boolean
      title: CustomerKeyContactResponse
      x-apidog-orders:
        - createdBy
        - createdOn
        - customerId
        - customerName
        - deleted
        - email
        - keyContactPersonId
        - mail_enabled
        - mobile
        - modifiedBy
        - modifiedOn
        - name
        - sms_enabled
        - whatsapp_enabled
      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_2
        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: []

```
