Enkash Developer Portal
Home
Home
Login
  1. Customer Apis
  • Back to home
  • Account Receivable APIs
  • Get Authentication Token Copy
    • Get Authentication Token
  • Customer Management
    • Customer Apis
      • Activate customer
        PUT
      • createBulkCustomer
        POST
      • bulkUpdate
        POST
      • Deactivate customer
        PUT
      • deleteCustomerByCustomerId
        DELETE
      • updateCustomer
        PATCH
  • Customer Contacts Management
    • Customer Apis
      • getCustomerContactDetails
  • Invoice Management
    • invoice-controller
      • createInvoice
      • invoiceBulkUpload
      • Dispatch Invoice Collection
      • Delete Invoice Collection
      • searchCollectionInvoices
      • getInvoice
      • updateInvoice
  • Payment Reminders
    • customer-reminder-controller
      • createCustomerReminder
      • getCustomerReminders
      • getCustomerReminder
      • deleteReminder
      • updateCustomerReminder
  • Bharat Connect 2.0 AR
    • Payment Confirmation Request
    • Change Invoice Status Request
    • Bulk Create Invoice
  1. Customer Apis

updateCustomer

PATCH
/api/v0/customer/{customerId}

Request

Path Params

Query Params

Body Params application/json

Example
{
    "accountNumber": {},
    "address": {},
    "assignedAgent": {},
    "branchCodes": {},
    "contactNumber": {},
    "customerId": {},
    "customerKeyContacts": {},
    "customerReminders": {},
    "ifsc": {},
    "legalName": {},
    "panOrGstin": {},
    "pinCode": {},
    "state": {},
    "uniqueRefNo": {}
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://test.your-api-server.com/api/v0/customer/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountNumber": {},
    "address": {},
    "assignedAgent": {},
    "branchCodes": {},
    "contactNumber": {},
    "customerId": {},
    "customerKeyContacts": {},
    "customerReminders": {},
    "ifsc": {},
    "legalName": {},
    "panOrGstin": {},
    "pinCode": {},
    "state": {},
    "uniqueRefNo": {}
}'

Responses

🟢200OK
application/json
Body

Example
{
    "errorResponse": {
        "apiSubErrors": [
            {}
        ],
        "errorMessage": "string",
        "errorType": "CLIENT_REQUEST_ABORT",
        "requestId": "string",
        "timestamp": "yyyy-MM-dd HH:mm:ss"
    },
    "payload": {
        "accountNumber": "string",
        "active": true,
        "address": "string",
        "assignedAgent": "string",
        "bankName": "string",
        "branchCodes": [
            "string"
        ],
        "companyId": "string",
        "contactEmail": "string",
        "contactNumber": "string",
        "createdBy": "string",
        "createdByName": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "customerId": "string",
        "customerKeyContacts": [
            {
                "createdBy": "string",
                "createdOn": "2019-08-24T14:15:22Z",
                "customerId": "string",
                "customerName": "string",
                "deleted": "string",
                "email": "string",
                "keyContactPersonId": "string",
                "mail_enabled": true,
                "mobile": "string",
                "modifiedBy": "string",
                "modifiedOn": "2019-08-24T14:15:22Z",
                "name": "string",
                "sms_enabled": true,
                "whatsapp_enabled": true
            }
        ],
        "customerLogo": "string",
        "customerReminders": [
            {
                "customerId": "string",
                "customerReminderId": "string",
                "dueDateDifference": 0,
                "reminderInterval": 0,
                "reminderTime": "HH:mm",
                "reminderType": "ONCE",
                "stage": "string"
            }
        ],
        "dsoMedian": 0,
        "id": 0,
        "ifsc": "string",
        "legalName": "string",
        "modifiedBy": "string",
        "modifiedByName": "string",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "netAmount": 0,
        "panOrGstin": "string",
        "parentCompanyId": "string",
        "parentLegalName": "string",
        "pinCode": "string",
        "state": "string",
        "uniqueRefNo": "string",
        "warnings": [
            "string"
        ]
    },
    "response_code": 0,
    "response_message": "string"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🟠422Unprocessable Request
🔴500Server Error
Modified at 2025-07-07 18:44:30
Previous
deleteCustomerByCustomerId
Next
getCustomerContactDetails
Built with