Skip to content

Commit a69a198

Browse files
committed
CM+B - added status codes for enterprise-api
1 parent 8380d35 commit a69a198

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/cost-management-billing/manage/enterprise-api.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: mumami
55
tags: billing
66
ms.service: cost-management-billing
77
ms.topic: reference
8-
ms.date: 02/14/2020
8+
ms.date: 04/14/2020
99
ms.author: banders
1010

1111
---
@@ -36,7 +36,7 @@ A Swagger endpoint is available [here](https://consumption.azure.com/swagger/ui/
3636
* **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.
3737

3838
## 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.
4040

4141
## Helper APIs
4242
**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
4646
|Response Status Code|Message|Description|
4747
|-|-|-|
4848
|200| OK|No error|
49+
|400| Bad Request| Invalid params – Date ranges, EA numbers etc.|
4950
|401| Unauthorized| API Key not found, Invalid, Expired etc.|
5051
|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.|
5253
|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

Comments
 (0)