GET api/masteraccount
Returns all Master Accounts
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of MasterAccountName | Description | Type | Additional information |
---|---|---|---|
MasterAccountId |
Sedona internal autonumber for the Master Account record; required for Update |
integer |
Required |
MasterAccountCode |
Abbreviated Master Account Code |
string |
None. |
Description |
Description of the Master Account |
string |
String length: inclusive between 0 and 60 |
CustomerId |
Foreign key from AR_Customer table; if supplied on put, updates the Customer record this Master is tied to |
integer |
None. |
Inactive |
Optional; defaults to N if not supplied on put |
boolean |
None. |
MasterAccountBilling |
Optional; defaults to N if not supplied on put |
boolean |
None. |
UseMasterAccountBranch |
Optional; defaults to N if not supplied on put |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "MasterAccountId": 1, "MasterAccountCode": "sample string 2", "Description": "sample string 3", "CustomerId": 4, "Inactive": true, "MasterAccountBilling": true, "UseMasterAccountBranch": true }, { "MasterAccountId": 1, "MasterAccountCode": "sample string 2", "Description": "sample string 3", "CustomerId": 4, "Inactive": true, "MasterAccountBilling": true, "UseMasterAccountBranch": true } ]
application/xml, text/xml
Sample:
<ArrayOfMasterAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models"> <MasterAccount> <CustomerId>4</CustomerId> <Description>sample string 3</Description> <Inactive>true</Inactive> <MasterAccountBilling>true</MasterAccountBilling> <MasterAccountCode>sample string 2</MasterAccountCode> <MasterAccountId>1</MasterAccountId> <UseMasterAccountBranch>true</UseMasterAccountBranch> </MasterAccount> <MasterAccount> <CustomerId>4</CustomerId> <Description>sample string 3</Description> <Inactive>true</Inactive> <MasterAccountBilling>true</MasterAccountBilling> <MasterAccountCode>sample string 2</MasterAccountCode> <MasterAccountId>1</MasterAccountId> <UseMasterAccountBranch>true</UseMasterAccountBranch> </MasterAccount> </ArrayOfMasterAccount>