Happy Business Starts Here

Highlighted
Master

Why INVALID TYPE invalid type for create:RatePlanCharge

Why is Zuora SOAP API telling me that RatePlanCharge is an invalid type for create?

 

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
  <soap-env:Header>
    <ns0:CallOptions xmlns:ns0="http://api.zuora.com/">
      <ns0:useSingleTransaction>false</ns0:useSingleTransaction>
    </ns0:CallOptions>
    <ns1:SessionHeader xmlns:ns1="http://api.zuora.com/">
      <ns1:session>omitted</ns1:session>
    </ns1:SessionHeader>
  </soap-env:Header>
  <soap-env:Body>
    <ns0:create xmlns:ns0="http://api.zuora.com/">
      <ns0:zObjects xmlns:ns15="http://object.api.zuora.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns15:RatePlanCharge">
        <ns15:BillCycleType>SubscriptionStartDay</ns15:BillCycleType>
        <ns15:BillingPeriod>Annual</ns15:BillingPeriod>
        <ns15:ChargeType></ns15:ChargeType>
        <ns15:Department__c>5100</ns15:Department__c>
        <ns15:Description></ns15:Description>
        <ns15:Line_Description__c>Ubuntu Advantage Advanced Desktop - 3 Year (5-pack)</ns15:Line_Description__c>
        <ns15:MigratedOpportunityLineItemId__c>00kD000000aTyNqIAK</ns15:MigratedOpportunityLineItemId__c>
        <ns15:Product_Family__c>Support</ns15:Product_Family__c>
        <ns15:ProductRatePlanChargeId>2c92c0f956bc8faa0156c8047a70615c</ns15:ProductRatePlanChargeId>
        <ns15:Quantity>1.0</ns15:Quantity>
        <ns15:RatePlanId>2c92c0f856bc84ca0156c80469281847</ns15:RatePlanId>
        <ns15:RevenueRecognitionRuleName></ns15:RevenueRecognitionRuleName>
        <ns15:TriggerDate></ns15:TriggerDate>
        <ns15:TriggerEvent></ns15:TriggerEvent>
      </ns0:zObjects>
    </ns0:create>
  </soap-env:Body>
</soap-env:Envelope>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault xmlns:fns="http://fault.api.zuora.com/"> <faultcode>fns:INVALID_TYPE</faultcode> <faultstring>invalid type for create:RatePlanCharge</faultstring> <detail> <fns:InvalidTypeFault> <fns:FaultCode>INVALID_TYPE</fns:FaultCode> <fns:FaultMessage>invalid type for create:RatePlanCharge</fns:FaultMessage> </fns:InvalidTypeFault> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
2 REPLIES 2
Highlighted
Support SME

Re: Why INVALID TYPE invalid type for create:RatePlanCharge

Hi @bolaurent,

In order to add a Rate Plan Charge to an existing subscription, you will need to create either an amend() call or a create() Amendment call.

Please check out below articles on same on our Knowledge Center and let me know in case of any further concern.

http://knowledgecenter.zuora.com/DC_Developers/SOAP_API/E1_SOAP_API_Object_Reference/Amendment/Updat...)

 






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

Highlighted
Master

Re: Why INVALID TYPE invalid type for create:RatePlanCharge

I was trying to migrate some salesforce.com opportunities as subscriptions, by creating the subscription record as draft, and adding rateplans, then activating the subscription. I've now realized that I can't do that; I have to use the subscribe call instead.