Microsoft.BillingBenefits (preview:2024-11-01)

2025/02/26 • 22 new methods

Operations_List (new)
Description List all the operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
isDataAction: boolean ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
origin: enum ,
actionType: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlanOrderAlias_Create (new)
Description Create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.BillingBenefits/savingsPlanOrderAliases/{savingsPlanOrderAliasName}
{
savingsPlanOrderAliasName: string ,
api-version: string ,
body:
{
sku:
{
name: string ,
}
,
kind: string ,
properties:
{
displayName: string ,
savingsPlanOrderId: string ,
provisioningState: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
renew: boolean ,
}
,
}
,
}

⚐ Response (200)

{
sku:
{
name: string ,
}
,
kind: string ,
properties:
{
displayName: string ,
savingsPlanOrderId: string ,
provisioningState: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
renew: boolean ,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
retry-after: integer ,
}
,
$schema:
{
sku:
{
name: string ,
}
,
kind: string ,
properties:
{
displayName: string ,
savingsPlanOrderId: string ,
provisioningState: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
renew: boolean ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlanOrderAlias_Get (new)
Description Get a savings plan.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrderAliases/{savingsPlanOrderAliasName}
{
savingsPlanOrderAliasName: string ,
api-version: string ,
}

⚐ Response (200)

{
sku:
{
name: string ,
}
,
kind: string ,
properties:
{
displayName: string ,
savingsPlanOrderId: string ,
provisioningState: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
renew: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlanOrder_Get (new)
Description Get a savings plan order.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}
{
savingsPlanOrderId: string ,
api-version: string ,
$expand: string ,
}

⚐ Response (200)

{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
provisioningState: enum ,
billingScopeId: string ,
billingProfileId: string ,
customerId: string ,
billingAccountId: string ,
term: enum ,
billingPlan: enum ,
expiryDateTime: string ,
benefitStartTime: string ,
planInformation:
{
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
startDate: string ,
nextPaymentDueDate: string ,
transactions:
[
{
dueDate: string ,
paymentDate: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
status: enum ,
extendedStatusInfo:
{
statusCode: string ,
message: string ,
}
,
billingAccount: string ,
}
,
]
,
}
,
savingsPlans:
[
string ,
]
,
extendedStatusInfo:
{
statusCode: string ,
message: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlanOrder_Elevate (new)
Description Elevate as owner on savings plan order based on billing permissions.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/elevate
{
savingsPlanOrderId: string ,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
properties:
{
principalId: string ,
roleDefinitionId: string ,
scope: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlanOrder_List (new)
Description List all Savings plan orders.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrders
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
provisioningState: enum ,
billingScopeId: string ,
billingProfileId: string ,
customerId: string ,
billingAccountId: string ,
term: enum ,
billingPlan: enum ,
expiryDateTime: string ,
benefitStartTime: string ,
planInformation:
{
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
startDate: string ,
nextPaymentDueDate: string ,
transactions:
[
{
dueDate: string ,
paymentDate: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
status: enum ,
extendedStatusInfo:
{
statusCode: string ,
message: string ,
}
,
billingAccount: string ,
}
,
]
,
}
,
savingsPlans:
[
string ,
]
,
extendedStatusInfo:
{
statusCode: string ,
message: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlan_List (new)
Description List savings plans in an order.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans
{
savingsPlanOrderId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
provisioningState: enum ,
displayProvisioningState: string ,
billingScopeId: string ,
billingProfileId: string ,
customerId: string ,
billingAccountId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
userFriendlyAppliedScopeType: string ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
expiryDateTime: string ,
purchaseDateTime: string ,
benefitStartTime: string ,
extendedStatusInfo:
{
statusCode: string ,
message: string ,
}
,
renew: boolean ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
renew: boolean ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
}
,
}
,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlan_ListAll (new)
Description List savings plans.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlans
{
api-version: string ,
$filter: string ,
$orderby: string ,
refreshSummary: string ,
$skiptoken: number ,
selectedState: string ,
take: number ,
}

⚐ Response (200)

{
value:
[
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
provisioningState: enum ,
displayProvisioningState: string ,
billingScopeId: string ,
billingProfileId: string ,
customerId: string ,
billingAccountId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
userFriendlyAppliedScopeType: string ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
expiryDateTime: string ,
purchaseDateTime: string ,
benefitStartTime: string ,
extendedStatusInfo:
{
statusCode: string ,
message: string ,
}
,
renew: boolean ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
renew: boolean ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
}
,
}
,
}
,
}
,
}
,
]
,
nextLink: string ,
additionalProperties:
[
{
name: string ,
value:
{
succeededCount: number ,
failedCount: number ,
expiringCount: number ,
expiredCount: number ,
pendingCount: number ,
cancelledCount: number ,
processingCount: number ,
noBenefitCount: number ,
warningCount: number ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlan_Get (new)
Description Get savings plan.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}
{
savingsPlanOrderId: string ,
savingsPlanId: string ,
api-version: string ,
$expand: string ,
}

⚐ Response (200)

{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
provisioningState: enum ,
displayProvisioningState: string ,
billingScopeId: string ,
billingProfileId: string ,
customerId: string ,
billingAccountId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
userFriendlyAppliedScopeType: string ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
expiryDateTime: string ,
purchaseDateTime: string ,
benefitStartTime: string ,
extendedStatusInfo:
{
statusCode: string ,
message: string ,
}
,
renew: boolean ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
renew: boolean ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
}
,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlan_Update (new)
Description Update savings plan.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}
{
savingsPlanOrderId: string ,
savingsPlanId: string ,
api-version: string ,
body:
{
properties:
{
displayName: string ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
renew: boolean ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
}
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
provisioningState: enum ,
displayProvisioningState: string ,
billingScopeId: string ,
billingProfileId: string ,
customerId: string ,
billingAccountId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
userFriendlyAppliedScopeType: string ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
expiryDateTime: string ,
purchaseDateTime: string ,
benefitStartTime: string ,
extendedStatusInfo:
{
statusCode: string ,
message: string ,
}
,
renew: boolean ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
renew: boolean ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (404)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SavingsPlan_ValidateUpdate (new)
Description Validate savings plan patch.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/validate
{
savingsPlanOrderId: string ,
savingsPlanId: string ,
api-version: string ,
body:
{
benefits:
[
{
displayName: string ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
commitment:
{
grain: enum ,
}
,
effectiveDateTime: string ,
renew: boolean ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
}
,
}
,
}
,
}
,
]
,
}
,
}

⚐ Response (200)

{
benefits:
[
{
valid: boolean ,
reasonCode: string ,
reason: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ValidatePurchase (new)
Description Validate savings plan purchase.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.BillingBenefits/validate
{
api-version: string ,
body:
{
benefits:
[
{
sku:
{
name: string ,
}
,
kind: string ,
properties:
{
displayName: string ,
savingsPlanOrderId: string ,
provisioningState: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
renew: boolean ,
}
,
}
,
]
,
}
,
}

⚐ Response (200)

{
benefits:
[
{
valid: boolean ,
reasonCode: string ,
reason: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationOrderAlias_Create (new)
Description Create a reservation order alias.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.BillingBenefits/reservationOrderAliases/{reservationOrderAliasName}
{
reservationOrderAliasName: string ,
api-version: string ,
body:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
quantity: integer ,
renew: boolean ,
reservedResourceType: enum ,
reviewDateTime: string ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
}
,
}
,
}

⚐ Response (200)

{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
displayName: string ,
reservationOrderId: string ,
provisioningState: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
quantity: integer ,
renew: boolean ,
reservedResourceType: enum ,
reviewDateTime: string ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
retry-after: integer ,
}
,
$schema:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
displayName: string ,
reservationOrderId: string ,
provisioningState: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
quantity: integer ,
renew: boolean ,
reservedResourceType: enum ,
reviewDateTime: string ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationOrderAlias_Get (new)
Description Get a reservation order alias.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/reservationOrderAliases/{reservationOrderAliasName}
{
reservationOrderAliasName: string ,
api-version: string ,
}

⚐ Response (200)

{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
displayName: string ,
reservationOrderId: string ,
provisioningState: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
quantity: integer ,
renew: boolean ,
reservedResourceType: enum ,
reviewDateTime: string ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Discounts_Create (new)
Description Create discount.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}
{
subscriptionId: string ,
resourceGroupName: string ,
discountName: string ,
api-version: string ,
body:
{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
retry-after: integer ,
}
,
$schema:
{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Discounts_Delete (new)
Description Delete discount. Clears the metadata from the user's view.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}
{
subscriptionId: string ,
resourceGroupName: string ,
discountName: string ,
api-version: string ,
}

⚐ Response (202)

{
location: string ,
azure-asyncoperation: string ,
retry-after: integer ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Discount_Get (new)
Description Get discount at resource group level
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}
{
subscriptionId: string ,
resourceGroupName: string ,
discountName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Discount_Update (new)
Description Update discounts
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}
{
subscriptionId: string ,
resourceGroupName: string ,
discountName: string ,
api-version: string ,
body:
{
properties:
{
displayName: string ,
}
,
tags: object ,
}
,
}

⚐ Response (200)

{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Discounts_ResourceGroupList (new)
Description List discounts at resource group level
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Discounts_SubscriptionList (new)
Description List discounts at subscription level
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.BillingBenefits/discounts
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Discounts_Cancel (new)
Description Cancel discount. Stops applying the benefit.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}/cancel
{
subscriptionId: string ,
resourceGroupName: string ,
discountName: string ,
api-version: string ,
}

⚐ Response (202)

{
location: string ,
azure-asyncoperation: string ,
retry-after: integer ,
}

⚐ Response (200)

{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Discounts_ScopeList (new)
Description List discounts that are applicable for a given scope. Currently supported scopes: billing accounts
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.BillingBenefits/applicableDiscounts
{
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
entityType: enum ,
productCode: string ,
startAt: string ,
systemId: string ,
provisioningState: enum ,
billingAccountResourceId: string ,
billingProfileResourceId: string ,
customerResourceId: string ,
displayName: string ,
status: enum ,
benefitResourceId: string ,
appliedScopeType: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}