Happy Business Starts Here

Highlighted
Zuora Support

Why zamend for update product amendment call is not updating the price in Zuora?

In a specific scennario customer was trying to create a Apex process to mass amend subscriptions that need a price change(Update Product amendment). The amendment was created fine in Zuora but the updated price defined in the call was not getting reflected.






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: Why zamend for update product amendment call is not updating the price in Zuora?

When setting ratePlanChargeData in ratePlanData object, you have to put ratePlanData list in ratePlanChargeData instead of a ratePlanChargeData object in ratePlanChargeData.

 

for ex: ratePlanData.setValue('RatePlanChargeData', ratePlanChargeData); should be updated to ratePlanData.setValue('RatePlanChargeData', new Zuora.zObject[]{ratePlanChargeData});

Once the changes were carried in the apex class, the amendment was created fine in Zuora with the updated price.






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