- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Problem Statement:
We are getting error at SFDC production environment 'INVALID_VALUE Modifying the price is only supported for FlatFee and PerUnit usage charges.' at the time of order processing, Order is not syncing to Zuora
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
Solution :
If you are trying to override the default value of the field "Price" on an "Overage Pricing" charge model during a subscribe() call, instead of passing the Price field, you will have to pass the field "OveragePrice" as part of your "RatePlanCharge" complex type.
Here's a sample subscribe() call:
<ns1:subscribe>
<ns1:subscribes>
<ns1:Account xsi:type="ns2:Account">
<ns2:Id>2c92a0f9436e4bdc01437a902f4f7588</ns2:Id>
</ns1:Account>
<ns1:SubscribeOptions>
<ns1:GenerateInvoice>false</ns1:GenerateInvoice>
<ns1:ProcessPayments>false</ns1:ProcessPayments>
</ns1:SubscribeOptions>
<ns1:SubscriptionData>
<ns1:Subscription xsi:type="ns2:Subscription">
<ns2:AutoRenew>true</ns2:AutoRenew>
<ns2:ContractAcceptanceDate>2011-11-01T00:00:00.000-08:00</ns2:ContractAcceptanceDate>
<ns2:ContractEffectiveDate>2011-11-01T00:00:00.000-08:00</ns2:ContractEffectiveDate>
<ns2:InitialTerm>12</ns2:InitialTerm>
<ns2:Name></ns2:Name>
<ns2:RenewalTerm>12</ns2:RenewalTerm>
<ns2:ServiceActivationDate>2011-11-01T00:00:00.000-08:00</ns2:ServiceActivationDate>
<ns2:TermStartDate>2011-11-01T00:00:00.000-08:00</ns2:TermStartDate>
<ns2:TermType>TERMED</ns2:TermType>
</ns1:Subscription>
<ns1:RatePlanData>
<ns1:RatePlan xsi:type="ns2:RatePlan">
<ns2:ProductRatePlanId>2c92a0fb436e501d01437a90ffec7c10</ns2:ProductRatePlanId>
</ns1:RatePlan>
<ns1:RatePlanChargeData>
<ns1:RatePlanCharge xsi:type="ns2:RatePlanCharge">
<ns2:ProductRatePlanChargeId>2c92a0f9436e4bdc01437a91e54d7c3f</ns2:ProductRatePlanChargeId>
<ns2:IncludedUnits>200</ns2:IncludedUnits>
<ns2:OveragePrice>10</ns2:OveragePrice>
</ns1:RatePlanCharge>
</ns1:RatePlanChargeData>
</ns1:RatePlanData>
</ns1:SubscriptionData>
</ns1:subscribes>
</ns1:subscribe>
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
Solution :
If you are trying to override the default value of the field "Price" on an "Overage Pricing" charge model during a subscribe() call, instead of passing the Price field, you will have to pass the field "OveragePrice" as part of your "RatePlanCharge" complex type.
Here's a sample subscribe() call:
<ns1:subscribe>
<ns1:subscribes>
<ns1:Account xsi:type="ns2:Account">
<ns2:Id>2c92a0f9436e4bdc01437a902f4f7588</ns2:Id>
</ns1:Account>
<ns1:SubscribeOptions>
<ns1:GenerateInvoice>false</ns1:GenerateInvoice>
<ns1:ProcessPayments>false</ns1:ProcessPayments>
</ns1:SubscribeOptions>
<ns1:SubscriptionData>
<ns1:Subscription xsi:type="ns2:Subscription">
<ns2:AutoRenew>true</ns2:AutoRenew>
<ns2:ContractAcceptanceDate>2011-11-01T00:00:00.000-08:00</ns2:ContractAcceptanceDate>
<ns2:ContractEffectiveDate>2011-11-01T00:00:00.000-08:00</ns2:ContractEffectiveDate>
<ns2:InitialTerm>12</ns2:InitialTerm>
<ns2:Name></ns2:Name>
<ns2:RenewalTerm>12</ns2:RenewalTerm>
<ns2:ServiceActivationDate>2011-11-01T00:00:00.000-08:00</ns2:ServiceActivationDate>
<ns2:TermStartDate>2011-11-01T00:00:00.000-08:00</ns2:TermStartDate>
<ns2:TermType>TERMED</ns2:TermType>
</ns1:Subscription>
<ns1:RatePlanData>
<ns1:RatePlan xsi:type="ns2:RatePlan">
<ns2:ProductRatePlanId>2c92a0fb436e501d01437a90ffec7c10</ns2:ProductRatePlanId>
</ns1:RatePlan>
<ns1:RatePlanChargeData>
<ns1:RatePlanCharge xsi:type="ns2:RatePlanCharge">
<ns2:ProductRatePlanChargeId>2c92a0f9436e4bdc01437a91e54d7c3f</ns2:ProductRatePlanChargeId>
<ns2:IncludedUnits>200</ns2:IncludedUnits>
<ns2:OveragePrice>10</ns2:OveragePrice>
</ns1:RatePlanCharge>
</ns1:RatePlanChargeData>
</ns1:RatePlanData>
</ns1:SubscriptionData>
</ns1:subscribes>
</ns1:subscribe>
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √