Happy Business Starts Here

Zuora Staff

Developer Tools Error: Billing Preview

Issue: When trying to trigger a BIlling Preview, this error is received-

"API exception while generating the Billing Preview Run: Error Reason Code:59880060 Message: There is already a billingPreview run scheduled for Batch1"

 






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
Highlighted
Zuora Staff

Re: Developer Tools Error: Billing Preview

A single batch of customer accounts can only have one billing preview run at a time. 

 

To know the status of any existing BillingPreviewRun you can use the following query on BillingPreview using Postman:

https://rest.apisandbox.zuora.com/v1/action/query

Request
{
“queryString”: “select Id, Status from BillingPreviewRun”
}

Response
{
“records”: [
{
“Status”: “Completed”,
“Id”: “2c92c0fb6446273101645dac042e51f7”
},
{
“Status”: “Completed”,
“Id”: “2c92c0fb64c61d3e0164cf41aa8e6d54”
},
{
“Status”: “Completed”,
“Id”: “2c92c0fb6a8c9811016ab08f0cf90941”
}
],
“size”: 3,
“done”: true
}

Screen Shot 2019-06-04 at 7.57.10 PM.png

 

You can also use Generic API Utility tool to query on BillingPreview Object

 

Screen Shot 2019-06-04 at 8.00.35 PM.png

 

The response is as follows:

 

Screen Shot 2019-06-04 at 8.02.07 PM.png


Hope this article was helpful!

 

Thanks.






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