# Wallet Top-Up from Balance

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/partner/enKashCard/balance:
    post:
      summary: Wallet Top-Up from Balance
      deprecated: false
      description: >-

        :::highlight purple 📌

        Wallet Top-Up from Balance enables instant wallet funding using a
        prefunded partner balance, without requiring a payment gateway.

        :::
      operationId: balanceUpdate_1
      tags:
        - Wallet/APIs - Wallet/Wallet Management
      parameters:
        - name: partnerId
          in: header
          description: PartnerID shared during sign-up
          required: true
          example: ' CRM338L2H'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              x-apidog-refs:
                01JJ9EBQ5NPWYVDJBA3SJ6CM30:
                  $ref: '#/components/schemas/MealCardBalanceRequest'
                  x-apidog-overrides:
                    transactionType:
                      type: string
                      enum:
                        - DR
                        - CR
                      description: >-
                        As it is update balance request type should be CR.
                        (credit)

                        On this card DR (Debit) is not allowed. 
                      x-apidog-mock: CR
                  required:
                    - transactionType
              x-apidog-orders:
                - 01JJ9EBQ5NPWYVDJBA3SJ6CM30
                - enkashCardBenefitId
              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.
                createdBy:
                  type: string
                  description: 'Transaction created by user. '
                amount:
                  minimum: 0.01
                  type: number
                  description: Amount greater than 1
                uniqueReferenceNumber:
                  type: string
                  description: External reference number for the load money transaction.
                remarks:
                  type: string
                  description: Remarks for the transaction
                enKashCardId:
                  type: string
                  description: Unique identifier for the EnKash card.
                enkashCardBenefitId:
                  type: string
                  description: The subwallet ID
              required:
                - amount
                - enKashCardId
              x-apidog-ignore-properties:
                - companyId
                - cardAccountId
                - createdBy
                - amount
                - uniqueReferenceNumber
                - remarks
                - enKashCardId
            example:
              companyId: CEKQ08TRRG
              cardAccountId: CAC7975
              createdBy: anay
              amount: 10
              transactionType: CR
              description: desc
              type: ALLOCATE_FUND
              transactionCode: ALLOCATION
              uniqueReferenceNumber: Ref123
              remarks: string
              enKashCardId: EKCWLUAADN
              enkashCardBenefitId: EKCBY22EXYH
      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: []
              example:
                code: 0
                message: Success
                payload: >-
                  Funds allocated from Parent Account to Card by Admin
                  successful
          headers: {}
          x-apidog-name: OK
      security:
        - bearer: []
      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-19838579-run
components:
  schemas:
    MealCardBalanceRequest:
      required:
        - amount
        - enKashCardId
      type: object
      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.
        createdBy:
          type: string
          description: 'Transaction created by user. '
        amount:
          minimum: 0.01
          type: number
          description: Amount greater than 1
        uniqueReferenceNumber:
          type: string
          description: External reference number for the load money transaction.
        remarks:
          type: string
          description: Remarks for the transaction
        enKashCardId:
          type: string
          description: Unique identifier for the EnKash card.
      x-apidog-orders:
        - companyId
        - cardAccountId
        - createdBy
        - amount
        - uniqueReferenceNumber
        - remarks
        - enKashCardId
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
