Invoice Sections - Create Or Update
Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}?api-version=2024-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
billing
|
path | True |
string pattern: ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$ |
The ID that uniquely identifies a billing account. |
billing
|
path | True |
string pattern: ^[a-zA-Z\d-_]{1,128}$ |
The ID that uniquely identifies a billing profile. |
invoice
|
path | True |
string pattern: ^[a-zA-Z\d-_]{1,128}$ |
The ID that uniquely identifies an invoice section. |
api-version
|
query | True |
string |
The version of the API to be used with the client request. The current version is 2024-04-01. |
Request Body
Name | Type | Description |
---|---|---|
properties |
An invoice section. |
|
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 < > % & \ ? / |
Responses
Name | Type | Description |
---|---|---|
200 OK |
An invoice section. |
|
201 Created |
An invoice section. |
|
202 Accepted |
An operation accepted result that returns a 'Location' header that the client can poll to view the result of the operation. Headers
|
|
Other Status Codes |
Error response describing why the operation failed. |
Examples
InvoiceSectionsCreateOrUpdate
Sample request
PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx/invoiceSections/invoice-section-1?api-version=2024-04-01
{
"properties": {
"displayName": "Invoice Section 1",
"tags": {
"pcCode": "A123456",
"costCategory": "Support"
}
}
}
Sample response
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx/invoiceSections/invoice-section-1",
"name": "invoice-section-1",
"properties": {
"displayName": "Invoice Section 1",
"systemId": "yyyy-yyyy-yyy-yyy",
"tags": {
"pcCode": "A123456",
"costCategory": "Support"
}
},
"type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections"
}
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx/invoiceSections/invoice-section-1",
"name": "invoice-section-1",
"properties": {
"displayName": "Invoice Section 1",
"systemId": "yyyy-yyyy-yyy-yyy",
"tags": {
"pcCode": "A123456",
"costCategory": "Support"
}
},
"type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections"
}
location: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/operationResults/putAssociatedTenant_00000000-0000-0000-0000-000000000000?api-version=2024-04-01
retry-after: 10
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Invoice |
An invoice section. |
Invoice |
An invoice section. |
Invoice |
Identifies the status of an invoice section. |
Invoice |
Reason for the specified invoice section status. |
Provisioning |
The provisioning state of the resource during a long-running operation. |
system |
Metadata pertaining to creation and last modification of the resource. |
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. |
InvoiceSection
An invoice section.
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 |
An invoice section. |
|
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" |
InvoiceSectionProperties
An invoice section.
Name | Type | Description |
---|---|---|
displayName |
string |
The name of the invoice section. |
provisioningState |
The provisioning state of the resource during a long-running operation. |
|
reasonCode |
Reason for the specified invoice section status. |
|
state |
Identifies the status of an invoice section. |
|
systemId |
string |
The system generated unique identifier for an invoice section. |
tags |
object |
Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? / |
targetCloud |
string |
Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds. |
InvoiceSectionState
Identifies the status of an invoice section.
Value | Description |
---|---|
Other | |
Active | |
Deleted | |
Disabled | |
UnderReview | |
Warned | |
Restricted |
InvoiceSectionStateReasonCode
Reason for the specified invoice section status.
Value | Description |
---|---|
Other | |
PastDue | |
UnusualActivity | |
SpendingLimitReached | |
SpendingLimitExpired |
ProvisioningState
The provisioning state of the resource during a long-running operation.
Value | Description |
---|---|
Succeeded | |
Canceled | |
Failed | |
New | |
Pending | |
Provisioning |
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. |