API to view Developer Usage quota remaining

Hi,

Are there any API calls to view a developers' usage or balance.

For example, if a developer is on a Volume Banded rate plan of 1000 calls per month, what end-point can tell me the number of successful calls they've made for the current billing period?

The API docs were suggesting:

https://api.enterprise.apigee.com/v1/mint/organizations/{organization}/developers/{developer-id}/dev...

However, the 'usage' field and the 'amount' field does not appear to be incrementing when the developer makes calls. Furthermore, the 'usage' field seems to be a Decimal value rather than an integer.

Thanks,

1 1 343
1 REPLY 1

There isn't an explicit API to request that information, but there is the Quota policy, which sets that information into context variables when you invoke it.

Therefore MAYBE you can call the Quota policy with a MessageWeight of zero (0) to get the information without changing the quota status.

Have you tried that? I Don't know if MessageWeight=0 is valid. It may not work. But it's worth a try.