AddAccountingSystemRelatedAccount
Endpoint URL | https://www.yournetosite.com.au/do/WS/NetoAPI | ||||||||
Method | POST | ||||||||
XML Headers |
|
||||||||
JSON Headers |
|
||||||||
Description | Adds accounts on the Accounting page. | ||||||||
XSD Schema | AddAccountingSystemRelatedAccount XSD | AddAccountingSystemRelatedAccount Response XSD |
AddAccountingSystemRelatedAccount Post
You must specify at least one filter and one OutputSelector in your AddAccountingSystemRelatedAccount request. These will determine the results returned.
XML POST
<?xml version="1.0" encoding="utf-8"?>
<AddAccountingSystemRelatedAccount>
<RelatedAccount>
<accapi_id>(Integer)</accapi_id>
<acc_account_ref>(String)</acc_account_ref>
<acc_account_parent_ref>(String)</acc_account_parent_ref>
<acc_account_name>(String)</acc_account_name>
<acc_account_type>(String)</acc_account_type>
<acc_account_class>(String)</acc_account_class>
<is_asset_acc>(Boolean)</is_asset_acc>
<is_expense_acc>(Boolean)</is_expense_acc>
<is_income_acc>(Boolean)</is_income_acc>
<is_costofsales_acc>(Boolean)</is_costofsales_acc>
<is_bank_acc>(Boolean)</is_bank_acc>
<acc_account_note>(String)</acc_account_note>
<acc_account_active>(Boolean)</acc_account_active>
<acc_account_is_detail>(Boolean)</acc_account_is_detail>
</RelatedAccount>
</AddAccountingSystemRelatedAccount>
JSON POST
{
"RelatedAccount": {
"accapi_id":["Integer"/*, ...*/],
"acc_account_ref":["String"/*, ...*/],
"acc_account_parent_ref":["String"/*, ...*/],
"acc_account_name":["String"/*, ...*/],
"acc_account_type":["String"/*, ...*/],
"acc_account_class":["String"/*, ...*/],
"is_asset_acc":["Boolean"/*, ...*/],
"is_expense_acc":["Boolean"/*, ...*/],
"is_income_acc":["Boolean"/*, ...*/],
"is_costofsales_acc":["Boolean"/*, ...*/],
"is_bank_acc":["Boolean"/*, ...*/],
"acc_account_note":["String"/*, ...*/],
"acc_account_active":["Boolean"/*, ...*/],
"acc_account_is_detail":["Boolean"/*, ...*/]
}
}
<RelatedAccount>
Element Name | Required | Field Type / Options |
---|---|---|
accapi_id | Optional Supports Multiple Elements |
Integer(10) |
acc_account_ref | Optional Supports Multiple Elements |
String(50) |
acc_account_parent_ref | Optional Supports Multiple Elements |
String(50) |
acc_account_name | Optional Supports Multiple Elements |
String(50) |
acc_account_type | Optional Supports Multiple Elements |
String(50) |
acc_account_class | Optional Supports Multiple Elements |
String(50) |
is_asset_acc | Optional Supports Multiple Elements |
Boolean(True, False) |
is_expense_acc | Optional Supports Multiple Elements |
Boolean(True, False) |
is_income_acc | Optional Supports Multiple Elements |
Boolean(True, False) |
is_costofsales_acc | Optional Supports Multiple Elements |
Boolean(True, False) |
is_bank_acc | Optional Supports Multiple Elements |
Boolean(True, False) |
acc_account_note | Optional Supports Multiple Elements |
String(50) |
acc_account_active | Optional Supports Multiple Elements |
Boolean(True, False) |
acc_account_is_detail | Optional Supports Multiple Elements |
Boolean(True, False) |
AddAccountingSystemRelatedAccount Responses
XML Response
<?xml version="1.0" encoding="utf-8"?>
<AddAccountingSystemRelatedAccount>
<RelatedAccounts>
<RelatedAccount>
<acc_account_id>(Integer)</acc_account_id>
</RelatedAccount>
</RelatedAccounts>
<Messages>
<Error>
<Message>(String)</Message>
<SeverityCode>(String)</SeverityCode>
<Description>(String)</Description>
</Error>
<Warning>
<Message>(String)</Message>
<SeverityCode>(String)</SeverityCode>
</Warning>
<Success>
<Message>(String)</Message>
<SeverityCode>(String)</SeverityCode>
</Success>
</Messages>
</AddAccountingSystemRelatedAccount>
JSON Response
{
"RelatedAccounts": [ {
"RelatedAccount": [ {
"acc_account_id":"Integer"
} ]
} ] , "Messages": {
"Error": [ {
"Message":"String",
"SeverityCode":"String",
"Description":"String"
} ] , "Warning": [ {
"Message":"String",
"SeverityCode":"String"
} ] , "Success": [ {
"Message":"String",
"SeverityCode":"String"
} ]
}
}
<RelatedAccounts>
Element Name | Field Type |
---|---|
RelatedAccount | RelatedAccountType |
<RelatedAccount>
Element Name | Field Type |
---|---|
acc_account_id | Integer |
<Messages>
Element Name | Field Type |
---|---|
Error | ErrorType |
Warning | WarningType |
Success | SuccessType |
<Error>
Element Name | Field Type |
---|---|
Message | String |
SeverityCode | String |
Description | String |
<Warning>
Element Name | Field Type |
---|---|
Message | String |
SeverityCode | String |
<Success>
Element Name | Field Type |
---|---|
Message | String |
SeverityCode | String |