Add products to subscriptions
This tutorial demonstrates how to add a product to a subscription by creating an order.
In this tutorial, you will set the following dates to today's date:
- The date when the order is signed
- The contract effective date of the product addition
- The service activation date of the product addition
- The customer acceptance date of the product addition
Add a product rate plan using the Zuora UI
To add a product to a subscription by creating an order in the Zuora application:
-
Navigate to Customers > Orders. The Orders page opens.
-
Click Create New Order at the top right. The Create New Order page opens.
-
In the Account field, enter the name of the account that owns the subscription. By default, the account that owns the order will also own the subscription.
You can enter the account by clicking either Account Name or Account Number.
- If you click Account Name, type part of the account name in the Account field and the filtered accounts can be dynamically listed for your selection.
- If you click Account Number, type the complete account number.
-
In the Order Date field, enter the order date you are to assign to the order.
-
Choose what you want to do by clicking Amend Subscription.
-
In the Select an existing subscription area, locate the target subscription to which you are to add products by using the Search field.
-
On the target subscription line, click Select in the ACTION column.
-
In the Associated subscriptions area, click Add Product.
The operations that you can perform on the selected subscription are listed to the right of the subscription number. To see other available operations, click More Order Actions.
-
On the Trigger dates line, specify appropriate dates for the following fields. For more information, see Billing Trigger Dates.
-
Contract effective
-
Service activation
-
Customer acceptance
-
-
(Optional): Enter the reason for adding a product in the Change Reason field.
-
In the Products and charges area, search and locate the product to be added by performing one of the following steps:
-
You can choose one of your recently added products by placing your cursor in the search field. If the recently added products are displayed in a drop-down list (maximum eight), choose one from the list. Note that the recently added products mean the products you selected and then clicked Add Product in the bottom right corner in your previous order actions, no matter whether your previous order actions are completed.
-
You can choose to search by product name or by product SKU by using the drop-down list. The displayed products will dynamically change as you type in the Search field. Note that the default product and charge list displays a maximum of 30 products in the UI. After a search, a maximum of 20 products are displayed on each page of your search result.
-
-
To add a rate plan, click the right arrow ( > ) next to the product name to expand all its rate plans, and then select the checkbox in front of the rate plan.
You can select more than one rate plan in multiple products. To remove a rate plan from your selection, clear the checkbox in front of the rate plan. The number of the selected rate plan is also indicated in the UI.
-
Click Add Product in the bottom right corner to continue. For charges with charge definitions, if you want your subscription to look up the charge definitions or you encountered an error page with a Re-Lookup option, see additional steps in Apply charge definition lookup to subscriptions.
-
(Optional): Update the charges for the selected rate plan if necessary.
-
Click Review Order to continue. The included products are all displayed for the selected subscription.
At this point, you can still click Add Product to add more rate plans to this subscription.
-
(Optional): To preview billing information for the subscription, click Preview Billing. Specify the preview settings and click Update Preview to see the preview invoices. After you are finished, click Done to return to the previous page.
-
For the new order to take effect, click Activate.
Add a product rate plan using the REST API
You can use the Create an order operation to add a product rate plan to a subscription.
Before the Orders feature is enabled, you would have used the "Update subscription", "Amend", or "CRUD: Create amendment" operation.
To add a product to a subscription by creating an order:
-
Determine the values of the following variables:
Variable Description $SubscriptionNum
The number of the subscription to update. For example,
A-S00000001
.To create the order under a new account instead of an existing account, specify the
newAccount
field instead of theexistingAccountNumber
field.$AccountNum
The number of the account that will own the order. For example, A00000001
.$ProductRPId
The ID of the product rate plan to add to the subscription. For example, 2c92c0f9592a69410159432fab376d81
.$ProductRPChargeId
The ID of the product rate plan charge to use when adding the product rate plan. For example, 2c92c0f9592a6941015943308a2c6e72
.$Today
Today's date. For example, 2017-09-30
. -
Use the "Create an order" operation to create an order under an existing account:
Request POST /v1/orders/
Request Body { "orderDate": "$Today", "existingAccountNumber": "$AccountNum", "subscriptions": [ { "subscriptionNumber": "$SubscriptionNum", "orderActions": [ { "type": "AddProduct", "triggerDates": [ { "name": "ContractEffective", "triggerDate": "$Today" }, { "name": "ServiceActivation", "triggerDate": "$Today" }, { "name": "CustomerAcceptance", "triggerDate": "$Today" } ], "addProduct": { "productRatePlanId": "$ProductRPId", "chargeOverrides": [ { "productRatePlanChargeId": "$ProductRPChargeId", "pricing": { "recurringFlatFee": { "listPrice": 10 } } } ] } } ] } ], "processingOptions": { "runBilling": false, "collectPayment": false } }
To preview invoices for the updated subscription, use the "Preview order" operation.