APIs & Integrations

Nandita
Member

Multi-currency - Create Deal API does not do currency validation

We have configured multi-currencies in Hubspot and want to create deal with the associated currency using Hubspot API. However, if I pass wrong currency value(not configured in Hubspot or any random value), Create Deals API, doesn't throw any error and goes ahead creates the deal.

 

Is there a way we can fetch the list of supported curriences in the Hubspot portal so that we can do the currency validation on our side? Or could you please provide a way which satisfies our usecase?

0 Upvotes
1 Reply 1
WendyGoh
HubSpot Employee
HubSpot Employee

Multi-currency - Create Deal API does not do currency validation

Hey @Nandita,

 

When looking to retireve portal's currency information, you can use this endpoint: Get account details in which it'll display the currency of the portal. 

 

0 Upvotes