POST api/COA/EditAccount

Request Information

URI Parameters

None.

Body Parameters

EditAccountViewModel
NameDescriptionTypeAdditional information
AccountID

integer

None.

AccountNo

string

None.

AccountName

string

None.

AccountNameLatin

string

None.

AccountCurrencyID

integer

None.

ParentAccountID

integer

None.

AccountSerialNo

integer

None.

HasChildren

boolean

None.

LeafAccount

boolean

None.

AccountLevel

integer

None.

BankID

integer

None.

CostCenterID

integer

None.

AccountStatusID

integer

None.

AccountNotes

string

None.

OpeningBalanceVoucherID

integer

None.

BalanceSheetGroupID

integer

None.

SequenceInBalanceSheetGroup

integer

None.

ListTypeID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "AccountNo": "sample string 2",
  "AccountName": "sample string 3",
  "AccountNameLatin": "sample string 4",
  "AccountCurrencyID": 5,
  "ParentAccountID": 6,
  "AccountSerialNo": 7,
  "HasChildren": true,
  "LeafAccount": true,
  "AccountLevel": 10,
  "BankID": 11,
  "CostCenterID": 12,
  "AccountStatusID": 13,
  "AccountNotes": "sample string 14",
  "OpeningBalanceVoucherID": 15,
  "BalanceSheetGroupID": 16,
  "SequenceInBalanceSheetGroup": 17,
  "ListTypeID": 18
}

application/xml, text/xml

Sample:
<EditAccountViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels">
  <AccountCurrencyID>5</AccountCurrencyID>
  <AccountID>1</AccountID>
  <AccountLevel>10</AccountLevel>
  <AccountName>sample string 3</AccountName>
  <AccountNameLatin>sample string 4</AccountNameLatin>
  <AccountNo>sample string 2</AccountNo>
  <AccountNotes>sample string 14</AccountNotes>
  <AccountSerialNo>7</AccountSerialNo>
  <AccountStatusID>13</AccountStatusID>
  <BalanceSheetGroupID>16</BalanceSheetGroupID>
  <BankID>11</BankID>
  <CostCenterID>12</CostCenterID>
  <HasChildren>true</HasChildren>
  <LeafAccount>true</LeafAccount>
  <ListTypeID>18</ListTypeID>
  <OpeningBalanceVoucherID>15</OpeningBalanceVoucherID>
  <ParentAccountID>6</ParentAccountID>
  <SequenceInBalanceSheetGroup>17</SequenceInBalanceSheetGroup>
</EditAccountViewModel>

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 'EditAccountViewModel'.

Response Information

Resource Description

ResultModel
NameDescriptionTypeAdditional information
Success

string

None.

ErrorText

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": "sample string 1",
  "ErrorText": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models">
  <Data />
  <ErrorText>sample string 2</ErrorText>
  <Success>sample string 1</Success>
</ResultModel>