Billing Requests - List By User
The list of billing requests submitted by a user.
GET https://management.azure.com/providers/Microsoft.Billing/billingRequests?api-version=2024-04-01
GET https://management.azure.com/providers/Microsoft.Billing/billingRequests?api-version=2024-04-01&filter={filter}&orderBy={orderBy}&top={top}&skip={skip}&count={count}&search={search}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
api-version
|
query | True |
string |
The version of the API to be used with the client request. The current version is 2024-04-01. |
count
|
query |
boolean |
The count query option allows clients to request a count of the matching resources included with the resources in the response. |
|
filter
|
query |
string |
The filter query option allows clients to filter a collection of resources that are addressed by a request URL. |
|
order
|
query |
string |
The orderby query option allows clients to request resources in a particular order. |
|
search
|
query |
string |
The search query option allows clients to request items within a collection matching a free-text search expression. search is only supported for string fields. |
|
skip
|
query |
integer (int64) |
The skip query option requests the number of items in the queried collection that are to be skipped and not included in the result. |
|
top
|
query |
integer (int64) |
The top query option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The list of billing requests. |
|
Other Status Codes |
Error response describing why the operation failed. |
Examples
Billing |
Billing |
BillingRequestsListByUser
Sample request
Sample response
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingRequests/00000000-0000-0000-0000-000000000000",
"name": "00000000-0000-0000-0000-000000000000",
"properties": {
"additionalInformation": {
"RoleId": "40000000-aaaa-bbbb-cccc-200000000006"
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingAccountDisplayName": "Contoso",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx",
"billingProfileName": "xxxx-xxxx-xxx-xxx",
"billingProfileDisplayName": "Contoso Operations Billing",
"createdBy": {
"upn": "foo@contoso.com"
},
"creationDate": "2024-04-01T17:32:28Z",
"expirationDate": "2023-04-15T17:32:28Z",
"requestScope": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx",
"status": "Pending",
"type": "RoleAssignment",
"lastUpdatedBy": {
"upn": "foo@contoso.com"
},
"lastUpdatedDate": "2024-04-01T17:32:28Z"
},
"type": "Microsoft.Billing/billingRequests"
},
{
"id": "/providers/Microsoft.Billing/billingRequests/11111111-1111-1111-1111-111111111111",
"name": "11111111-1111-1111-1111-111111111111",
"properties": {
"reviewedBy": {
"upn": "admin@contosofinance.com"
},
"reviewalDate": "2023-03-02T17:32:28Z",
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingAccountDisplayName": "Contoso",
"createdBy": {
"upn": "foo@contoso.com"
},
"creationDate": "2023-03-01T17:32:28Z",
"expirationDate": "2023-03-15T17:32:28Z",
"requestScope": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/associatedTenants/100000000-0000-0000-0000-00000000",
"status": "Approved",
"type": "ProvisioningAccess",
"lastUpdatedBy": {
"upn": "admin@contosofinance.com"
},
"lastUpdatedDate": "2023-03-02T17:32:28Z"
},
"type": "Microsoft.Billing/billingRequests"
}
]
}
BillingRequestsListByUserWithFilter
Sample request
Sample response
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingRequests/11111111-1111-1111-1111-111111111111",
"name": "11111111-1111-1111-1111-111111111111",
"properties": {
"reviewedBy": {
"upn": "admin@contosofinance.com"
},
"reviewalDate": "2023-03-02T17:32:28Z",
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingAccountDisplayName": "Contoso",
"createdBy": {
"upn": "foo@contoso.com"
},
"creationDate": "2023-03-01T17:32:28Z",
"expirationDate": "2023-03-15T17:32:28Z",
"requestScope": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/associatedTenants/100000000-0000-0000-0000-00000000",
"status": "Approved",
"type": "ProvisioningAccess",
"lastUpdatedBy": {
"upn": "admin@contosofinance.com"
},
"lastUpdatedDate": "2023-03-02T17:32:28Z"
},
"type": "Microsoft.Billing/billingRequests"
}
]
}
Definitions
Name | Description |
---|---|
Billing |
A request submitted by a user to manage billing. Users with an owner role on the scope can approve or decline these requests. |
Billing |
A container for a list of resources |
Billing |
A request submitted by a user to manage billing. Users with an owner role on the scope can approve or decline these requests. |
Billing |
Status of billing request. |
Billing |
Type of billing request. |
Created |
The principal of the entity who created the request. |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Last |
The principal of the entity who last updated the request. |
Principal |
A principal who has interacted with a billing entity. |
Provisioning |
The provisioning state of the resource during a long-running operation. |
Reviewed |
The principal of the request reviewer. Will only be set if request is approved. |
system |
Metadata pertaining to creation and last modification of the resource. |
BillingRequest
A request submitted by a user to manage billing. Users with an owner role on the scope can approve or decline these requests.
Name | Type | Description |
---|---|---|
id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
properties |
A request submitted by a user to manage billing. Users with an owner role on the scope can approve or decline these requests. |
|
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? / |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
BillingRequestListResult
A container for a list of resources
Name | Type | Description |
---|---|---|
nextLink |
string |
The link (url) to the next page of results. |
value |
The list of resources. |
BillingRequestProperties
A request submitted by a user to manage billing. Users with an owner role on the scope can approve or decline these requests.
Name | Type | Description |
---|---|---|
additionalInformation |
object |
Additional information for the billing request. |
billingAccountDisplayName |
string |
The name of the billing account. |
billingAccountId |
string |
The fully qualified ID that uniquely identifies a billing account. |
billingAccountName |
string |
The ID that uniquely identifies a billing account. |
billingAccountPrimaryBillingTenantId |
string |
The primary tenant ID of the billing account for which the billing request was submitted. |
billingProfileDisplayName |
string |
The name of the billing profile. |
billingProfileId |
string |
The fully qualified ID that uniquely identifies a billing profile. |
billingProfileName |
string |
The ID that uniquely identifies a billing profile. |
billingScope |
string |
The billing scope for which the request will be applied. This is a read only property derived by the service. |
createdBy |
The principal of the entity who created the request. |
|
creationDate |
string (date-time) |
The date and time when the request was created. |
customerDisplayName |
string |
The name of the customer. |
customerId |
string |
The fully qualified ID that uniquely identifies a customer. |
customerName |
string |
The ID that uniquely identifies a customer. |
decisionReason |
string |
The reason to approve or decline the request. |
expirationDate |
string (date-time) |
The date and time when the request expires. |
invoiceSectionDisplayName |
string |
The name of the invoice section. |
invoiceSectionId |
string |
The fully qualified ID that uniquely identifies an invoice section. |
invoiceSectionName |
string |
The ID that uniquely identifies an invoice section. |
justification |
string |
Justification for submitting request. |
lastUpdatedBy |
The principal of the entity who last updated the request. |
|
lastUpdatedDate |
string (date-time) |
Date and time of last update. |
provisioningState |
The provisioning state of the resource during a long-running operation. |
|
recipients |
The recipients of the billing request. |
|
requestScope |
string |
The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}'). |
reviewalDate |
string (date-time) |
The date and time when the request was reviewed. |
reviewedBy |
The principal of the request reviewer. Will only be set if request is approved. |
|
status |
Status of billing request. |
|
subscriptionDisplayName |
string |
The name of the billing subscription. |
subscriptionId |
string |
The fully qualified ID that uniquely identifies a billing subscription. |
subscriptionName |
string |
The ID that uniquely identifies a billing subscription. |
type |
Type of billing request. |
BillingRequestStatus
Status of billing request.
Value | Description |
---|---|
Other | |
Pending | |
Approved | |
Declined | |
Cancelled | |
Completed | |
Expired |
BillingRequestType
Type of billing request.
Value | Description |
---|---|
Other | |
InvoiceAccess | |
ProvisioningAccess | |
RoleAssignment | |
UpdateBillingPolicy |
CreatedBy
The principal of the entity who created the request.
Name | Type | Description |
---|---|---|
objectId |
string |
The object id of the principal who has interacted with a billing entity. |
tenantId |
string |
The tenant id of the principal who has interacted with a billing entity. |
upn |
string |
The user principal name of the principal who has interacted with a billing entity. |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
LastUpdatedBy
The principal of the entity who last updated the request.
Name | Type | Description |
---|---|---|
objectId |
string |
The object id of the principal who has interacted with a billing entity. |
tenantId |
string |
The tenant id of the principal who has interacted with a billing entity. |
upn |
string |
The user principal name of the principal who has interacted with a billing entity. |
Principal
A principal who has interacted with a billing entity.
Name | Type | Description |
---|---|---|
objectId |
string |
The object id of the principal who has interacted with a billing entity. |
tenantId |
string |
The tenant id of the principal who has interacted with a billing entity. |
upn |
string |
The user principal name of the principal who has interacted with a billing entity. |
ProvisioningState
The provisioning state of the resource during a long-running operation.
Value | Description |
---|---|
Succeeded | |
Canceled | |
Failed | |
New | |
Pending | |
Provisioning |
ReviewedBy
The principal of the request reviewer. Will only be set if request is approved.
Name | Type | Description |
---|---|---|
objectId |
string |
The object id of the principal who has interacted with a billing entity. |
tenantId |
string |
The tenant id of the principal who has interacted with a billing entity. |
upn |
string |
The user principal name of the principal who has interacted with a billing entity. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |