return the lines array in the CreditNotes GET using WHERE query
When using the CreditNote API. A get using the CreditNoteID returns the line array, but when you use a WHERE clause it does not return the lines array. Having said that, it seems to be intermittent.
Yesterday I was able to do both these with the same ID:
a) GET /CreditNotes/{id}
b) GET /CreditNotes?Where=CreditNoteID={id}
And they both returned the lines[] array.
Today, only (a) works to return the lines[] array.
1
vote
![](https://secure.gravatar.com/avatar/10ca8d5bf2fa0e4b1d9fa7a207b8988b?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)