GET api/GetAccounts?AccountNumber={AccountNumber}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AccountNumber

string

Default value is

Body Parameters

None.

Response Information

Resource Description

Collection of MYOBAccounts
NameDescriptionTypeAdditional information
AccountID

integer

None.

ParentAccountID

integer

None.

IsInactive

string

None.

AccountName

string

None.

AccountNumber

string

None.

TaxCodeID

integer

None.

CurrencyID

integer

None.

CurrencyExchangeAccountID

integer

None.

AccountClassificationID

string

None.

SubAccountClassificationID

string

None.

AccountLevel

integer

None.

AccountTypeID

string

None.

LastChequeNumber

integer

None.

IsReconciled

string

None.

LastReconciledDate

date

None.

StatementBalance

decimal number

None.

IsCreditBalance

string

None.

OpeningAccountBalance

decimal number

None.

CurrentAccountBalance

decimal number

None.

PreLastYearActivity

decimal number

None.

LastYearOpeningBalance

decimal number

None.

ThisYearOpeningBalance

decimal number

None.

PostThisYearActivity

decimal number

None.

AccountDescription

string

None.

IsTotal

string

None.

CashFlowClassificationID

string

None.

BSBCode

string

None.

BankAccountNumber

string

None.

BankAccountName

string

None.

CompanyTradingName

string

None.

CreateBankFiles

string

None.

BankCode

string

None.

DirectEntryUserID

string

None.

IsSelfBalancing

string

None.

StatementParticulars

string

None.

StatementCode

string

None.

StatementReference

string

None.

AccountantLinkCode

string

None.

MYOBDivision

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AccountID": 1,
    "ParentAccountID": 1,
    "IsInactive": "sample string 2",
    "AccountName": "sample string 3",
    "AccountNumber": "sample string 4",
    "TaxCodeID": 1,
    "CurrencyID": 1,
    "CurrencyExchangeAccountID": 1,
    "AccountClassificationID": "sample string 5",
    "SubAccountClassificationID": "sample string 6",
    "AccountLevel": 1,
    "AccountTypeID": "sample string 7",
    "LastChequeNumber": 1,
    "IsReconciled": "sample string 8",
    "LastReconciledDate": "2025-04-04T13:12:46.1773376+10:00",
    "StatementBalance": 1.1,
    "IsCreditBalance": "sample string 9",
    "OpeningAccountBalance": 1.1,
    "CurrentAccountBalance": 1.1,
    "PreLastYearActivity": 1.1,
    "LastYearOpeningBalance": 1.1,
    "ThisYearOpeningBalance": 1.1,
    "PostThisYearActivity": 1.1,
    "AccountDescription": "sample string 10",
    "IsTotal": "sample string 11",
    "CashFlowClassificationID": "sample string 12",
    "BSBCode": "sample string 13",
    "BankAccountNumber": "sample string 14",
    "BankAccountName": "sample string 15",
    "CompanyTradingName": "sample string 16",
    "CreateBankFiles": "sample string 17",
    "BankCode": "sample string 18",
    "DirectEntryUserID": "sample string 19",
    "IsSelfBalancing": "sample string 20",
    "StatementParticulars": "sample string 21",
    "StatementCode": "sample string 22",
    "StatementReference": "sample string 23",
    "AccountantLinkCode": "sample string 24",
    "MYOBDivision": 25
  },
  {
    "AccountID": 1,
    "ParentAccountID": 1,
    "IsInactive": "sample string 2",
    "AccountName": "sample string 3",
    "AccountNumber": "sample string 4",
    "TaxCodeID": 1,
    "CurrencyID": 1,
    "CurrencyExchangeAccountID": 1,
    "AccountClassificationID": "sample string 5",
    "SubAccountClassificationID": "sample string 6",
    "AccountLevel": 1,
    "AccountTypeID": "sample string 7",
    "LastChequeNumber": 1,
    "IsReconciled": "sample string 8",
    "LastReconciledDate": "2025-04-04T13:12:46.1773376+10:00",
    "StatementBalance": 1.1,
    "IsCreditBalance": "sample string 9",
    "OpeningAccountBalance": 1.1,
    "CurrentAccountBalance": 1.1,
    "PreLastYearActivity": 1.1,
    "LastYearOpeningBalance": 1.1,
    "ThisYearOpeningBalance": 1.1,
    "PostThisYearActivity": 1.1,
    "AccountDescription": "sample string 10",
    "IsTotal": "sample string 11",
    "CashFlowClassificationID": "sample string 12",
    "BSBCode": "sample string 13",
    "BankAccountNumber": "sample string 14",
    "BankAccountName": "sample string 15",
    "CompanyTradingName": "sample string 16",
    "CreateBankFiles": "sample string 17",
    "BankCode": "sample string 18",
    "DirectEntryUserID": "sample string 19",
    "IsSelfBalancing": "sample string 20",
    "StatementParticulars": "sample string 21",
    "StatementCode": "sample string 22",
    "StatementReference": "sample string 23",
    "AccountantLinkCode": "sample string 24",
    "MYOBDivision": 25
  }
]

text/html

Sample:
[{"AccountID":1,"ParentAccountID":1,"IsInactive":"sample string 2","AccountName":"sample string 3","AccountNumber":"sample string 4","TaxCodeID":1,"CurrencyID":1,"CurrencyExchangeAccountID":1,"AccountClassificationID":"sample string 5","SubAccountClassificationID":"sample string 6","AccountLevel":1,"AccountTypeID":"sample string 7","LastChequeNumber":1,"IsReconciled":"sample string 8","LastReconciledDate":"2025-04-04T13:12:46.1773376+10:00","StatementBalance":1.1,"IsCreditBalance":"sample string 9","OpeningAccountBalance":1.1,"CurrentAccountBalance":1.1,"PreLastYearActivity":1.1,"LastYearOpeningBalance":1.1,"ThisYearOpeningBalance":1.1,"PostThisYearActivity":1.1,"AccountDescription":"sample string 10","IsTotal":"sample string 11","CashFlowClassificationID":"sample string 12","BSBCode":"sample string 13","BankAccountNumber":"sample string 14","BankAccountName":"sample string 15","CompanyTradingName":"sample string 16","CreateBankFiles":"sample string 17","BankCode":"sample string 18","DirectEntryUserID":"sample string 19","IsSelfBalancing":"sample string 20","StatementParticulars":"sample string 21","StatementCode":"sample string 22","StatementReference":"sample string 23","AccountantLinkCode":"sample string 24","MYOBDivision":25},{"AccountID":1,"ParentAccountID":1,"IsInactive":"sample string 2","AccountName":"sample string 3","AccountNumber":"sample string 4","TaxCodeID":1,"CurrencyID":1,"CurrencyExchangeAccountID":1,"AccountClassificationID":"sample string 5","SubAccountClassificationID":"sample string 6","AccountLevel":1,"AccountTypeID":"sample string 7","LastChequeNumber":1,"IsReconciled":"sample string 8","LastReconciledDate":"2025-04-04T13:12:46.1773376+10:00","StatementBalance":1.1,"IsCreditBalance":"sample string 9","OpeningAccountBalance":1.1,"CurrentAccountBalance":1.1,"PreLastYearActivity":1.1,"LastYearOpeningBalance":1.1,"ThisYearOpeningBalance":1.1,"PostThisYearActivity":1.1,"AccountDescription":"sample string 10","IsTotal":"sample string 11","CashFlowClassificationID":"sample string 12","BSBCode":"sample string 13","BankAccountNumber":"sample string 14","BankAccountName":"sample string 15","CompanyTradingName":"sample string 16","CreateBankFiles":"sample string 17","BankCode":"sample string 18","DirectEntryUserID":"sample string 19","IsSelfBalancing":"sample string 20","StatementParticulars":"sample string 21","StatementCode":"sample string 22","StatementReference":"sample string 23","AccountantLinkCode":"sample string 24","MYOBDivision":25}]

application/xml, text/xml

Sample:
<ArrayOfMYOBAccounts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iHubLibrary.DB.Models">
  <MYOBAccounts>
    <AccountClassificationID>sample string 5</AccountClassificationID>
    <AccountDescription>sample string 10</AccountDescription>
    <AccountID>1</AccountID>
    <AccountLevel>1</AccountLevel>
    <AccountName>sample string 3</AccountName>
    <AccountNumber>sample string 4</AccountNumber>
    <AccountTypeID>sample string 7</AccountTypeID>
    <AccountantLinkCode>sample string 24</AccountantLinkCode>
    <BSBCode>sample string 13</BSBCode>
    <BankAccountName>sample string 15</BankAccountName>
    <BankAccountNumber>sample string 14</BankAccountNumber>
    <BankCode>sample string 18</BankCode>
    <CashFlowClassificationID>sample string 12</CashFlowClassificationID>
    <CompanyTradingName>sample string 16</CompanyTradingName>
    <CreateBankFiles>sample string 17</CreateBankFiles>
    <CurrencyExchangeAccountID>1</CurrencyExchangeAccountID>
    <CurrencyID>1</CurrencyID>
    <CurrentAccountBalance>1.1</CurrentAccountBalance>
    <DirectEntryUserID>sample string 19</DirectEntryUserID>
    <IsCreditBalance>sample string 9</IsCreditBalance>
    <IsInactive>sample string 2</IsInactive>
    <IsReconciled>sample string 8</IsReconciled>
    <IsSelfBalancing>sample string 20</IsSelfBalancing>
    <IsTotal>sample string 11</IsTotal>
    <LastChequeNumber>1</LastChequeNumber>
    <LastReconciledDate>2025-04-04T13:12:46.1773376+10:00</LastReconciledDate>
    <LastYearOpeningBalance>1.1</LastYearOpeningBalance>
    <MYOBDivision>25</MYOBDivision>
    <OpeningAccountBalance>1.1</OpeningAccountBalance>
    <ParentAccountID>1</ParentAccountID>
    <PostThisYearActivity>1.1</PostThisYearActivity>
    <PreLastYearActivity>1.1</PreLastYearActivity>
    <StatementBalance>1.1</StatementBalance>
    <StatementCode>sample string 22</StatementCode>
    <StatementParticulars>sample string 21</StatementParticulars>
    <StatementReference>sample string 23</StatementReference>
    <SubAccountClassificationID>sample string 6</SubAccountClassificationID>
    <TaxCodeID>1</TaxCodeID>
    <ThisYearOpeningBalance>1.1</ThisYearOpeningBalance>
  </MYOBAccounts>
  <MYOBAccounts>
    <AccountClassificationID>sample string 5</AccountClassificationID>
    <AccountDescription>sample string 10</AccountDescription>
    <AccountID>1</AccountID>
    <AccountLevel>1</AccountLevel>
    <AccountName>sample string 3</AccountName>
    <AccountNumber>sample string 4</AccountNumber>
    <AccountTypeID>sample string 7</AccountTypeID>
    <AccountantLinkCode>sample string 24</AccountantLinkCode>
    <BSBCode>sample string 13</BSBCode>
    <BankAccountName>sample string 15</BankAccountName>
    <BankAccountNumber>sample string 14</BankAccountNumber>
    <BankCode>sample string 18</BankCode>
    <CashFlowClassificationID>sample string 12</CashFlowClassificationID>
    <CompanyTradingName>sample string 16</CompanyTradingName>
    <CreateBankFiles>sample string 17</CreateBankFiles>
    <CurrencyExchangeAccountID>1</CurrencyExchangeAccountID>
    <CurrencyID>1</CurrencyID>
    <CurrentAccountBalance>1.1</CurrentAccountBalance>
    <DirectEntryUserID>sample string 19</DirectEntryUserID>
    <IsCreditBalance>sample string 9</IsCreditBalance>
    <IsInactive>sample string 2</IsInactive>
    <IsReconciled>sample string 8</IsReconciled>
    <IsSelfBalancing>sample string 20</IsSelfBalancing>
    <IsTotal>sample string 11</IsTotal>
    <LastChequeNumber>1</LastChequeNumber>
    <LastReconciledDate>2025-04-04T13:12:46.1773376+10:00</LastReconciledDate>
    <LastYearOpeningBalance>1.1</LastYearOpeningBalance>
    <MYOBDivision>25</MYOBDivision>
    <OpeningAccountBalance>1.1</OpeningAccountBalance>
    <ParentAccountID>1</ParentAccountID>
    <PostThisYearActivity>1.1</PostThisYearActivity>
    <PreLastYearActivity>1.1</PreLastYearActivity>
    <StatementBalance>1.1</StatementBalance>
    <StatementCode>sample string 22</StatementCode>
    <StatementParticulars>sample string 21</StatementParticulars>
    <StatementReference>sample string 23</StatementReference>
    <SubAccountClassificationID>sample string 6</SubAccountClassificationID>
    <TaxCodeID>1</TaxCodeID>
    <ThisYearOpeningBalance>1.1</ThisYearOpeningBalance>
  </MYOBAccounts>
</ArrayOfMYOBAccounts>