Happy Business Starts Here

How we can apply a Discount Rate Plan Charge to a specific Rate Plan Charge within a Rate Plan?

Support SME

How we can apply a Discount Rate Plan Charge to a specific Rate Plan Charge within a Rate Plan?

How we can apply a Discount Rate Plan Charge to a specific Rate Plan Charge within a Rate Plan?


If you are using SOAP call, you can use https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/Produ... ProductDiscountApplyDetail is supported by API version 85.0+;

(Suggested) For REST call, you can use /v1/action/update https://www.zuora.com/developer/api-reference/#operation/Action_POSTupdate
After including X-Zuora-WSDL-Version: 85 in the header, you will be able to get the discount product rate plan charge updated successfully. 

​Here is a sample code. 

curl --location --request POST 'https://rest.zuora.com/v1/action/update?rejectUnknownFields=true' \
--header 'X-Zuora-WSDL-Version: 85' \
--header 'Authorization: Basic xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{

"objects": [

{

"Id":"2c93db8173232ae9017328a119c076d0",

"ProductDiscountApplyDetailData": {

"ProductDiscountApplyDetail": [

{


"AppliedProductRatePlanChargeId": "2c93db8373232bbc017328677a3d7c74"

}

]

}

}

],

"type":"ProductRatePlanCharge"

}'