Generate billing documents for order line items
This article explains 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
SentToBillingand 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:
-
Update a single order line item First, use the
Update an order line itemoperation to update the state and the bill target date of the order line item appropriately. Then, use theCRUD: Create a bill runoperation to create a bill run. See Update one order line item and then create a bill run . -
Update multiple order line items in a single API Use the Update order line items operation to update both the state and
billTargetDatefields of more than one order line item, as well as to generate an billing document for the referenced order line item using the single API. See Update multiple order line items and generate billing documents at the same time .
-
- Log in to the Zuora application and then navigate to Customers > Orders . The Orders page opens.
- Search for the order that contains the order line item to be updated and click the order number. The Order details page opens.
-
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.
- In the Basic Information section, change the Item State value from Executing to SentToBilling .
- (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.
- Click Save . The window is closed. The state of the order line item is changed to SentToBilling .
- To generate the billing document, create a bill run. For instructions, see Creating Bill Runs .