Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph.partners.billing
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Note
This API is available for Cloud Solution Provider (CSP) partners only to access their billed and unbilled reconciliation data for a tenant. To learn more about the CSP program, see Microsoft Cloud Solution Provider.
Export billed aggregated Azure usage data for a specific invoice from a billedAggregatedUsage resource.
This API is available in the following national cloud deployments.
| Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
|---|---|---|---|
| ✅ | ❌ | ❌ | ❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
| Permission type | Least privileged permissions | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | PartnerBilling.Read.All | Not available. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | PartnerBilling.Read.All | Not available. |
HTTP request
POST /reports/partners/billing/aggregatedUsage/billed/export
Request headers
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
Request body
In the request body, supply a JSON representation of the parameters.
The following table shows the parameters that you can use with this action.
| Parameter | Type | Description |
|---|---|---|
| invoiceId | String | The invoice ID for which to export billed aggregated Azure usage data. Required. |
Response
If successful, this method returns a 202 Accepted response code and a Location header that contains the URL to the long-running operation. You can check the status of the long-running operation by making a GET request to this URL that returns one of the following objects in the response body: microsoft.graph.partners.billing.runningOperation, microsoft.graph.partners.billing.exportSuccessOperation, or microsoft.graph.partners.billing.failedOperation.
Examples
Request
The following example shows a request.
POST https://graph.microsoft.com/beta/reports/partners/billing/aggregatedUsage/billed/export
Content-Type: application/json
{
"invoiceId": "G000000"
}
Response
The following example shows the response.
HTTP/1.1 202 Accepted
Location: https://graph.microsoft.com/beta/reports/partners/billing/operations/9ab9cb54-d07f-4f52-9ea6-a09d7de52c14