Happy Business Starts Here

Highlighted
Zuora Support

Rate Plan Charge's price not updated via API

When creating a new subscription using a subscribe() call, I try to overwrite the charge's price and some other fields. Here is the REQUEST of our call.

 

 

{
  "subscribes": [
    {
      "Account": {
        "Id": "2c92c0fa63003d28016302a941234567"
      },
      "SubscribeOptions": {
        "GenerateInvoice": false,
        "ProcessPayments": false
      },
      "SubscriptionData": {
        "RatePlanData": [
          {
            "RatePlan": {
              "ProductRatePlanId": "2c92c0f8605841e4016066b431012345"
            },
            "RatePlanChargeData": [
              {
                "RatePlanCharge": {
                  "ProductRatePlanChargeId": "2c92c0f860584120016066b5eabcdefg",
                  "triggerDate": "2018-04-26",
                  "triggerEvent": "ServiceActivation",
                  "endDateCondition": "SpecificEndDate",
                  "specificEndDate": "2019-04-25",
                  "price": 538,
                  "quantity":1
                }
              }
            ]
          }
        ],
        "Subscription": {
          "AutoRenew": false,
          "InitialTerm": 12,
          "RenewalTerm": 3,
          "TermStartDate": "2017-01-01",
          "TermType": "TERMED"
        }
      }
    }
  ]
}

 

For some reason, the price is not changed and the new subscription has the default price from the Product Catalog instead. Other fields (ie., triggerDate, triggerEvent, endDateCondition, specificEndDate, and quantity) are not overwritten either.

 

Can someone point out what could be the issues with my call?

 



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

1 REPLY 1
Zuora Support

Re: Rate Plan Charge's price not updated via API

By design, field name is sensitive, and in this case price is incorrect. It should be Price (with a capital 'P'). The same applies to other fields with the issue. The correct ones should look like below.

 

 

"RatePlanCharge": {
  "ProductRatePlanChargeId": "2c92c0f860584120016066b5eabcdefg",
  "TriggerDate": "2018-04-26",
  "TriggerEvent": "ServiceActivation",
  "EndDateCondition": "SpecificEndDate",
  "SpecificEndDate": "2019-04-25",
  "Price": 538,
  "Quantity":1
}

 

For all available objects, fields, and field values, please check out this article.
https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/E1_SOAP_API_Object_Reference



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