# Block Wallet

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/partner/enKashCard/block:
    post:
      summary: Block Wallet
      deprecated: false
      description: >-

        :::highlight purple 📌

        This API is used to block a wallet, immediately preventing any further
        transactions. Use this endpoint to secure the card in cases of loss,
        theft, or suspicious activity

        :::
      operationId: blockCard
      tags:
        - Wallet/APIs - Wallet/Wallet Management
      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
                - blockCode
                - reason
                - otpMedium
                - otpRequestId
                - otp
              properties:
                companyId:
                  type: string
                  description: >-
                    Unique EnKash Company ID. This is the ID assigned to a
                    company onboarded on the EnKash platform.
                cardAccountId:
                  type: string
                  description: >-
                    Unique EnKash Account ID. This is the ID assigned to the
                    account created under the company.
                enKashCardId:
                  type: string
                  description: Unique identifier for the EnKash card.
                blockCode:
                  type: string
                  enum:
                    - L
                    - UL
                    - BL
                    - AP
                  description: >-
                    Card status after card is blocked. Possible values are L -
                    Locked, UL - Unlocked
                reason:
                  type: string
                  description: Reason for blocking the card.
                otpRequestId:
                  type: string
                  description: Indicates if OTP is required for this operation.
                otp:
                  type: string
                  description: OTP received by the user.
                otpMedium:
                  type: string
                  enum:
                    - MOBILE
                    - MFA
                  description: ' Medium for OTP. Allowed values are MOBILE and MFA.'
              required:
                - blockCode
                - cardAccountId
                - companyId
                - enKashCardId
                - otpMedium
                - otpRequestId
                - 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
              example:
                code: 0
                message: Success
                payload: Success
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: Wallet/APIs - Wallet/Wallet Management
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-31521719-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
