POST api/Accounts
Request Information
URI Parameters
None.
Body Parameters
Account| Name | Description | Type | Additional information |
|---|---|---|---|
| accountID | integer |
None. |
|
| costCorrect | integer |
Range: inclusive between 0 and 1 |
|
| budgetControl | integer |
None. |
|
| parentId | integer |
None. |
|
| accountNumber | string |
Max length: 50 |
|
| accountNumberIndex | string |
Max length: 50 |
|
| segment | string |
Max length: 20 |
|
| name1 | string |
Required Max length: 50 |
|
| name2 | string |
Max length: 50 |
|
| currency | string |
Max length: 3 |
|
| accountType | integer |
None. |
|
| withSettlement | integer |
None. |
|
| withoutSettlement | integer |
None. |
|
| ballanceControl | integer |
None. |
|
| dictionary | integer |
None. |
|
| dictionaryGroup | integer |
None. |
|
| nextAccountId | integer |
None. |
|
| dictionaryType | integer |
None. |
|
| dictionaryId | integer |
None. |
|
| unactive | integer |
None. |
|
| level | integer |
None. |
|
| accountingPeriodSymbol | string |
None. |
|
| accountingPeriodID | integer |
None. |
|
| analitic | integer |
None. |
|
| companyData | CompanyData |
None. |
Request Formats
application/json, text/json
Sample:
{
"accountID": 1,
"costCorrect": 2,
"budgetControl": 3,
"parentId": 4,
"accountNumber": "sample string 5",
"accountNumberIndex": "sample string 6",
"segment": "sample string 7",
"name1": "sample string 8",
"name2": "sample string 9",
"currency": "sample string 10",
"accountType": 11,
"withSettlement": 12,
"withoutSettlement": 13,
"ballanceControl": 14,
"dictionary": 15,
"dictionaryGroup": 16,
"nextAccountId": 17,
"dictionaryType": 18,
"dictionaryId": 19,
"unactive": 20,
"level": 21,
"accountingPeriodSymbol": "sample string 22",
"accountingPeriodID": 23,
"analitic": 24,
"companyData": {
"companyName": "sample string 1",
"databaseName": "sample string 2"
}
}
application/xml, text/xml
Sample:
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
<accountID>1</accountID>
<accountNumber>sample string 5</accountNumber>
<accountNumberIndex>sample string 6</accountNumberIndex>
<accountType>11</accountType>
<accountingPeriodID>23</accountingPeriodID>
<accountingPeriodSymbol>sample string 22</accountingPeriodSymbol>
<analitic>24</analitic>
<ballanceControl>14</ballanceControl>
<budgetControl>3</budgetControl>
<companyData>
<companyName>sample string 1</companyName>
<databaseName>sample string 2</databaseName>
</companyData>
<costCorrect>2</costCorrect>
<currency>sample string 10</currency>
<dictionary>15</dictionary>
<dictionaryGroup>16</dictionaryGroup>
<dictionaryId>19</dictionaryId>
<dictionaryType>18</dictionaryType>
<level>21</level>
<name1>sample string 8</name1>
<name2>sample string 9</name2>
<nextAccountId>17</nextAccountId>
<parentId>4</parentId>
<segment>sample string 7</segment>
<unactive>20</unactive>
<withSettlement>12</withSettlement>
<withoutSettlement>13</withoutSettlement>
</Account>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.