Happy Business Starts Here

Highlighted
Zuora Support

REST API Request to update the price across tiers

I read that UPDATE is preferred to AMEND. I have looked but can't find an example that is even close to describe how to update the price across tiers. in the following snippet, I want to update "price" to 4.99 for all three tiers.

 

"id": "2c92a00866fdf9ee01670e4c4e016088", 
"originalChargeId": "2c92a00866fdf9ee01670e4c4e016088", 
"productRatePlanChargeId": "2c92a0fe5bb40fd5015be909d9992e6e", 
"number": "C-00958461", 
"name": "VoIP Device", 
"type": "Recurring", 
"model": "Tiered", 
"uom": "VoIP Device (Flat Rate).Dash", 
"version": 1, 
"pricingSummary": "0 to 0.99 VoIP Device (Flat Rate).Dash: USD4.99/VoIP Device (Flat Rate).Dash; 1 to 1 VoIP Device (Flat Rate).Dash: USD0/VoIP Device (Flat Rate).Dash; 1.01 VoIP Device (Flat Rate).Dash or more: USD0/VoIP Device (Flat Rate).Dash", 
"priceChangeOption": "NoChange", 
"priceIncreasePercentage": null, 
"currency": "USD", 
"price": null, 
"tiers": [ 
{ 
"tier": 1, 
"startingUnit": 0, 
"endingUnit": 0.99, 
"price": 4.99, 
"priceFormat": "PerUnit" 
}, 
{ 
"tier": 2, 
"startingUnit": 1, 
"endingUnit": 1, 
"price": 0, 
"priceFormat": "PerUnit" 
}, 
{ 
"tier": 3, 
"startingUnit": 1.01, 
"endingUnit": null, 
"price": 0, 
"priceFormat": "PerUnit" 
}

Tags (1)
1 REPLY 1
Zuora Support

Re: REST API Request to update the price across tiers

Please follow the below steps for updating the price across tiers. 

 

Method PUT - https://rest.apisandbox.zuora.com/v1/object/product-rate-plan-charge/{id} - (Unique ID of the product rate plan charge). 


To get the product rate plan charge ID use GET Method and request URL as https://rest.apisandbox.zuora.com/v1/catalog/products?pageSize=10

 

 4.JPG

For updating the price across tiers

 

{
"AccountingCode": "Check",
"BillCycleType": "DefaultFromCustomer",
"BillingPeriod": "Month",
"ChargeModel": "Tiered Pricing",
"DeferredRevenueAccount": "Check",
"Name": "Tiered Price Charge",
"ProductRatePlanChargeTierData": {
"ProductRatePlanChargeTier": [
{
"Active": true,
"Currency": "USD",
"StartingUnit": "0",
"EndingUnit": "0.99",
"Price": "4.99",
"PriceFormat": "Per Unit"
},
{
"Active": true,
"Currency": "USD",
"StartingUnit": "1.0",
"EndingUnit": "1.0",
"Price": "4.99",
"PriceFormat": "Per Unit"
},
{
"Active": true,
"Currency": "USD",
"StartingUnit": "1.01",
"EndingUnit": "",
"Price": "4.99",
"PriceFormat": "Per Unit"
}
]
},
"ProductRatePlanId": "2c92c0f967caee410167dddb4fea7fbf",
"RecognizedRevenueAccount": "Check",
"TriggerEvent": "ContractEffective",
"UOM": "Each",
"UseDiscountSpecificAccountingCode": false
}

 

5.JPG