#Billing question

20 messages · Page 1 of 1 (latest)

cedar basin
#

Hey, the math doesn't add up here... please check the images! How can I get the same amount through the API?

copper sirenBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

summer thorn
#

I am wondering if it is related to the time zones. @harsh sphinx

harsh sphinx
#

just to compare apples to apples, can you try setting grouping: gpuTypeId in the billing api request?

#

I will see if there's a difference in the backend queries, it looks like there might be

#

if so it'll be a quick fix

#

try now @cedar basin I found a difference

#

thanks for reporting, I think that was it

#

but lmk if numbers still don't agree

#

hopefully you can see that the diskSpaceBilledGB is really in units of GB * time, and so is correct but isn't super informative

cedar basin
#

Is it correct to assume that amount should be same as what's shown in billing explorer?

harsh sphinx
#

yeah, it should be the same

#

get rid of all the filters though, they seem to be filled in with default values from the api testing site never mind I see only the two right ones are checked

#

hmm yeah still looks wrong doesn't it. ok, bear with me. will check with my own billing data now and report back when they match / what the issue was

#

ok, I think the fix from yesterday just didn't take. the service the queries are running on has some kinda weird ux for when your changes are actually published

#

try now, the fix is actually there this time Facepalm

cedar basin
#

Thanks!

harsh sphinx
#

great. sorry it took some stumbling around. hope the billing apis help you out