POST api/CashBank/Update

Request Information

URI Parameters

None.

Body Parameters

CashBankEntry
NameDescriptionTypeAdditional information
CashBankEntryId

integer

None.

VoucherNo

string

None.

VoucherDate

date

None.

EntryType

string

None.

HeaderAccountId

integer

None.

Narration

string

None.

Amount

decimal number

None.

CreatedBy

integer

None.

CreatedOn

date

None.

AccountName

string

None.

Details

Collection of CashBankEntryDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "CashBankEntryId": 1,
  "VoucherNo": "sample string 2",
  "VoucherDate": "2026-01-30T02:38:04.443506+05:30",
  "EntryType": "sample string 4",
  "HeaderAccountId": 5,
  "Narration": "sample string 6",
  "Amount": 7.0,
  "CreatedBy": 8,
  "CreatedOn": "2026-01-30T02:38:04.443506+05:30",
  "AccountName": "sample string 10",
  "Details": [
    {
      "Id": 1,
      "CashBankEntryId": 2,
      "AccountId": 3,
      "AccountName": "sample string 4",
      "Narration": "sample string 5",
      "Amount": 6.0,
      "CrDr": "sample string 7",
      "ChequeOrUTR": "sample string 8",
      "BankName": "sample string 9",
      "Branch": "sample string 10"
    },
    {
      "Id": 1,
      "CashBankEntryId": 2,
      "AccountId": 3,
      "AccountName": "sample string 4",
      "Narration": "sample string 5",
      "Amount": 6.0,
      "CrDr": "sample string 7",
      "ChequeOrUTR": "sample string 8",
      "BankName": "sample string 9",
      "Branch": "sample string 10"
    }
  ]
}

application/xml, text/xml

Sample:
<CashBankEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NSG_Accountings.MC">
  <AccountName>sample string 10</AccountName>
  <Amount>7</Amount>
  <CashBankEntryId>1</CashBankEntryId>
  <CreatedBy>8</CreatedBy>
  <CreatedOn>2026-01-30T02:38:04.443506+05:30</CreatedOn>
  <Details>
    <CashBankEntryDetail>
      <AccountId>3</AccountId>
      <AccountName>sample string 4</AccountName>
      <Amount>6</Amount>
      <BankName>sample string 9</BankName>
      <Branch>sample string 10</Branch>
      <CashBankEntryId>2</CashBankEntryId>
      <ChequeOrUTR>sample string 8</ChequeOrUTR>
      <CrDr>sample string 7</CrDr>
      <Id>1</Id>
      <Narration>sample string 5</Narration>
    </CashBankEntryDetail>
    <CashBankEntryDetail>
      <AccountId>3</AccountId>
      <AccountName>sample string 4</AccountName>
      <Amount>6</Amount>
      <BankName>sample string 9</BankName>
      <Branch>sample string 10</Branch>
      <CashBankEntryId>2</CashBankEntryId>
      <ChequeOrUTR>sample string 8</ChequeOrUTR>
      <CrDr>sample string 7</CrDr>
      <Id>1</Id>
      <Narration>sample string 5</Narration>
    </CashBankEntryDetail>
  </Details>
  <EntryType>sample string 4</EntryType>
  <HeaderAccountId>5</HeaderAccountId>
  <Narration>sample string 6</Narration>
  <VoucherDate>2026-01-30T02:38:04.443506+05:30</VoucherDate>
  <VoucherNo>sample string 2</VoucherNo>
</CashBankEntry>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CashBankEntry'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.