# Update Wallet Details

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/partner/enKashCard:
    patch:
      summary: Update Wallet Details
      deprecated: false
      description: >-
        :::highlight purple 📌

        The Update Wallet Details endpoint lets you modify a user’s EnKash
        wallet information, such as name, email, or mobile number. This update
        is allowed only before OTP verification in the Create Wallet flow. Once
        OTP validation is completed, wallet details are locked to protect user
        identity and prevent unauthorized changes.

        :::
      tags:
        - Wallet/APIs - Wallet/Wallet Setup
      parameters:
        - name: partnerId
          in: header
          description: ''
          required: true
          example: CRM338L2H
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer hxtaSWH8zb5XrA71XDrgFu1uO50
          schema:
            type: string
        - name: Cookie
          in: header
          description: ''
          required: true
          example: >-
            JSESSIONID=526FAFE391FEC276549D84FEF5FC5BE7;
            JSESSIONID=B01764303CD3DEFC3C0699B3EF351505;
            _cfuvid=jS8C5lxGW4Q6FRWotUQnMGhbxbpGmvk3fGg1kdmq4WM-1752680737979-0.0.1.1-604800000;
            JSESSIONID=6709E31F4515A4151FABAC8E52CAD2A0
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                companyId:
                  type: string
                cardAccountId:
                  type: string
                enKashCardId:
                  type: string
                email:
                  type: string
                mobile:
                  type: string
                specialDate:
                  type: string
                address:
                  type: string
                address2:
                  type: string
                city:
                  type: string
                state:
                  type: string
                pincode:
                  type: string
                pan:
                  type: string
              required:
                - companyId
                - cardAccountId
                - enKashCardId
                - email
                - mobile
                - specialDate
                - address
                - address2
                - city
                - state
                - pincode
                - pan
              x-apidog-orders:
                - companyId
                - cardAccountId
                - enKashCardId
                - email
                - mobile
                - specialDate
                - address
                - address2
                - city
                - state
                - pincode
                - pan
            example:
              cardAccountId: CAC7975
              companyId: CEKQ08TRRG
              enKashCardId: EKCWLUAADN
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  payload:
                    type: object
                    properties:
                      recordsCount:
                        type: integer
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            enKashCardId:
                              type: string
                            userId:
                              type: string
                            cardAccountId:
                              type: string
                            token:
                              type: string
                            maskedNumber:
                              type: string
                            expiryMonth:
                              type: string
                            expiryYear:
                              type: string
                            email:
                              type: string
                            mobile:
                              type: string
                            title:
                              type: string
                            firstName:
                              type: string
                            lastName:
                              type: string
                            gender:
                              type: string
                            specialDate:
                              type: string
                            address:
                              type: string
                            address2:
                              type: string
                            city:
                              type: string
                            state:
                              type: string
                            country:
                              type: string
                            pincode:
                              type: string
                            otbBalance:
                              type: integer
                            createdOn:
                              type: string
                            modifiedOn:
                              type: string
                            cardStatus:
                              type: object
                              properties:
                                name:
                                  type: string
                                label:
                                  type: string
                              required:
                                - name
                                - label
                              x-apidog-orders:
                                - name
                                - label
                            kycStatus:
                              type: object
                              properties:
                                name:
                                  type: string
                                label:
                                  type: string
                              required:
                                - name
                                - label
                              x-apidog-orders:
                                - name
                                - label
                            companyId:
                              type: string
                            middleName:
                              type: string
                          x-apidog-orders:
                            - enKashCardId
                            - userId
                            - cardAccountId
                            - token
                            - maskedNumber
                            - expiryMonth
                            - expiryYear
                            - email
                            - mobile
                            - title
                            - firstName
                            - lastName
                            - gender
                            - specialDate
                            - address
                            - address2
                            - city
                            - state
                            - country
                            - pincode
                            - otbBalance
                            - createdOn
                            - modifiedOn
                            - cardStatus
                            - kycStatus
                            - companyId
                            - middleName
                    required:
                      - recordsCount
                      - data
                    x-apidog-orders:
                      - recordsCount
                      - data
                required:
                  - code
                  - message
                  - payload
                x-apidog-orders:
                  - code
                  - message
                  - payload
              example: |-
                {
                    "code": 0,
                    "message": "Success",
                    "payload": {
                        "recordsCount": 1,
                        "data": [
                            {
                                "enKashCardId": "EKCWLUAADN",
                                "userId": "EK7PED2F",
                                "cardAccountId": "CAC7975",
                                "token": "2be39e6a01b846bf6fd",
                                "maskedNumber": "2004 0260 XXXX 1111",
                                "expiryMonth": "",
                                "expiryYear": "",
                                "email": "krishnatwallet@gmail.com",
                                "mobile": "6000091111",
                                "title": "Mr",
                                "firstName": "Kris",
                                "lastName": "Singh",
                                "gender": "M",
                                "specialDate": "02-09-2001",
                                "address": "cda block",
                                "address2": "ab colony",
                                "city": "kota",
                                "state": "Rajasthan",
                                "country": "India",
                                "pincode": "323307",
                                "otbBalance": 0.00,
                                "createdOn": "Jul 16, 2025 9:24:38 PM",
                                "modifiedOn": "Jul 16, 2025 9:24:38 PM",
                                "cardStatus": {
                                    "name": "UL",
                                    "label": "UnLocked"
                                },
                                "kycStatus": {
                                    "name": "NOT_UPLOADED",
                                    "label": "Not Uploaded"
                                },
                                "cardActivated": false,
                                "binType": {
                                    "name": "PREPAID",
                                    "label": "Prepaid Card"
                                },
                                "loadAmount": 0.00,
                                "companyId": "CEKQ08TRRG",
                                "middleName": "",
                            ]
                        }
                    ]
                }
                }
          headers: {}
          x-apidog-name: OK
      security:
        - bearer: []
      x-apidog-folder: Wallet/APIs - Wallet/Wallet Setup
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-19655127-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
