Happy Business Starts Here

Zuora Staff

how to identify which Bill Run generated a specific invoice

How can I find the bill run that was launched to generate a particular invoice number ? 



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

2 REPLIES 2
Zuora Staff

Re: how to identify which Bill Run generated a specific invoice

  • The bill run number is visible on the invoice page on the Zurora UI
    You have to click on the "Additional Fields" link to display more information and find the Bill Run number.

 

 

Invoice Additional Fields

 

 

  • You can also retrieve it using the Reporting and Data Source export with the Invoice Object.
    when Invoice.Source is equal to "BillRun", the Invoice.SourceId field contains the Bill Run number.


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

Highlighted
Master

Re: how to identify which Bill Run generated a specific invoice

I did not know this field. I have been using Zuora for one year, but there are things I do not know yet!

 

And I have doubts.
Via UI, I know that there is no way to generate Invoice besides Bill Run.
Meanwhile, via API, I know that there are some way to generate Invoice besides Bill Run.
When using API to generate Invoice by means other than Bill Run, what value will be in this field?

 

I tried it.
Create Subscription: https://rest.apisandbox.zuora.com/v1/subscriptions

Request:

 

header: "zuora-version": "196.0"
{
  "accountKey": "RC-00045226",
  "autoRenew": true,
  "collect": false,
  "contractEffectiveDate": "2018-01-01",
  "initialTerm": "12",
  "initialTermPeriodType": "Month",
  "invoice": true,
  "renewalTerm": "12",
  "renewalTermPeriodType": "Month",
  "subscribeToRatePlans": [
    {
      "productRatePlanId": "2c92c0f95eef1984015f0415a06a785a"
    }
  ],
  "invoiceTargetDate": "2018-01-01",
  "termType": "TERMED"
}

 

Responce:

 

{
    "success": true,
    "subscriptionId": "2c92c0fa6078c53301608710977b6958",
    "subscriptionNumber": "A-S00000223",
    "contractedMrr": 3000,
    "totalContractedValue": 36000,
    "invoiceId": "2c92c0fa6078c533016087109a706962"
}

 

I confirmed the generated Invoice from the UI.
oh, I see:
generateInvoiceViaAPI.png

 

 

I don't think up the scene where this experiment is useful, but my small curiosity was satisfied.