v1

latestOpenAPI 3.1.02026-07-2418201.6 MB

Update Ledger Account

This API is used to update the status of a Ledger account

put/v2/ledger/journal/{journal_urn}/account/{account_urn}

Path parameters

journal_urnstring required

Journal URN received from Decentro at the time of creation under which a ledger account exists that needs to be updated

account_urnstring required

Account URN received from Decentro at the time of creation against the ledger account that needs to be updated

Headers

client_idstring required

Decentro assigned client_id for the company

client_secretstring required

Decentro assigned client_secret for the company

module_secretstring required

Decentro assigned module_secret for the company

Request body

reference_idstring required

Your unique API reference id

statusstring required

Status of the ledger account. Accepted value - ACTIVE, INACTIVE, HOLD

purposestring required

Purpose of the ledger account

consentboolean required

Consent of creation

Response

200

decentroTxnIdstring
statusstring
responseCodestring
messagestring

Example response

{
  "decentroTxnId": "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF",
  "status": "SUCCESS",
  "responseCode": "S00000",
  "message": "Transaction successful",
  "data": {
    "transactionStatus": "SUCCESS",
    "transactionDescription": "Ledger account updated successfully",
    "urn": "LA0001",
    "referenceId": "ledger_account_1",
    "name": "Ledger Account 1",
    "journal": {
      "urn": "JOURNAL001",
      "referenceId": "test_journal_1",
      "name": "Test journal 1"
    },
    "consumer": {
      "urn": "C0001",
      "referenceId": "consumer_1",
      "name": "Consumer 1"
    },
    "purpose": "this is to create a ledger account",
    "additionalParameters": {
      "parameter1": "value1",
      "parameter2": "value2"
    },
    "currency": "INR",
    "balance": {
      "available": 70,
      "blocked": 30.5
    },
    "status": "INACTIVE",
    "creationTimestamp": "2022-06-06 21:21:21",
    "lastModificationTimestamp": "2022-06-06 22:22:22"
  }
}