---
updatedAt: 2026-11-12T11:26:11.000Z
agentTools:
  projectIndex: https://docs.decentro.tech/llms.txt
---

# Load / Unload Virtual Account

> 🙌 Important Note
>
> Please use only **Staging Credentials** on each API Reference page to test the APIs directly from our Documentation.

### API Endpoints

| Environment       | Endpoint                                                                     |
| :---------------- | :--------------------------------------------------------------------------- |
| Staging / Sandbox | <https://in.staging.decentro.tech/v2/banking/virtual/account/update_balance> |
| Production        | <https://in.decentro.tech/v2/banking/virtual/account/update_balance>         |

This API can be used to record Debit/Credit transactions into your Virtual Account.

**Note:** "It is mandatory that your setup is configured on BaaS with decentro, for queries please reach out to <support@decentro.tech.>”

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "decentro-staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://in.staging.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v2/banking/virtual/account/update_balance": {
      "post": {
        "summary": "Load / Unload Virtual Account",
        "description": "",
        "operationId": "virtual_accounts_api-load-unload-va",
        "parameters": [
          {
            "name": "client_id",
            "in": "header",
            "description": "<YOUR_CLIENT_ID>",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "description": "<YOUR_CLIENT_SECRET>",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "module_secret",
            "in": "header",
            "description": "<YOUR_CORE_BANKING_MODULE_SECRET>",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_secret",
            "in": "header",
            "description": "<YOUR_CHOSEN_PROVIDER_SECRET>",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reference_id",
                  "action",
                  "purpose",
                  "account_number",
                  "amount",
                  "bank_reference_number",
                  "transfer_type"
                ],
                "properties": {
                  "reference_id": {
                    "type": "string",
                    "description": "Your unique reference id"
                  },
                  "action": {
                    "type": "string",
                    "description": "Debit/Credit, Mode of transaction record"
                  },
                  "purpose": {
                    "type": "string",
                    "description": "Purpose message for the record"
                  },
                  "account_number": {
                    "type": "string",
                    "description": "Virtual account where transaction is to be recorded."
                  },
                  "amount": {
                    "type": "number",
                    "description": "Amount for the transaction",
                    "format": "float"
                  },
                  "bank_reference_number": {
                    "type": "string",
                    "description": "Bank Reference Number of the transaction"
                  },
                  "transfer_type": {
                    "type": "string",
                    "description": "Transfer type of the record (IMPS/NEFT/RTGS/UPI)"
                  }
                }
              },
              "examples": {
                "Succes: Load Virtual Account": {
                  "value": {
                    "reference_id": "UUID",
                    "action": "CREDIT",
                    "purpose": "sample",
                    "account_number": "46XXXXXXXXXXXXX2",
                    "amount": 1,
                    "bank_reference_number": "ABC123",
                    "transfer_type": "IMPS"
                  }
                },
                "Success: Unload Virtual Account": {
                  "value": {
                    "reference_id": "UUID",
                    "action": "DEBIT",
                    "purpose": "sample",
                    "account_number": "46XXXXXXXXXXXXX2",
                    "amount": 1,
                    "bank_reference_number": "ABC123",
                    "transfer_type": "IMPS"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Success - Load VA": {
                    "value": "{\n    \"decentroTxnId\": \"DCTRTXXXXXXXXXXXXXXXXX\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"Transaction successful\",\n    \"data\": {\n        \"status\": \"success\",\n        \"newBalance\": 1.00\n    }\n}"
                  },
                  "Success - Unload VA": {
                    "value": "{\n    \"decentroTxnId\": \"DCTRTXXXXXXXXXXXXXXXXX\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"Transaction successful\",\n    \"data\": {\n        \"status\": \"success\",\n        \"newBalance\": 1.00\n    }\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Success - Load VA",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DCTRTXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "S00000"
                        },
                        "message": {
                          "type": "string",
                          "example": "Transaction successful"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "example": "success"
                            },
                            "newBalance": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Success - Unload VA",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DCTRTXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "S00000"
                        },
                        "message": {
                          "type": "string",
                          "example": "Transaction successful"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "example": "success"
                            },
                            "newBalance": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Failure - Validation error": {
                    "value": "{\n    \"decentroTxnId\": \"85E646D76AC841B58F0654754D29AE32\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"No account found for the value `account_number`. Please check the account and try again.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "85E646D76AC841B58F0654754D29AE32"
                    },
                    "status": {
                      "type": "string",
                      "example": "FAILURE"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "E00009"
                    },
                    "message": {
                      "type": "string",
                      "example": "No account found for the value `account_number`. Please check the account and try again."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```