> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Deregister Fundsource Lite with Balance

> Move balance back to user account and deregister Fundsource Lite account using Razorpay Fundsource Lite API.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
</div>

Use this endpoint to deregister a Fundsource Lite account with balance and move the remaining balance to the user's bank account.

<RequestExample>
  ```bash Curl theme={null}
  curl -X POST 'https://api.rzp.<bank>.com/v1/upi/tpap/fundsource_lite/{:lite_id}/deregister' \
  -u [YOUR_KEY_ID]:[YOUR_SECRET] \
  -H "Content-type: application/json" \
  -H "x-device-fingerprint: <device_fingerprint>" \
  -H "x-device-fingerprint-timestamp: 1496918882000" \
  -H "x-customer-reference: cust_ref" \
  -d '{
    "upi_transaction_id": "RZP1KuSUGrp2l6MmPuT0163789452QPAY02",
    "reference_id": "RSKwpINfSkdEvtdxf",
    "initiation_mode": "00",
    "device": {
      "geocode": "12.9667,77.5668",
      "ip": "198.1.1.3"
    },
    "currency": "INR",
    "amount": 100,
    "description": "Deregister active Lite account",
    "upi_credentials": {
      "ARQC": "{\"type\":\"ARQC\",\"subType\":\"initial\",\"data\":{\"encryptedBase64String\":\"encrypted_string\",\"code\":\"NPCI-LITE\"}}"
    },
    "payees": [
      {
        "fundsource_id": "fs_Mock14charID"
      }
    ]
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "entity": "upi.fundsource_lite",
    "id": "lite_id",
    "upi_lite_reference_number": "1234567890",
    "upi_transaction_id": "RZPc2ed455b797e4add8392110cfc528acc",
    "status": "deregistered",
    "upi_lite_credentials": {
      "ARQC": "string"
    },
    "fundsource": {
      "id": "fs_1234",
      "entity": "upi.fundsource",
      "type": "savings",
      "customer_name": "Gaurav Kumar",
      "masked_account_number": "XXXXXX5199",
      "account_reference_number": "999988126236990",
      "ifsc": "HDFC000001",
      "upi_pin_set": true,
      "upi_pin_length": 6,
      "otp_length": 6,
      "atm_pin_length": 4,
      "fundsource_provider": {
        "name": "HDFC Bank",
        "upi_iin": "600007",
        "upi_enabled": false,
        "mobile_registration_format": "format1",
        "logo_url": "<bank logo url>",
        "upi_lite_allowed": true
      },
      "vpas": {
        "entity": "collection",
        "count": 1,
        "items": [
          {
            "mobile": "9999999999",
            "address": "vpa@handle",
            "status": "active",
            "primary": true
          }
        ]
      }
    }
  }
  ```
</ResponseExample>

## Request Parameters

<ParamField body="upi_transaction_id" type="string" required>
  Unique UPI transaction id.
</ParamField>

<ParamField body="reference_id" type="string">
  Merchant reference id.
</ParamField>

<ParamField body="upi_initiation_mode" type="enum">
  Indicates the 2-digit code defined by NPCI. Possible values:

  * `00`: Default - When no specific code is assigned or for general default scenarios.
  * `01`: QR Code - For making payments by scanning a standard QR code.
  * `02`: Secure QR Code - For payments that require additional security with QR codes.
  * `03`: Bharat QR Code - For interoperable payments across various payment networks using Bharat QR.
  * `04`: Intent - For payments initiated by an intent from an application or browser.
  * `05`: Secure Intent - For payments initiated by a secure intent from an app or browser.
  * `06`: NFC (Near Field Communication) - For contactless payments using NFC technology.
  * `07`: BLE (Bluetooth) - For payments made through Bluetooth Low Energy technology.
  * `08`: UHF (Ultra High Frequency) - For payments made using UHF technology, typically for toll payments.
  * `09`: Aadhaar - For payments authenticated using an Aadhaar number and biometric verification.
  * `10`: SDK (Software Development Kit) - For payments initiated through an SDK embedded in an app.
  * `11`: UPI-Mandate - For setting up recurring payments or mandates using UPI.
  * `12`: FIR (Foreign Inward Remittance) - For receiving remittances from foreign countries.
  * `13`: QR Mandate - For setting up recurring payments using a QR code.
  * `14`: BBPS - For making bill payments through the Bharat Bill Payment System.
</ParamField>

<ParamField body="device" type="object" required>
  The device details.
</ParamField>

<ParamField body="ip" type="string" required>
  The IP address of the device.
</ParamField>

<ParamField body="geocode" type="string" required>
  The location coordinates of the device. For example, `12.9667,77.5667`.
</ParamField>

<ParamField body="currency" type="string" required>
  The currency in which the payment should be made by the customer. For example, `INR`.
</ParamField>

<ParamField body="amount" type="integer" required>
  The amount to be paid by the customer in currency subunits. For example, if the amount is ₹100, enter `10000`
</ParamField>

<ParamField body="description" type="string">
  Description of the payment.
</ParamField>

<ParamField body="upi_credentials" type="object" required>
  ARQC encrypted credential for authorisation.
</ParamField>

<ParamField body="ARPC" type="string">
  Authentication Response Code credential.

  payees *mandatory*
  : `string` Payee details.
</ParamField>

<ParamField body="fundsource_id" type="string" required>
  Fundsource id of the payee.
</ParamField>

## Response Parameters

<ResponseField name="entity" type="string">
  Name of the entity. Here it is `upi.fundsource_lite`.
</ResponseField>

<ResponseField name="id" type="string">
  Unique identifier for the Fundsource Lite entity.
</ResponseField>

<ResponseField name="upi_lite_reference_number" type="string">
  Reference number for the Lite account, assigned by the originator.
</ResponseField>

<ResponseField name="upi_transaction_id" type="string">
  Unique UPI transaction identifier.
</ResponseField>

<ResponseField name="status" type="string">
  Current status of the UPI Lite account. Possible values:

  * `initiated`
  * `active`
  * `deregistered`
</ResponseField>

<ResponseField name="upi_lite_credentials" type="object">
  ARQC encrypted credential for authorisation.
</ResponseField>

<ResponseField name="ARPC" type="string">
  Authentication Response Code credential.
</ResponseField>

<ResponseField name="fundsource" type="object">
  The fundsource for which Lite is enabled.
</ResponseField>

<ResponseField name="id" type="string">
  Unique identifier of the fundsource.
</ResponseField>

<ResponseField name="entity" type="string">
  Name of the entity. Here it is `fundsource`.
</ResponseField>

<ResponseField name="type" type="string">
  Account type.
</ResponseField>

<ResponseField name="customer_name" type="string">
  Name of the customer.
</ResponseField>

<ResponseField name="masked_account_number" type="string">
  Masked version of the customer's account number.
</ResponseField>

<ResponseField name="account_reference_number" type="string">
  Reference number assigned to the customer's account.
</ResponseField>

<ResponseField name="ifsc" type="string">
  IFSC code of the account.
</ResponseField>

<ResponseField name="upi_pin_set" type="boolean">
  Indicates whether UPI PIN is already set.

  * `true`: UPI PIN is already set.
  * `false`: UPI PIN is not set.
</ResponseField>

<ResponseField name="upi_pin_length" type="integer">
  Length of UPI PIN.
</ResponseField>

<ResponseField name="otp_length" type="integer">
  OTP length used during registration.
</ResponseField>

<ResponseField name="atm_pin_length" type="integer">
  ATM PIN length of the account.
</ResponseField>

<ResponseField name="fundsource_provider" type="object">
  Details of the bank.
</ResponseField>

<ResponseField name="name" type="string">
  Name of the bank.
</ResponseField>

<ResponseField name="upi_iin" type="string">
  UPI IIN code assigned to the provider by NPCI.
</ResponseField>

<ResponseField name="upi_enabled" type="boolean">
  Indicates whether UPI is enabled for the provider. Possible values:

  * `true`: UPI is enabled.
  * `false`: UPI is not enabled.
</ResponseField>

<ResponseField name="mobile_registration_format" type="string">
  Mobile registration format supported.
</ResponseField>

<ResponseField name="logo_url" type="string">
  URL to the provider's logo.
</ResponseField>

<ResponseField name="upi_lite_allowed" type="boolean">
  Indicates whether the UPI Lite is allowed by the bank. Possible values:

  * `true`: UPI Lite is allowed.
  * `false`: UPI Lite is not allowed.
</ResponseField>

<ResponseField name="vpas" type="object">
  Collection of VPAs for the fundsource.
</ResponseField>

<ResponseField name="entity" type="string">
  Name of the entity. Here it is `collection`.
</ResponseField>

<ResponseField name="count" type="integer">
  Total number of VPA items.
</ResponseField>

<ResponseField name="items" type="array">
  Array of VPA objects.
</ResponseField>

<ResponseField name="mobile" type="string">
  Registered mobile number.
</ResponseField>

<ResponseField name="address" type="string">
  UPI VPA address.
</ResponseField>

<ResponseField name="status" type="string">
  Status of the VPA. Possible values:

  * `active`
  * `inactive`
</ResponseField>

<ResponseField name="primary" type="boolean">
  Indicates where the VPA is primary.

  * `true`: VPA is primary.
  * `false`: VPA is not primary.
</ResponseField>
