Call the correct endpoint to retrieve yearly billing usage

This commit is contained in:
Imdad Ahad
2017-08-17 16:02:30 +01:00
parent fa99af6598
commit 232912ab3b
2 changed files with 28 additions and 1 deletions

View File

@@ -20,6 +20,6 @@ class BillingAPIClient(NotifyAdminAPIClient):
def get_service_usage(self, service_id, year=None):
return self.get(
'/service/{0}/billing/yearly-usage'.format(service_id),
'/service/{0}/billing/yearly-usage-summary'.format(service_id),
params=dict(year=year)
)