POST Accounts
This call is used to create a new account
Request Information
URI Parameters
None.
Body Parameters
CreateAccountRequestCommandName | Type | Description | Additional information |
---|---|---|---|
SiteID | integer |
None. |
|
AccountTypeID | integer |
None. |
|
AccountName | string |
None. |
|
AqillaAccountCode | string |
None. |
|
AqillaSalesTrackingAttributeValue | string |
None. |
|
CsvAccountCode | string |
None. |
|
XeroAccountCode | string |
None. |
|
SageBankAccountCode | string |
None. |
|
QuickBooksAccountCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "SiteID": 1, "AccountTypeID": 2, "AccountName": "sample string 3", "AqillaAccountCode": "sample string 4", "AqillaSalesTrackingAttributeValue": "sample string 5", "CsvAccountCode": "sample string 6", "XeroAccountCode": "sample string 7", "SageBankAccountCode": "sample string 8", "QuickBooksAccountCode": "sample string 9" }
application/xml, text/xml
Sample:
<CreateAccountRequestCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.Accounts.Commands"> <AccountName>sample string 3</AccountName> <AccountTypeID>2</AccountTypeID> <AqillaAccountCode>sample string 4</AqillaAccountCode> <AqillaSalesTrackingAttributeValue>sample string 5</AqillaSalesTrackingAttributeValue> <CsvAccountCode>sample string 6</CsvAccountCode> <QuickBooksAccountCode>sample string 9</QuickBooksAccountCode> <SageBankAccountCode>sample string 8</SageBankAccountCode> <SiteID>1</SiteID> <XeroAccountCode>sample string 7</XeroAccountCode> </CreateAccountRequestCommand>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreateAccountResultDtoName | Type | Description | Additional information |
---|---|---|---|
AccountID | integer |
None. |
|
AccountName | string |
None. |
|
AccountTypeID | integer |
None. |
|
CostCentre | string |
None. |
|
AccountTypeName | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "AccountID": 1, "AccountName": "sample string 2", "AccountTypeID": 3, "CostCentre": "sample string 4", "AccountTypeName": "sample string 5" }
application/xml, text/xml
Sample:
<CreateAccountResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.SignalR.Dtos"> <AccountID>1</AccountID> <AccountName>sample string 2</AccountName> <AccountTypeID>3</AccountTypeID> <AccountTypeName>sample string 5</AccountTypeName> <CostCentre>sample string 4</CostCentre> </CreateAccountResultDto>