POST api/Accounts/InsertChartOfAccount?userId={userId}&isOpen={isOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
Required |
|
| isOpen | boolean |
Required |
Body Parameters
ChartOfAccountModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AccountNo | string |
None. |
|
| UserNo | integer |
None. |
|
| AccountName | string |
None. |
|
| AccountType | string |
None. |
|
| AccountDepth | integer |
None. |
|
| Narration | string |
None. |
|
| ParentAccountNo | string |
None. |
|
| OpeningDebit | decimal number |
None. |
|
| OpeningCredit | decimal number |
None. |
|
| AdjustedDebit | decimal number |
None. |
|
| AdjustedCredit | decimal number |
None. |
|
| IsDetailed | boolean |
None. |
|
| IsLocked | boolean |
None. |
|
| IsPosted | boolean |
None. |
|
| IsEditable | boolean |
None. |
|
| BalFlag | boolean |
None. |
|
| PLFlag | string |
None. |
|
| ExpFlag | boolean |
None. |
|
| EntryDate | date |
None. |
|
| Life | decimal number |
None. |
|
| ResidualValue | decimal number |
None. |
|
| AccountNameUrdu | string |
None. |
|
| IsSold | boolean |
None. |
|
| InActive | boolean |
None. |
|
| OfficeID | integer |
None. |
|
| Bank | string |
None. |
|
| ManualCode | integer |
None. |
|
| ParentAccountName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AccountNo": "sample string 1",
"UserNo": 2,
"AccountName": "sample string 3",
"AccountType": "sample string 4",
"AccountDepth": 5,
"Narration": "sample string 6",
"ParentAccountNo": "sample string 7",
"OpeningDebit": 8.0,
"OpeningCredit": 9.0,
"AdjustedDebit": 10.0,
"AdjustedCredit": 11.0,
"IsDetailed": true,
"IsLocked": true,
"IsPosted": true,
"IsEditable": true,
"BalFlag": true,
"PLFlag": "sample string 17",
"ExpFlag": true,
"EntryDate": "2025-12-16T08:19:31.1159944+05:00",
"Life": 20.0,
"ResidualValue": 21.0,
"AccountNameUrdu": "sample string 22",
"IsSold": true,
"InActive": true,
"OfficeID": 25,
"Bank": "sample string 26",
"ManualCode": 27,
"ParentAccountName": "sample string 28"
}
application/xml, text/xml
Sample:
<ChartOfAccountModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models"> <AccountDepth>5</AccountDepth> <AccountName>sample string 3</AccountName> <AccountNameUrdu>sample string 22</AccountNameUrdu> <AccountNo>sample string 1</AccountNo> <AccountType>sample string 4</AccountType> <AdjustedCredit>11</AdjustedCredit> <AdjustedDebit>10</AdjustedDebit> <BalFlag>true</BalFlag> <Bank>sample string 26</Bank> <EntryDate>2025-12-16T08:19:31.1159944+05:00</EntryDate> <ExpFlag>true</ExpFlag> <InActive>true</InActive> <IsDetailed>true</IsDetailed> <IsEditable>true</IsEditable> <IsLocked>true</IsLocked> <IsPosted>true</IsPosted> <IsSold>true</IsSold> <Life>20</Life> <ManualCode>27</ManualCode> <Narration>sample string 6</Narration> <OfficeID>25</OfficeID> <OpeningCredit>9</OpeningCredit> <OpeningDebit>8</OpeningDebit> <PLFlag>sample string 17</PLFlag> <ParentAccountName>sample string 28</ParentAccountName> <ParentAccountNo>sample string 7</ParentAccountNo> <ResidualValue>21</ResidualValue> <UserNo>2</UserNo> </ChartOfAccountModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |