Thanks @DavidW and @huawei_li The upcoming release will help massively in our use case. Now we will have a link between a discount and the rateplancharge/subscription that it applies to. However, I would still like to repeat my recommendation to expose RatePlanId, RatePlanName and the Product Id/SKU in the rest response as well. All the details of the charge should be present in the billing preview I believe, so that there is no reason to go back to Zuora and query that. Thanks anyway.
... View more
In our Product Catalog, RatePlan is the actual service/product item that we offer to our clients. This RatePlan always has a RatePlanCharge and Zuora did a great job exposing properties of RatePlanCharge in the BillingPreview response. (compared to SOAP BillingPreview which only contained ids). However, occasionaly a RatePlan also has a discount RatePlanCharge. We do get that in the BillingPreview REST response as an independent RatePlanCharge but there is no way to relate that this RatePlanCharge (discount) applies to the RatePlanCharge in the same RatePlan. It could be a discount RatePlanCharge for any other RatePlan. We need RatePlan information in the BillingPreview Rest response payload including ids. Also the discount InvoiceItem response does not specify whether it applies to the RatePlan or the Subscription. This has a huge implication on our preview reports that rely on BillingPreview REST.
... View more