Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
January 2021
January 2021
Trying to fetch all invoices for a specific Customer
https://ar1.api.myob.com/accountright/.../Sale/Invoice?$filter=DisplayID eq '123456'
returns "The property 'DisplayID' is not an expected property"
I also cannot use Customer.DisplayID, Customer[DisplayID] or Customer{DisplayID}
What am I doing wrong?
Solved! Go to Solution.
January 2021 - last edited January 2021
January 2021 - last edited January 2021
Hi there.
Thank you for reaching out via the forum.
If looking to retrieve data from a field nestled inside an object (Customer), just use a forward slash.
example:
/Sale/Invoice?$filter=Customer/DisplayID eq 'PMN017'
This support note here will help with tips for Odata filtering:
https://apisupport.myob.com/hc/en-us/articles/360000496136-OData-filter-Tips-Tricks?_ga=2.198193832....
Let me know if this solves your issue.
Kind regards
Thanks,
@Tana
MYOB API Specialist
MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's
Did my answer help?
Mark it as a Solution
by
BareBeauty
2 weeks ago
8
96
|
8
|
96
|
||
by
Legends1
3 weeks ago
0
95
|
0
|
95
|
||
0
|
80
|
|||
41
|
3132
|
|||
8
|
509
|