Forum Discussion
Thanks Genreve, reading between the lines here: Via the API, the Bill Line on a Service Bill includes the Account ID. However, (via the API) the Bill Line on an Item Bill doesn't include the Account ID. The Account ID is available via the Item only if the the Bill Line includes a reference to one. I take it the "Category", that can be seen on the Items and Services Bill layout, isn't available via the API.
Regards,
Ian
- Genreve_S1 month agoMYOB Moderator
Hi WattsNet,
Thanks for bearing with me on this. I’ve had another look.
In your case, the AccountId should be coming through: it’ll first try to use the account from the item, and if there’s no item on the line, it should fall back to the Category you’ve picked on that line. Because your bill clearly has a Category showing, but the API isn’t giving you an AccountId, it’s not behaving the way it should.
The best next step is to get this in front of the API support team so they can dig into that specific bill and payload. You can log it here (as the developer or via your dev team):
https://apisupport.myob.com/hc/en-us/requests/newRegards,
Genreve
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.