Happy Business Starts Here

Newly Enrolled

ProductRatePlanCharge Error: MISSING_REQUIRED_VALUE For Name

Hi Team, 

I am getting error while i am trying to create a one time rate plan charge After Updating RatePlan.

 

Request :

<ns0:create xmlns:ns0="http://api.zuora.com/">
<ns0:zObjects>
<ns0:zObjects>
<ns1:Name xmlns:ns1="http://object.api.zuora.com/">HM611A4</ns1:Name>
<ns1Smiley TongueroductRatePlanId xmlns:ns1="http://object.api.zuora.com/">2c92c0f858199d24015823f6541c0a31</ns1Smiley TongueroductRatePlanId>
<ns1:AccountingCode xmlns:ns1="http://object.api.zuora.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns1:ChargeModel xmlns:ns1="http://object.api.zuora.com/">Per Unit Pricing</ns1:ChargeModel>
<ns1:ChargeType xmlns:ns1="http://object.api.zuora.com/">OneTime</ns1:ChargeType>
<ns1Smiley Very HappyefaultQuantity xmlns:ns1="http://object.api.zuora.com/">0</ns1Smiley Very HappyefaultQuantity>
<ns1Smiley Very Happyescription xmlns:ns1="http://object.api.zuora.com/">Enterprise Basic 4Y Support</ns1Smiley Very Happyescription>
<ns1:ListPrice__c xmlns:ns1="http://object.api.zuora.com/">0</ns1:ListPrice__c>
<ns1Smiley TongueroductRatePlanChargeTierData xmlns:ns1="http://object.api.zuora.com/">
<ns0Smiley TongueroductRatePlanChargeTier>
<ns1:Currency>USD</ns1:Currency>
</ns0Smiley TongueroductRatePlanChargeTier>
<ns0Smiley TongueroductRatePlanChargeTier>
<ns1:Currency>CAD</ns1:Currency>
</ns0Smiley TongueroductRatePlanChargeTier>
</ns1Smiley TongueroductRatePlanChargeTierData>
<ns1:TriggerEvent xmlns:ns1="http://object.api.zuora.com/">ServiceActivation</ns1:TriggerEvent>
<ns1:UOM xmlns:ns1="http://object.api.zuora.com/">Each</ns1:UOM>
<ns1:RevenueRecognitionRuleName xmlns:ns1="http://object.api.zuora.com/">Recognize upon invoicing</ns1:RevenueRecognitionRuleName>
</ns0:zObjects>
</ns0:zObjects>
</ns0:create>

 

Response :

<?xml version="1.0" encoding="UTF-8"?><ns1:createResponse xmlns:ns1="http://api.zuora.com/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns1:result><ns1:Errors><ns1:Code>MISSING_REQUIRED_VALUE<... required value: Name</ns1:Message></ns1:Errors><ns1Smiley Frustrateduccess>false</ns1Smiley Frustrateduccess></ns1:result></ns1:createResponse>

1 REPLY 1
Zuora Alumni

Re: ProductRatePlanCharge Error: MISSING_REQUIRED_VALUE For Name

Hi @Vasumathy,

 

I didn't see you specify the 'ProductRatePlanCharge' object in your sample create call. For your reference, I paste a sample call of creating ProductRatePlanCharge object in Zuora.

 

<ns1:create>
  <ns1:zObjects xsi:type="ns2:ProductRatePlanCharge">
    <ns2:ChargeModel>Volume Pricing</ns2:ChargeModel>
    <ns2:AccountingCode>One Time Revenue</ns2:AccountingCode>
    <ns2:TriggerEvent>ContractEffective</ns2:TriggerEvent>
   <ns2:ProductRatePlanId>2c92c0f95345c826015352523c7f6d53</ns2:ProductRatePlanId>
    <ns2:RecognizedRevenueAccount>One Time Revenue</ns2:RecognizedRevenueAccount>
    <ns2:Name>OneTime Volume Pricing</ns2:Name>
    <ns2:DeferredRevenueAccount>One Time Revenue</ns2:DeferredRevenueAccount>
    <ns2:UOM>Each</ns2:UOM>
    <ns2:TaxCode>Mixed</ns2:TaxCode>
    <ns2:ChargeType>OneTime</ns2:ChargeType>
    <ns2:RevenueRecognitionRuleName>Recognize upon invoicing</ns2:RevenueRecognitionRuleName>
    <ns2:OverageCalculationOption>EndOfSmoothingPeriod</ns2:OverageCalculationOption>
    <ns2:OverageUnusedUnitsCreditOption>NoCredit</ns2:OverageUnusedUnitsCreditOption>
    <ns2:Taxable>TRUE</ns2:Taxable>
    <ns2:TaxMode>TaxExclusive</ns2:TaxMode>
    <ns1:ProductRatePlanChargeTierData>
      <ns1:ProductRatePlanChargeTier>
        <ns2:StartingUnit>1</ns2:StartingUnit>
        <ns2:EndingUnit>100</ns2:EndingUnit>
        <ns2:Tier>1</ns2:Tier>
        <ns2:Price>0</ns2:Price>
        <ns2:Currency>EUR</ns2:Currency>
        <ns2:PriceFormat>Flat Fee</ns2:PriceFormat>
      </ns1:ProductRatePlanChargeTier>
      <ns1:ProductRatePlanChargeTier>
        <ns2:StartingUnit>1</ns2:StartingUnit>
        <ns2:EndingUnit>100</ns2:EndingUnit>
        <ns2:Tier>1</ns2:Tier>
        <ns2:Price>0</ns2:Price>
        <ns2:Currency>GBP</ns2:Currency>
        <ns2:PriceFormat>Flat Fee</ns2:PriceFormat>
      </ns1:ProductRatePlanChargeTier>
      <ns1:ProductRatePlanChargeTier>
        <ns2:StartingUnit>1</ns2:StartingUnit>
        <ns2:EndingUnit>100</ns2:EndingUnit>
        <ns2:Tier>1</ns2:Tier>
        <ns2:Price>14641</ns2:Price>
        <ns2:Currency>USD</ns2:Currency>
        <ns2:PriceFormat>Flat Fee</ns2:PriceFormat>
      </ns1:ProductRatePlanChargeTier>
    </ns1:ProductRatePlanChargeTierData>
  </ns1:zObjects>
</ns1:create>

Hope it is helpful to you.

 

Regards,

Dennis



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √