Skip to main content

payment_methods

Creates, updates, deletes, gets or lists a payment_methods resource.

Overview

Namepayment_methods
TypeResource
Idazure.billing.payment_methods

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
propertiesobjectPayment method link properties
tagsobjectDictionary 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 < > % & \ ? /

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_billing_profileselectbillingAccountName, billingProfileName, paymentMethodNameGets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
list_by_billing_profileselectbillingAccountName, billingProfileNameLists payment methods attached to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
get_by_billing_accountselectbillingAccountName, paymentMethodNameGets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
list_by_billing_accountselectbillingAccountNameLists the payment methods available for a billing account. Along with the payment methods owned by the caller, these payment methods can be attached to a billing profile to make payments. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
get_by_userselectpaymentMethodNameGets a payment method owned by the caller.
list_by_userselectLists the payment methods owned by the caller.
delete_by_userdeletepaymentMethodNameDeletes a payment method owned by the caller.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
billingAccountNamestringThe ID that uniquely identifies a billing account.
billingProfileNamestringThe ID that uniquely identifies a billing profile.
paymentMethodNamestringThe ID that uniquely identifies a payment method.

SELECT examples

Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

SELECT
properties,
tags
FROM azure.billing.payment_methods
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND billingProfileName = '{{ billingProfileName }}' -- required
AND paymentMethodName = '{{ paymentMethodName }}' -- required
;

DELETE examples

Deletes a payment method owned by the caller.

DELETE FROM azure.billing.payment_methods
WHERE paymentMethodName = '{{ paymentMethodName }}' --required
;