Welcome to Zuora Product Documentation

Explore our rich library of product information

Task 2: Apply enhanced discounts and specify discount durations through API

Learn how to apply enhanced discounts and specify discount durations using the API, depending on the configuration of the Apply Discount To field in the product catalog.

Depending on the value you set for the Apply Discount To field during discount creation in product catalog, you may perform one of the following tasks through API:

  • If you have set the field to All charges in the subscription and selected specific regular charges to be applied with enhanced discounts, you need to use the Create an orderAPI operation to specify your discount duration with the startDatePolicy and endDatePolicy fields.

  • If you have set the field to

    All charges in the rate plan, or set the field to All charges in the subscription but haven't selected specific regular charges to be applied with enhanced discounts, you need to apply the enhanced discount to subscription charges through the createSubscription or addProduct order actions of the Create an order API operation and specify the discount duration with the startDatePolicy and endDatePolicy fields.