POST api/Account
Imports the Account(s) supplied into Sertica Sync Account Import Queue
Required Headers:
Authorization: Basic Http Authorization with valid Sertica credentials
Returns:
200 OK - Account(s) has been accepted.
400 Bad Request - If the received Validation fails to validate. Reason will be supplied in Response Phrase
401 Unauthorized - If credentials are invalid
500 Internal Server Error - Something unexpected failed. A logentry is saved in Sertica System Log if possible
Request Information
URI Parameters
None.
Body Parameters
Accounts| Name | Description | Type | Additional information |
|---|---|---|---|
| Account | Collection of Account |
None. |
Request Formats
application/json, text/json
Sample:
{
"Account": [
{
"AccountNo": "sample string 1",
"Name": "sample string 2",
"IsSumAccount": true,
"Inactive": true,
"FinanceSystemAccountNo": "sample string 5",
"ApprovalType": 1,
"ProjectMandatory": true,
"Remarks": "sample string 7"
},
{
"AccountNo": "sample string 1",
"Name": "sample string 2",
"IsSumAccount": true,
"Inactive": true,
"FinanceSystemAccountNo": "sample string 5",
"ApprovalType": 1,
"ProjectMandatory": true,
"Remarks": "sample string 7"
}
]
}
application/xml, text/xml
Sample:
<Accounts xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ListOfAccounts>
<Account>
<AccountNo>sample string 1</AccountNo>
<Name>sample string 2</Name>
<IsSumAccount>true</IsSumAccount>
<Inactive>true</Inactive>
<FinanceSystemAccountNo>sample string 5</FinanceSystemAccountNo>
<ApprovalType>None</ApprovalType>
<ProjectMandatory>true</ProjectMandatory>
<Remarks>sample string 7</Remarks>
</Account>
<Account>
<AccountNo>sample string 1</AccountNo>
<Name>sample string 2</Name>
<IsSumAccount>true</IsSumAccount>
<Inactive>true</Inactive>
<FinanceSystemAccountNo>sample string 5</FinanceSystemAccountNo>
<ApprovalType>None</ApprovalType>
<ProjectMandatory>true</ProjectMandatory>
<Remarks>sample string 7</Remarks>
</Account>
</ListOfAccounts>
</Accounts>
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. |