Answer:
You can use the following call to create a charge that's only effective for one month, and only for the charges specified. Please note it's required to include the X-Zuora-WSDL-Version header with the value 85.0 , otherwise the fields will be ignored.
POST /v1/object/product-rate-plan-charge HTTP/1.1
Host: rest.apisandbox.zuora.com
Content-Type: application/json
X-Zuora-WSDL-Version: 85.0
Authorization: X
Cache-Control: no-cache
Postman-Token: X
{
"AccountingCode": "Deferred Revenue",
"ApplyDiscountTo": "ONETIMERECURRINGUSAGE",
"BillCycleDay": 1,
"BillCycleType": "DefaultFromCustomer",
"BillingPeriod": "Month",
"BillingPeriodAlignment": "AlignToCharge",
"ChargeModel": "Discount-Percentage",
"ChargeType": "Recurring",
"Description": "DISCOUNT PERCENTAGE",
"DiscountLevel": "subscription",
"EndDateCondition": "FixedPeriod",
"DeferredRevenueAccount": "Deferred Revenue",
"Name": "DiscountTest",
"TriggerEvent": "ContractEffective",
"UOM": "each",
"UpToPeriods": "1",
"UpToPeriodsType": "Months",
"ProductRatePlanChargeTierData": {
"ProductRatePlanChargeTier": [
{
"DiscountPercentage": 10.0
}
]
},
"ProductDiscountApplyDetailData": {
"ProductDiscountApplyDetail": [
{
"AppliedProductRatePlanId": "2c92c0f84ed8ca48014eef22c3fe0cb4",
"AppliedProductRatePlanChargeId": "2c92c0f94ed8d0d7014eef23eab027b3"
}
]
},
"ProductRatePlanId": "2c92c0f94e9a725b014eb1023249223c"
}
... View more