Skip to main content




Use the generate() call to generate an on demand invoice for a specific customer. This process is similar to the process in the Zuora user interface in which you create an ad-hoc bill run for a specific customer account. This SOAP API reference includes syntax, call wrappers and container descriptions, requirements, and examples.

Usage notes

  • Supported objects: Invoice
  • Version availability: WSDL 11.0+
  • Asynchronous process: yes

The id of the generated invoice is returned in the response. If multiple invoices are generated, only the id of the first invoice generated is returned. This occurs when an account has multiple subscriptions with the invoice subscription separately option enabled.


The following fields are required for this call:


This example call generates an invoice with the following characteristics:

  • Customer account ID: 8a8ae4b122561fc00122562fbc3d0002
  • Date: July 7, 2016
  • Include all charge types
  • Default status is Draft


<SOAP-ENV:Envelopexmlns:SOAP-ENV=""xmlns:ns2=""xmlns:xsi="" xmlns:ns1="">
     <ns1:zObjects xsi:type="ns2:Invoice">


<soapenv:Envelope xmlns:soapenv="">
      <ns1:generateResponse xmlns:ns1="">