Happy Business Starts Here

Master

How to activate currencies and rateplans via API?

I've got a script that uses API to create products, productrateplans, productrateplancharges, and productrateplanchargetiers.

 

But only the USD prices are activated.


How can I activate all the multi-currency prices I create, via API?

3 REPLIES 3
Master

Re: How to activate currencies and rateplans via API?

I figured this out. Have a look at https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/E1_SOAP_API_Object_Reference/ProductRateP..., which gives info about SOAP.

 

Here's a working code snippet (in python, using API library https://github.com/bolaurent/zuora_restful_python).

 

currencies = 'USD, EUR, GBP, CAD'
zuora.update_object('ProductRatePlan', prp_id, {'ActiveCurrencies': currencies})

 

Community Manager

Re: How to activate currencies and rateplans via API?

Thanks for sharing your solution @bolaurent!


Lana Lee | Senior Community Manager and Strategist
"A little consideration, a little thought for others, makes all the difference." —A. A. Milne
Guru

Re: How to activate currencies and rateplans via API?

Thanks for the link to your repo.  

Maggie Longshore