- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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})
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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})
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: How to activate currencies and rateplans via API?
Thanks for the link to your repo.