Happy Business Starts Here

Highlighted
Zuora Support

How to create cancellation quote amendment programmatically ?

How to create cancellation quote amendment programmatically ?






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Zuora Support

Re: How to create cancellation quote amendment programmatically ?

You can use the method zqu.zQuote.util, to create a QuoteAmendment__c record of type Cancellation and link it to the quote. Sending this quote to Z-Billing will cancel the subscription.

For example, you could use the following with the sendToZBilling method to cancel a subscription:  

Id quoteId = 'a0GE0000005HRhD';
Quote__c cancelledAmendmentQuote = zQuoteUtil.createCancellationAmendment(quoteId);
// now send the quote to Z-Billing

 

Related KC articles:

 

https://knowledgecenter.zuora.com/AA_Whats_New/S_Previous_Z-Force_Releases/z_2012_Zuora_for_Salesfor...

 

https://knowledgecenter.zuora.com/CA_Commerce/I_Development_Resources/C_Component_Library/C_Global_C...

 






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √