-
Notifications
You must be signed in to change notification settings - Fork 182
Set paymentsOnly=true in xero api call for cash Journal #343
Comments
Hey @VyasNirav, You can't set that parameter via the where clause and unfortunately it has not been implemented as a standalone parameter on the JournalsEndpoint yet. Would like like to add a parameter to the JournalsEndpoint similar to the offset one? |
Hey @MJMortimer , Thank you for reply. Yes, Actually I want journals on a cash basis and for that I read the api document in Journal section it will suggest me that just set PaymentOnly parameter with true then it will return only cash basis journals "Would like like to add a parameter to the JournalsEndpoint similar to the offset one?" Thank's |
@VyasNirav would you be comfortable adding the functionality in a pull request? |
Hey @MJMortimer , I pull request for this changes. |
The functionality has been merged in PR #346. Thanks @VyasNirav |
Thank's @MJMortimer |
Hi,
I want to get journals on cash basis so, I try "paymentsOnly=true" parameter in query but it's not work.
It will return me "No property or field 'paymentsOnly' exists in type 'Journal'"
var tempObj = api.Journals.where("paymentsOnly=true").find();
link : https://developer.xero.com/documentation/api/journals
Thank's
The text was updated successfully, but these errors were encountered: