Skip to Content
0
Jan 29, 2018 at 02:02 PM

Cancelling Documents using DI API

2624 Views Last edit Jan 29, 2018 at 02:02 PM 2 rev

Good day,

I am developing a code where I have to cancel a documents using DI API SDK.

I see some documents using the method Cancel and ther others using the method

CreateCancellationDocument.

For Example:

The Sales Orders use the Method: ObjectOrder.Cancel()

The Invoices use the method: ObjectTarget = ObjectInvoice.CreateCancellationDocument()

The Question is, How do i know which documents use the method Cancel or

CreateCancellationDocument?

Thanks and Regard.