Delen via


BillingAccountResource.AddPaymentTerms 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource> AddPaymentTerms (Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Billing.Models.BillingPaymentTerm> arrayOfPaymentTerm, System.Threading.CancellationToken cancellationToken = default);
abstract member AddPaymentTerms : Azure.WaitUntil * seq<Azure.ResourceManager.Billing.Models.BillingPaymentTerm> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource>
override this.AddPaymentTerms : Azure.WaitUntil * seq<Azure.ResourceManager.Billing.Models.BillingPaymentTerm> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingAccountResource>
Public Overridable Function AddPaymentTerms (waitUntil As WaitUntil, arrayOfPaymentTerm As IEnumerable(Of BillingPaymentTerm), Optional cancellationToken As CancellationToken = Nothing) As 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