Happy Business Starts Here

Valued Scholar

Error in Creating Product rate plan charge

Hi I am getting error in creating product rate plan charge . json as below

{
"objects": [
{
"Name":"Dummy Rate Plan Charge",
"BillCycleType":"SubscriptionStartDay",
"BillingPeriod":"Month",
"ChargeModel":"Flat Fee Pricing",
"ChargeType":"Recurring",
"BillingTiming":"In Arrears",
"EndDateCondition":"SubscriptionEnd",
"ListPriceBase":"Per Month",
"ProductRatePlanChargeTierData":{
"ProductRatePlanChargeTier" : {
"Price" : "100"
}
},
"TriggerEvent":"ContractEffective",
"ProductRatePlanId":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

}
],
"type": "ProductRatePlanCharge"
}

 

 

Error -  

 

[
{
"Errors": [
{
"Code": "MISSING_REQUIRED_VALUE",
"Message": "Missing required value: ProductRatePlanChargeTier."
}
],
"Success": false
}
]

 

 

Please help. Thanks in advance

1 REPLY 1
Master

Re: Error in Creating Product rate plan charge

Look at the definition of ProductRatePlanChargeTier. Looks like Currency is required, but missing in your json.

 

Also look at the discussion ProductRatePlanCharge Error for an example of a working call (this is a SOAP call, but you'll need the same data).