What is the link between receivablesCreditMemos and receivablesInvoices API?
Hi All,
I have a requirement to construct a CreditMemo EDI file within OIC using the APIs. I'm using the /receivablesCreditMemos API to gather the header and line details, however I also need to reference data from the related invoice. I have found the relating invoice within /receivablesInvoices, however the issue I'm facing is there is no clear way to link the credit memo from /receivablesCreditMemos to it's relating invoice in /receivablesInvoices.
Please could someone advise if there is a way I could reference the original invoice from the credit memo API response?
I tried using the purchase order for example, this is queriable for the receivablesCreditMemos API, however this isn't a quarriable parameter for receivablesInvoices: