- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Question:
How can we create a discount charge via REST API that's only applicable to specific producs and/or a specific time period?
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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" }
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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" }
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √