Happy Business Starts Here

'GenerateInvoice' setting on 'Subscribe' API should be able to generate the invoice in 'Draft'

0 Kudos

'GenerateInvoice' setting on 'Subscribe' API should be able to generate the invoice in 'Draft'

The 'GenerateInvoice' setting in the 'Subscribe' API is a boolean (Y or N)

 

This doesn't allow control on what is done with the invoice, as it's directly posted

 

There should be the option to generate the invoice in Draft, in order to be able to execute custom validations or set certain values before it's posted

 

For example, add a new optional boolean setting 'Autopost' in the object 'SubscribeInvoiceProcessingOptions'

 

The functionality would be:

  • GenerateInvoice = Y and Autopost not present --> Post invoice. The ProcessPayment setting will be considered. 
  • GenerateInvoice = Y and Autopost = 'Y' --> Post invoice. The ProcessPayment setting will be considered.
  • GenerateInvoice = Y and Autopost = 'N' --> Keep as draft. The ProcessPayment setting will be ignored.