Happy Business Starts Here

I am getting multiple TCB when calling the Preview Order API.

Leo
Support SME
Support SME

I am getting multiple TCB when calling the Preview Order API.

Question or Problem Statement:

I am calling the Preview Order API in Zuora. In some cases, I am getting multiple TCB in response to the same product while updating it.

Zuora Reference document -
https://www.zuora.com/developer/api-reference/#operation/POST_PreviewOrder

Can you please let me know, On which condition we get multiple TCB of Zuora regarding the same product?
 
Solution:
There are "chargeMetrics" TCB and "orderMetrics" TCB in the response.
 
For "chargeMetrics", it depends on how many RatePlanCharges the subscription has. For example, if there are 10 RatePlanCharges, so there are 10 "chargeMetrics" TCB returned.
For "orderMetrics" TCB, it only returns the RatePlanCharge that has been updated. For example,  if there are 2 RatePlanCharges that have been updated, so it returns 2 "orderMetrics" TCB.






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