Happy Business Starts Here

[KNOWN ISSUE] EndingUnit is "Required" for REST API subscriptions previewing with Tier products

Highlighted
Support SME
Support SME

[KNOWN ISSUE] EndingUnit is "Required" for REST API subscriptions previewing with Tier products

EndingUnit is "Required" for REST API subscriptions previewing with Tier products.
If there is no EndingUnit, then it will returns "null" message. However, in UI, EndingUnit is not "Required".
This is a known issue, engineering is investigating it.

 

POST https://apisandbox-api.zuora.com/rest/v1/subscriptions/preview

 

Request:

{  
   "previewAccountInfo":{  
      "currency":"USD",
      "billCycleDay":0,
      "billToContact":{  
         "city":"Nanaimo",
         "state":"BC",
         "country":"Canada",
         "zipCode":"V9R5G8"
      }
   },
   "termType":"EVERGREEN",
   "contractEffectiveDate":"2016-05-02",
   "subscribeToRatePlans":[  
      {  
         "productRatePlanId":"2c92c0f84b786d60014ba18dd0a160fe",
         "chargeOverrides":[  
            {  
               "productRatePlanChargeId":"2c92c0f94b787a04014ba191da7952af",
               "quantity":"80",
               "tiers":[  
                  {  
                     "tier":"1",
                     "startingUnit":"1",
                     "endingUnit":"100",
                     "price":"120.00",
                     "priceFormat":"PerUnit"
                  },
                  {  
                     "tier":"2",
                     "startingUnit":"101",
                     "price":"105.00",
                     "priceFormat":"PerUnit"
                  }
               ]
            }
         ]
      }
   ]
}

 

Response:

{
    "success": false,
    "processId": "F05784D7DC104F7B",
    "reasons": [
        {
            "code": 53022700,
            "message": null
        }
    ]
}






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

Tags (1)