Happy Business Starts Here

source field is not filterable on the Get Credit memos API

0 Kudos

source field is not filterable on the Get Credit memos API

we need to be able to filter the credit memos by the source. but the API doesn't let you. Is it possible to have the Get Credit memos API accept the "source" as filterable query parameters? Having this filter will allow the workflow to filter the response payload than having to shift through the records via custom code. 

The other option was to use data query but the data query on the credit memo doesn't work well as it can not be joining to the Invoice object but can only be joined by the accountid.
so whats the best way to sort the response from the GET credit memo api call? how can the api accept a filter such as - referredInvoiceId is not null ? https://www.zuora.com/developer/api-reference/#operation/GET_CreditMemos