POST api/AccountsEntry/PostVoucherEntry

Request Information

URI Parameters

None.

Body Parameters

AccountEntryMaster
NameDescriptionTypeAdditional information
companyID

integer

None.

companyName

string

None.

voucherID

integer

None.

yearNo

integer

None.

voucherType

string

None.

entryDate

date

None.

narration

string

None.

voucherClientID

string

None.

paymentMode

string

None.

paymentReference

string

None.

activeStatus

character

None.

items

Collection of AccountEntryTran

None.

debitItems

Collection of AccountEntryTran

None.

creditItems

Collection of AccountEntryTran

None.

voucherHTML

string

None.

CreateDateTime

string

None.

CreateUserID

string

None.

ModifiedDateTime

string

None.

ModifiedUserID

string

None.

RequestType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "companyID": 1,
  "companyName": "sample string 2",
  "voucherID": 3,
  "yearNo": 4,
  "voucherType": "sample string 5",
  "entryDate": "2025-12-06T06:24:32.8744676+01:00",
  "narration": "sample string 7",
  "voucherClientID": "sample string 8",
  "paymentMode": "sample string 9",
  "paymentReference": "sample string 10",
  "activeStatus": "A",
  "items": [
    {
      "slNo": 1,
      "accountType": "sample string 2",
      "accountID": 3,
      "amount": 4.0,
      "accountName": "sample string 5"
    },
    {
      "slNo": 1,
      "accountType": "sample string 2",
      "accountID": 3,
      "amount": 4.0,
      "accountName": "sample string 5"
    }
  ],
  "debitItems": [
    {
      "slNo": 1,
      "accountType": "sample string 2",
      "accountID": 3,
      "amount": 4.0,
      "accountName": "sample string 5"
    },
    {
      "slNo": 1,
      "accountType": "sample string 2",
      "accountID": 3,
      "amount": 4.0,
      "accountName": "sample string 5"
    }
  ],
  "creditItems": [
    {
      "slNo": 1,
      "accountType": "sample string 2",
      "accountID": 3,
      "amount": 4.0,
      "accountName": "sample string 5"
    },
    {
      "slNo": 1,
      "accountType": "sample string 2",
      "accountID": 3,
      "amount": 4.0,
      "accountName": "sample string 5"
    }
  ],
  "voucherHTML": "sample string 12",
  "CreateDateTime": "12/6/2025 6:24:32 AM",
  "CreateUserID": "sample string 13",
  "ModifiedDateTime": "12/6/2025 6:24:32 AM",
  "ModifiedUserID": "sample string 14",
  "RequestType": "sample string 15"
}

application/xml, text/xml

Sample:
<AccountEntryMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accounts.Model">
  <CreateUserID>sample string 13</CreateUserID>
  <ModifiedUserID>sample string 14</ModifiedUserID>
  <RequestType>sample string 15</RequestType>
  <activeStatus>65</activeStatus>
  <companyID>1</companyID>
  <companyName>sample string 2</companyName>
  <creditItems>
    <AccountEntryTran>
      <accountID>3</accountID>
      <accountName>sample string 5</accountName>
      <accountType>sample string 2</accountType>
      <amount>4</amount>
      <slNo>1</slNo>
    </AccountEntryTran>
    <AccountEntryTran>
      <accountID>3</accountID>
      <accountName>sample string 5</accountName>
      <accountType>sample string 2</accountType>
      <amount>4</amount>
      <slNo>1</slNo>
    </AccountEntryTran>
  </creditItems>
  <debitItems>
    <AccountEntryTran>
      <accountID>3</accountID>
      <accountName>sample string 5</accountName>
      <accountType>sample string 2</accountType>
      <amount>4</amount>
      <slNo>1</slNo>
    </AccountEntryTran>
    <AccountEntryTran>
      <accountID>3</accountID>
      <accountName>sample string 5</accountName>
      <accountType>sample string 2</accountType>
      <amount>4</amount>
      <slNo>1</slNo>
    </AccountEntryTran>
  </debitItems>
  <entryDate>2025-12-06T06:24:32.8744676+01:00</entryDate>
  <items>
    <AccountEntryTran>
      <accountID>3</accountID>
      <accountName>sample string 5</accountName>
      <accountType>sample string 2</accountType>
      <amount>4</amount>
      <slNo>1</slNo>
    </AccountEntryTran>
    <AccountEntryTran>
      <accountID>3</accountID>
      <accountName>sample string 5</accountName>
      <accountType>sample string 2</accountType>
      <amount>4</amount>
      <slNo>1</slNo>
    </AccountEntryTran>
  </items>
  <narration>sample string 7</narration>
  <paymentMode>sample string 9</paymentMode>
  <paymentReference>sample string 10</paymentReference>
  <voucherClientID>sample string 8</voucherClientID>
  <voucherHTML>sample string 12</voucherHTML>
  <voucherID>3</voucherID>
  <voucherType>sample string 5</voucherType>
  <yearNo>4</yearNo>
</AccountEntryMaster>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.