When Posting a payment to the endpoint Sale/CustomerPayment or Purchase/SupplierPayment you may encounter the error:
{
"Errors": [
{
"Name": "AccountNotValid",
"Message": "Account must be bank or credit card type",
"AdditionalDetails": "",
"ErrorCode": 29001,
"Severity": "Error",
"LearnMore": null
}
],
"Information": "Warning, error messages have not been finalised in this release and may change"
}
The error is caused by the setup of the account. When we set up a bank or credit card account we will be given account-type options. This will determine if we can use this account for payments.
When we create an Asset account we can select the following Account types:
Bank
Accounts Receivable
Other Asset
Other Current Asset
Fixed Asset
When we create a Liability account we can select the following Account Types:
Credit Card
Accountd Payable
Other current Liability
Long Term Liability
Other liability
In order to be able to use the account for payments this needs to be set up as Type: Bank or Credit Card if this is set to another account type the API will return the error AccountNotValid.
In order to check the setup of the account you can complete a get request to the endpoint /GeneralLedger/Account.
"Classification": "Asset",
"Type": "Bank",
Account classifications and types
The accounts list groups accounts into eight classifications—Asset, Liability, Equity, Income, Cost of Sales, Expense, Other Income and Other Expense. Within each account classification there is at least one account type.
Account classifications and types are described in the following table.
Classification | Type | Description |
---|---|---|
Asset |
Bank |
Money in the bank, for example, in a cheque or savings account. |
Accounts Receivable |
Money owed to you by your customers. |
|
Other Current Asset |
Assets that, if required, can be turned into cash within a year. These may include your term deposits. |
|
Fixed Asset |
Assets which have a long life, for example, buildings, cars and computers. Fixed assets are usually depreciated. |
|
Other Asset |
Other assets you own such as loans made to others and goodwill. |
|
Liability |
Credit Card |
Repayments required to service credit card debt. |
Accounts Payable |
Money owed by you to your suppliers. |
|
Other Current Liability |
Money owed by you that is due in less than a year, for example, GST. |
|
Long Term Liability |
Money owed by you that is due in more than one year, for example, a business loan. |
|
Other Liability |
Other money you owe. |
|
Equity |
Equity |
The business’s net worth, that is, its assets minus its liabilities. Common equity accounts are current year earnings, retained earnings and shareholders’ equity. |
Income |
Income |
Revenue from the sale of goods and services. |
Cost of Sales |
Cost of Sales |
The direct cost of selling your goods and providing services, for example, purchase costs and freight charges. |
Expense |
Expense |
The day-to-day expenses of running your business, for example, utility bills, employee wages and cleaning. |
Other Income |
Other Income |
Other revenues, for example, interest earned on savings and dividends paid from shares. |
Other Expense |
Other Expense |
Other expenses, for example, interest charged. |
Create a Header and a detailed account - http://help.myob.com/wiki/x/EYBW
If you have any questions, feel to log a ticket with the Customisation & Integration Team.
Comments
0 comments
Article is closed for comments.