When Posting an Item Invoice to MYOB you may encounter the following error:
{
"Errors": [
{
"Name": "AccountCannotBeSetForInventoriedItems",
"Message": "Account cannot be set for inventoried items",
"AdditionalDetails": "Account",
"ErrorCode": 3014,
"Severity": "Error",
"LearnMore": null
}
],
"Information": "Warning, error messages have not been finalised in this release and may change"
}
This error is caused by the miss matching of the account you have used in the body request vs the account you have linked to the Item setup from the UI. The Account used for the Item setup needs to match the API.
Item Sale: Income account for tracking sales
"Account": {
"UID": "6132e2df-758b-42ed-9d42-fc421d81d47f",
"Name": "Sales - Water Cooler",
"DisplayID": "4-1300",
"URI": "https://arl2.api.myob.com/accountright/dcc6be7f-6e9e-4c5e-b14d-470e702606fc/GeneralLedger/Account/7fe0ea59-d595-4e58-9701-994f9f8ef8f6"
"Account": {
"UID": "2d5f0fb5-d781-444e-889d-1f624b849f2f",
"Name": "Equipment",
"DisplayID": "5-1100",
"URI": "https://arl2.api.myob.com/accountright/dcc6be7f-6e9e-4c5e-b14d-470e702606fc/GeneralLedger/Account/2d5f0fb5-d781-444e-889d-1f624b849f2f"
To check what account is linked to the Item via the API or UI you can use the below location or endpoint
AccountRight UI location:
1. Inventory
2. Item
3. Select the Item
API endpoint:
"CostOfSalesAccount": {
"UID": "2d5f0fb5-d781-444e-889d-1f624b849f2f",
"Name": "Equipment",
"DisplayID": "5-1100",
"URI": "https://arl2.api.myob.com/accountright/dcc6be7f-6e9e-4c5e-b14d-470e702606fc/GeneralLedger/Account/2d5f0fb5-d781-444e-889d-1f624b849f2f"
},
"IncomeAccount": {
"UID": "6132e2df-758b-42ed-9d42-fc421d81d47f",
"Name": "Sales - Water Cooler",
"DisplayID": "4-1300",
"URI": "https://arl2.api.myob.com/accountright/dcc6be7f-6e9e-4c5e-b14d-470e702606fc/GeneralLedger/Account/6132e2df-758b-42ed-9d42-fc421d81d47f"
},
If you have any questions, feel to log a ticket with the Customisation & Integration Team.
Comments
0 comments
Article is closed for comments.