question

GaneshShrivas-1319 avatar image
0 Votes"
GaneshShrivas-1319 asked SadiqhAhmed-MSFT answered

how to get filter usages detail api data by usd currency

I am using usages detail api and I am getting "Unit price" in different -different currency like 'CAD', "EURO" etc, so how can I get price always in USD ?

Is there any way to always get cost in usd

here is API- https://docs.microsoft.com/en-us/rest/api/consumption/usage-details/list

I haven't find any filter to get USD cost by api

azure-cost-management
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GaneshShrivas-1319 Could you please post API response here?

0 Votes 0 ·

@SadiqhAhmed-MSFT here is example response here you can check we are getting billing currency 'CAD' but I want api aloways return price in 'USD' currency. Hope it clear to you


145958-usage-detail-api-ex-response.txt


0 Votes 0 ·

1 Answer

SadiqhAhmed-MSFT avatar image
0 Votes"
SadiqhAhmed-MSFT answered

@GaneshShrivas-1319 Currently for EA the pricing currency and billing currency is in local/billing currency – The api only returns in the pricing/billing currency.


If the response helped, do "Accept Answer" and up-vote it

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.