You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cost-management-billing/manage/enterprise-api.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: mumami
5
5
tags: billing
6
6
ms.service: cost-management-billing
7
7
ms.topic: reference
8
-
ms.date: 02/14/2020
8
+
ms.date: 04/14/2020
9
9
ms.author: banders
10
10
11
11
---
@@ -36,7 +36,7 @@ A Swagger endpoint is available [here](https://consumption.azure.com/swagger/ui/
36
36
***Reserved Instance Details** - The [Reserved Instance usage API](/rest/api/billing/enterprise/billing-enterprise-api-reserved-instance-usage) returns the usage of the Reserved Instance purchases. The [Reserved Instance charges API](/rest/api/billing/enterprise/billing-enterprise-api-reserved-instance-usage) shows the billing transactions made.
37
37
38
38
## Data Freshness
39
-
Etags will be returned in the response of all the above API. A change in Etag indicates the data has been refreshed. In subsequent calls to the same API using the same parameters, pass the captured Etag with the key “If-None-Match” in the header of http request. The response status code would be "NotModified" if the data has not been refreshed any further and no data will be returned. API will return the full dataset for the required period whenever there is an etag change.
39
+
Etags will be returned in the response of all the above API. A change in Etag indicates the data has been refreshed. In subsequent calls to the same API using the same parameters, pass the captured Etag with the key "If-None-Match" in the header of http request. The response status code would be "NotModified" if the data has not been refreshed any further and no data will be returned. API will return the full dataset for the required period whenever there is an etag change.
40
40
41
41
## Helper APIs
42
42
**List Billing Periods** - The [Billing Periods API](/rest/api/billing/enterprise/billing-enterprise-api-billing-periods) returns a list of billing periods that have consumption data for the specified Enrollment in reverse chronological order. Each Period contains a property pointing to the API route for the four sets of data - BalanceSummary, UsageDetails, Marketplace Charges, and Price Sheet.
@@ -46,7 +46,9 @@ Etags will be returned in the response of all the above API. A change in Etag in
46
46
|Response Status Code|Message|Description|
47
47
|-|-|-|
48
48
|200| OK|No error|
49
+
|400| Bad Request| Invalid params – Date ranges, EA numbers etc.|
49
50
|401| Unauthorized| API Key not found, Invalid, Expired etc.|
50
51
|404| Unavailable| Report endpoint not found|
51
-
|400| Bad Request| Invalid params – Date ranges, EA numbers etc.|
52
+
|429 | TooManyRequests | The request was throttled. Retry after waiting for the time specified in the <code>x-ms-ratelimit-microsoft.consumption-retry-after</code> header.|
52
53
|500| Server Error| Unexpected error processing request|
54
+
| 503 | ServiceUnavailable | The service is temporarily unavailable. Retry after waiting for the time specified in the <code>Retry-After</code> header.|
0 commit comments