# Request Card Replacement

## OpenAPI Specification

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

        :::highlight purple 📌

        This API enables the replacement of an existing card, allowing users to
        request a new one in cases of loss, damage, or other issues. It ensures
        continued access and maintains security in card usage

        :::
      operationId: replaceCard
      tags:
        - Prepaid Cards/APIs - Prepaid Card/Reloadable Prepaid 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:
                01JJ9G2QQYCSS7TZWH9VNGSHPF:
                  $ref: '#/components/schemas/EnkashCardGetRequest'
                  x-apidog-overrides: {}
                  required:
                    - otpMedium
              x-apidog-orders:
                - 01JJ9G2QQYCSS7TZWH9VNGSHPF
                - otpRequired
              properties:
                enKashCardId:
                  type: string
                  description: Unique identifier for the EnKash card.
                otpRequestId:
                  type: string
                  description: Unique identifier for the OTP request.
                cardAccountId:
                  type: string
                  description: Unique identifier for the account under company.
                otp:
                  type: string
                  description: One-Time Password for verification if otpMedium is MOBILE.
                otpRequired:
                  type: boolean
                  x-apidog-mock: 'false'
                  description: to be passed as false
              required:
                - enKashCardId
                - otpRequired
              x-apidog-ignore-properties:
                - enKashCardId
                - otpRequestId
                - cardAccountId
                - otp
            example: ''
      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
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: Prepaid Cards/APIs - Prepaid Card/Reloadable Prepaid Cards
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-13438389-run
components:
  schemas:
    EnkashCardGetRequest:
      required:
        - enKashCardId
      type: object
      properties:
        enKashCardId:
          type: string
          description: Unique identifier for the EnKash card.
        otpRequestId:
          type: string
          description: Unique identifier for the OTP request.
        cardAccountId:
          type: string
          description: Unique identifier for the account under company.
        otp:
          type: string
          description: One-Time Password for verification if otpMedium is MOBILE.
      x-apidog-orders:
        - enKashCardId
        - otpRequestId
        - cardAccountId
        - otp
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
