Microsoft.Billing (preview:2022-10-05)

2025/10/30 • 4 new, 4 deleted methods

MarkupRules_List (new)
Description Retrieve all the active markup rules for the partner billing account/billing profile calling the API.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MarkupRules_CreateOrUpdate (new)
Description Create or update a markup rule
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules/{name}
{
billingAccountId: string ,
billingProfileId: string ,
name: string ,
api-version: string ,
markupRule:
{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MarkupRules_Get (new)
Description Get a markup rule by its rule name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules/{name}
{
billingAccountId: string ,
billingProfileId: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MarkupRules_Delete (new)
Description Delete a markup rule. This will not have an effect on closed month markups
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules/{name}
{
billingAccountId: string ,
billingProfileId: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MarkupRules_List (removed)
Description Retrieve all the active markup rules for the partner billing account/billing profile calling the API.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MarkupRules_CreateOrUpdate (removed)
Description Create or update a markup rule
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules/{name}
{
billingAccountId: string ,
billingProfileId: string ,
name: string ,
api-version: string ,
markupRule:
{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MarkupRules_Get (removed)
Description Get a markup rule by its rule name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules/{name}
{
billingAccountId: string ,
billingProfileId: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
description: string ,
percentage: number ,
startDate: string ,
endDate: string ,
customerDetails:
{
billingAccountId: string ,
billingProfileId: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MarkupRules_Delete (removed)
Description Delete a markup rule. This will not have an effect on closed month markups
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules/{name}
{
billingAccountId: string ,
billingProfileId: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}