How to best make...

The following list describes the easiest way to generate e.g. a reminder or storno request given that the initial invoice was successfully produced and the XML infoset invoiceXML was archived on a local disk.

copy of an invoice
This can be accomplished by calling the following 4 methods:
  1. IGeneralInvoiceRequestManager::LoadXML using invoiceXML as input file
  2. IGeneralInvoiceResult::GetRequest to retrieve the parameters
  3. IGeneralInvoiceRequest::SetRequest with eRequestSubtype=enRequestSubtypeCopy
  4. IGeneralInvoiceRequestManager::GetXML
storno of an invoice
This can be accomplished by calling the following 5 methods:
  1. IGeneralInvoiceRequestManager::LoadXML using invoiceXML as input file
  2. IGeneralInvoiceResult::GetRequest to retrieve the parameters
  3. IGeneralInvoiceRequest::SetRequest with eRequestSubtype=enRequestSubtypeStorno
  4. Possibly IGeneralInvoiceRequest::SetTransport with bstrToGLN='noRecipientGLN'
  5. IGeneralInvoiceRequestManager::GetXML
refund of a invoice (TP only)
This can be accomplished by calling the following 4 methods:
  1. IGeneralInvoiceRequestManager::LoadXML using invoiceXML as input file
  2. IGeneralInvoiceResult::GetRequest to retrieve the parameters
  3. IGeneralInvoiceRequest::SetRequest with eRequestSubtype=enRequestSubtypeRefund
    and defining the variable bstrRefundList="ID1, ID2,..."
  4. IGeneralInvoiceRequestManager::GetXML
create a reminder
This can be accomplished by calling the following 3 methods:
  1. IGeneralInvoiceRequestManager::LoadXML using invoiceXML as input file
  2. IGeneralInvoiceRequest::SetReminder using lRequestTimestamp=0
  3. IGeneralInvoiceRequestManager::GetXML - store as reminderXML and possibly lRequestTimestamp
Claiming deductible/franchise
This can be accomplished by calling the following 3 methods:
  1. IGeneralInvoiceRequestManager::LoadXML using reminderXML as input file
  2. IGeneralInvoiceRequest::SetTiers with eTiersMode=enTiersGarant
    and dAmountPrepaid= -'amount already paid' (negative amount!!)
  3. IGeneralInvoiceRequestManager::GetXML or IGeneralInvoiceRequestManager::Print