Welcome to Zuora Product Documentation

Explore our rich library of product information

Generate billing documents for order line items

Learn how to generate billing documents for order line items by changing their state to SentToBilling and using the Zuora UI or REST API.

After an order line item is created, its state is Executing by default. To generate billing documents for the order line item, you must change the state to SentToBilling. For more information about the state transition flow of an order line item, see State transitions for an order line item, fulfillment, and order.

To generate a billing document for an order line item, you can use one of the following ways:

  • Use the Zuora UI. Make sure the state of the order line item is SentToBilling and the bill target date is set appropriately. Then, create or schedule a bill run to generate the billing document. The bill run will pick up order line items based on the Bill Target Date. See Use the Zuora UI.

  • Use the REST API:

  1. Log in to the Zuora application and then navigate to Customers > Orders . The Orders page opens.
  2. Search for the order that contains the order line item to be updated and click the order number. The Order details page opens.
  3. In the Order Line Items area, on the target line of the order line item, click the pencil icon in the ACTIONS column. The Edit Order Line Item window is displayed. edit-order-line-item
  4. In the Basic Information section, change the Item State value from Executing to SentToBilling .
  5. (Optional): Update the Bill Target Date value if necessary. The subsequent bill run will pick up order line items to generate billing documents based on the bill target date.
  6. Click Save. The window is closed. The state of the order line item is changed to SentToBilling.
  7. To generate the billing document, create a bill run. For instructions, see Creating Bill Runs.