# Set Card PIN

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/partner/enKashCard/setPin:
    post:
      summary: Set Card PIN
      deprecated: false
      description: >-

        :::highlight purple 📌

        This API allows users to securely set or update the PIN for their card.
        It ensures proper authentication and authorization before allowing PIN
        changes, enhancing card security and user control

        :::
      operationId: setPin
      tags:
        - Prepaid Cards/APIs - Prepaid Card/Non Reloadable Gift Cards
      parameters:
        - name: authorization
          in: header
          description: >-
            Provide your bearer token in the Authorization header when making
            requests to protected resources.
          required: true
          example: Bearer 2f68dbbf-519d-4f01-9636-e2421b68f379
          schema:
            type: string
        - name: partnerId
          in: header
          description: PartnerID shared during sign-up
          required: true
          example: ' CRXXXXXXX'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              x-apidog-refs: {}
              x-apidog-orders:
                - companyId
                - cardAccountId
                - enKashCardId
                - pinBlock
                - otpRequestId
                - otp
                - otpMedium
              properties:
                companyId:
                  type: string
                  description: Unique Enkash Company Id
                cardAccountId:
                  type: string
                  description: Unique Card Account ID
                enKashCardId:
                  type: string
                  description: Unique Enkash Card ID
                pinBlock:
                  type: string
                  description: Pin to be set
                otpRequestId:
                  type: string
                  description: Otp Request Id
                otp:
                  type: string
                  description: otp
                otpMedium:
                  type: string
                  description: MOBILE
              required:
                - cardAccountId
                - companyId
                - enKashCardId
                - pinBlock
                - otpRequestId
                - otp
                - otpMedium
            example:
              companyId: CEKEP5GSGP
              cardAccountId: CAA8W45
              enKashCardId: EKC94AEX89
              pinBlock: 9078
              otp: '123456'
              otpMedium: MOBILE
              otpRequestId: 12EKpsafo
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  payload:
                    type: string
                required:
                  - code
                  - message
                  - payload
                x-apidog-orders:
                  - code
                  - message
                  - payload
              example:
                code: 0
                message: Success
                payload: Success
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: Prepaid Cards/APIs - Prepaid Card/Non Reloadable Gift Cards
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-27454920-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
