Credit Note invoice cancellation

How to cancel an invoice with a credit note in EdgeCTP