BillingAccountResource.AddPaymentTermsAsync Method

Definition

Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/addPaymentTerms
  • Operation Id: BillingAccounts_AddPaymentTerms
  • Default Api Version: 2024-04-01
  • Resource: BillingAccountResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource>> AddPaymentTermsAsync (Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Billing.Models.BillingPaymentTerm> arrayOfPaymentTerm, System.Threading.CancellationToken cancellationToken = default);
abstract member AddPaymentTermsAsync : Azure.WaitUntil * seq<Azure.ResourceManager.Billing.Models.BillingPaymentTerm> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource>>
override this.AddPaymentTermsAsync : Azure.WaitUntil * seq<Azure.ResourceManager.Billing.Models.BillingPaymentTerm> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource>>
Public Overridable Function AddPaymentTermsAsync (waitUntil As WaitUntil, arrayOfPaymentTerm As IEnumerable(Of BillingPaymentTerm), Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of BillingAccountResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

arrayOfPaymentTerm
IEnumerable<BillingPaymentTerm>

The properties of payment term.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

arrayOfPaymentTerm is null.

Applies to