Preview billing for a standalone order
This tutorial demonstrates how to preview billing for a standalone order.
To preview a standalone order, define the charges that you are to subscribe to and preview billing through the Preview an order operation, as follows:
-
Determine the values of the following fields:
Variable Description isFromExternalCatalogTo preview a standalone order, you must specify the
isFromExternalCatalogfield totrue.ratePlanNameSpecify a rate plan name for the charge you define in the standalone order; for example, RPN-001.chargeNameSpecify a charge name for the charge you define in the standalone order; for example, standalone charge.chargeTypeSpecify the charge type for the charge you define in the standalone order; for example, Recurring.chargeModelSpecify the charge model for the charge you define in the standalone order; for example, PerUnit.listPriceSpecify the actual sale price for the charge you define in the standalone order; for example, 100.originalListPriceSpecify the extended list price (ELP) for the charge you define in the standalone order; for example, 1000.uomSpecify the unit of measure (UOM) for the charge you define in the standalone order; for example, Each.taxCodeSpecify the tax code for the charge you define in the standalone order; for example,
Z-Tax. You need to use thetaxCodefield together with thetaxModefield.If you are to apply no tax to the charge that you define in the standalone order, skip using the
taxCodeandtaxModefields.taxModeSpecify the tax mode for the charge you define in the standalone order; for example,
TaxExclusive. You need to use thetaxModefield together with thetaxCodefield.If you are to apply no tax to the charge that you define in the standalone order, skip using the
taxCodeandtaxModefields. -
Ensure you define the default accounting codes for charges that you specify through a standalone order in Finance settings > Manage Non-Subscription Items and Standalone Order of the Zuora Billing UI.
Alternatively, you can directly specify the accounting codes through the relevant fields in a standalone order, such as
accountReceivableAccountingCodeandadjustmentLiabilityAccountingCode. For more information about the accounting code fields for charges in a standalone order, see the API Reference of the "Preview an order" operation. -
Specify the preview option fields as necessary, such as
previewThruTypeandpreviewTypes. For more information about the preview option fields, see the API Reference of the "Preview an order" operation. -
Use the "Preview an order" operation to preview billing for a standalone order under an existing account:
Request POST /v1/orders/previewRequest Body { "orderDate": "2024-01-01", "existingAccountNumber": "a00001", "subscriptions": [ { "orderActions": [ { "createSubscription": { "subscribeToProducts": [ { "isFromExternalCatalog": true, "ratePlanName": "standalone rateplan demo", "chargeOverrides": [ { "chargeNumber": "standalone charge demo10", "name": "standalone charge", "productRatePlanChargeNumber": "standalone prpc", "pobPolicy": "Placeholder", "productCategory": "standalone", "productClass": "classA", "productFamily": "Placeholder", "productLine": "line", "chargeType": "Recurring", "chargeModel": "PerUnit", "accountReceivableAccountingCode": "arac", "adjustmentLiabilityAccountingCode": "alac", "adjustmentRevenueAccountingCode": "arac", "contractAssetAccountingCode": "cac", "contractLiabilityAccountingCode": "clac", "contractRecognizedRevenueAccountingCode": "crrac", "deferredRevenueAccountingCode": "drac", "recognizedRevenueAccountingCode": "rrac", "unBilledReceivablesAccountingCode": "urac", "taxCode": "taxCode", "taxMode": "TaxExclusive", "startDate": { "specificTriggerDate": "2024-01-01", "triggerEvent": "SpecificDate" }, "endDate": { "endDateCondition": "Subscription_End" }, "pricing": { "recurringPerUnit": { "listPrice": 100, "originalListPrice": 2000, "listPriceBase": "Per_Billing_Period", "quantity": 10, "uom": "Each" } }, "billing": { "billCycleType": "DefaultFromCustomer", "billingPeriod": "Month", "billingPeriodAlignment": "AlignToCharge", "billingTiming": "IN_ADVANCE" } } ] } ], "terms": { "initialTerm": { "period": 12, "periodType": "Month", "termType": "TERMED", "startDate": "2024-01-01" }, "renewalSetting": "RENEW_WITH_SPECIFIC_TERM", "renewalTerms": [ { "period": 12, "periodType": "Month" } ], "autoRenew": false } }, "type": "CreateSubscription", "triggerDates": [ { "name": "ContractEffective", "triggerDate": "2024-01-01" }, { "name": "ServiceActivation", "triggerDate": "2024-01-01" }, { "name": "CustomerAcceptance", "triggerDate": "2024-01-01" } ] } ] } ], "previewOptions": { "previewThruType": "SpecificDate", "specificPreviewThruDate": "2024-03-01", "previewTypes": [ "BillingDocs", "OrderDeltaMetrics", "ChargeMetrics", "OrderMetrics" ] } }
