Using Pastel SDK to allocate Credit Notes to Invoices

SUGGESTED

We are using Pastel SDK on Pastel 19. I can import invoices (document type 3) using SDK and can import Credit Notes (document type 4) using SDK. The customer uses Open Items to allocate payments / credit notes to one or more invoices.

Does anyone know if there is a way to do this allocation of Open Items using the SDK, or must all Open Item allocations be done manually in Pastel after importing the documents via the SDK?