Solved

How to get the currency associated with the account?

  • 8 November 2022
  • 3 replies
  • 97 views

Badge +2

Hello,

Is there a way to have the currency code associated with the Klaviyo account included with the API responses when a monetary value is returned?

As it stands we can only get a number, but there is no indication about which currency the number is in.

For example: v1/metric/<metric_id>/export?measurement=value returns results like this:

{
"date": "2022-10-09 00:00:00",
"values": [
1583.6
]
}

(without any currency code)

icon

Best answer by Taylor Tarpley 8 November 2022, 23:01

View original

3 replies

Userlevel 7
Badge +60

Hi there @TianaS

 

Thanks for sharing your question with us! Happy to share some insight here! 

 

You can definitely add the currency code associated with the account to your API call. The reason why it isn’t natively there is because currency needs to be set up a separate property in the event and would need to use a string. 

 

It should be noted that traditionally Klaviyo was built to work on a 1:1 level with ecommerce stores and created to separate/manage data and keep reporting/analytics as concise as possible. Therefore, if you have stores in multiple countries, we always recommend you create a Klaviyo store per instance. With that being said, you are not able to send ISO code but rather the currency symbol instead. 
 

To gain more insight, I’d recommend checking out these similar Community threads of users who asked similar questions!


Hope this helps!
 -Taylor 

Badge +2

Thanks for your answer Taylor,

I’m guessing there is no way to achieve that without setting up custom events then? We were looking for a more general solution that doesn’t require users to set up custom events, but it’s understandable why this design choice was made.

 

Userlevel 7
Badge +60

Hi @TianaS

 

Unfortunately no, this would be the only way to set it up, but once you add in this property to the call you shouldn’t have to do anything else! 

 

-Taylor 

Reply