Happy Business Starts Here

How to activate multi-currencies via API?

nucukesi
Newly Enrolled

How to activate multi-currencies 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
sayam
Valued Scholar

Re: How to activate multi-currencies via API?

Hi nucukesi,

 

You can look into the below thread for more information if the requirement and solution suits your needs:


https://community.zuora.com/t5/Subscriptions/How-to-activate-multi-currency-in-product-catalog-for-c...

jrd
Partner
Partner

Re: How to activate multi-currencies via API?

Adding multiple currencies to PRP just requires that you set the

 

prp.Id = ProductRatePlanId;
prp.ActiveCurrencies =  comma separated list of 3 character currencies... for example "USD,GBP,CAN"... (doing this allows the next step)

 

However, To Activate Price by currency I think you have to actually go into the product catalog via UI and manually set / turn on (activate) available currency prices for each Rate Plan (RP) on the Catalog.. currency value. so its not an all or none setting..

pramamoorthy
Zuora Staff

Re: How to activate multi-currencies via API?

Hi, 

 

Please see below steps to activate multi-currency via REST API. 

Endpoint URL: https://rest.apisandbox.zuora.com/v1/action/update
Request Body: 

{
  "objects": [
    {
      "ActiveCurrencies""USD,EUR",
      "Id" : "2c92c0f977091c5f01770ed74171140e"
    }
  ],
  "type""ProductRatePlan"
}
Response Body:
[
    {
        "Success"true,
        "Id""2c92c0f977091c5f01770ed74171140e"
    }
]

Note: You must include the default currency in the ActiveCurrencies parameter.  In my case, I'm activating EUR currency for a specific rate plan but I'm including default currency in my parameter list (i.e. USD) 

If you do not include it, you will get the below error message
"You must activate your default currency USD for every product rate plan."



 

Thanks,
Prem Anandh