v1

latestOpenAPI 3.1.02026-07-2418201.6 MB

Update Transaction

This API is used to update a transaction entry created against a ledger account.

put/v2/ledger/journal/{journal_urn}/transact/{transaction_urn}

Path parameters

journal_urnstring required

Journal URN under which transaction will be created

transaction_urnstring required

Transaction URN generated at the time of creation

Request body

reference_idstring required

Your unique API reference id

purposestring required

Purpose of the transaction

consentboolean required

Consent of creation

statusstring required

Transaction status as desired. Acceptable values - SUCCESS, FAILURE

Response

200

decentroTxnIdstring
statusstring
responseCodestring
messagestring

Example response

{
  "decentroTxnId": "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF",
  "status": "SUCCESS",
  "responseCode": "S00000",
  "message": "Transaction successful",
  "data": {
    "transactionStatus": "SUCCESS",
    "transactionDescription": "Transaction updated successfully",
    "referenceId": "transaction_1",
    "urn": "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF",
    "payerAccount": {
      "urn": "LA0001",
      "referenceId": "ledger_account_1",
      "name": "Ledger Account 1",
      "balance": {
        "available": 70,
        "blocked": 30.5
      }
    },
    "amount": 30.5,
    "payeeAccount": {
      "urn": "LA0002",
      "referenceId": "ledger_account_2",
      "name": "Ledger Account 2",
      "balance": {
        "available": 50
      }
    },
    "purpose": "this is to transact between two accounts",
    "additionalParameters": {
      "parameter1": "value1",
      "parameter2": "value2"
    },
    "currency": "INR",
    "status": "SUCCESS",
    "creationTimestamp": "2022-06-06 21:21:21",
    "transactionTimestamp": "2022-06-06 21:21:21",
    "lastModificationTimestamp": "2022-06-06 22:22:22"
  }
}