Payment Methods - List By User
列出调用方拥有的付款方式。
GET https://management.azure.com/providers/Microsoft.Billing/paymentMethods?api-version=2024-04-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
api-version
|
query | True |
string |
要用于客户端请求的 API 的版本。 当前版本为 2024-04-01。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行。 请求已成功。 |
|
Other Status Codes |
描述操作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
ListPaymentMethodOwnedByUser
示例请求
示例响应
{
"value": [
{
"id": "/providers/Microsoft.Billing/paymentMethods/ABCDABCDABC0",
"name": "ABCDABCDABC0",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"accountHolderName": "abc",
"expiration": "1/2035",
"lastFourDigits": "1270",
"family": "CreditCard",
"paymentMethodType": "mc",
"displayName": "Master Card",
"logos": [
{
"mimeType": "image/png",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_mc_rect.png"
},
{
"mimeType": "image/svg+xml",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_mc.svg"
}
],
"status": "active"
}
},
{
"id": "/providers/Microsoft.Billing/paymentMethods/ABCDABCDABC1",
"name": "ABCDABCDABC1",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"accountHolderName": "abc",
"expiration": "1/2025",
"lastFourDigits": "7373",
"family": "CreditCard",
"paymentMethodType": "visa",
"displayName": "Visa",
"logos": [
{
"mimeType": "image/png",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa_rect.png"
},
{
"mimeType": "image/svg+xml",
"url": "https://contoso.com/staticresourceservice/images/v4/logo_visa.svg"
}
],
"status": "active"
}
}
]
}
定义
名称 | 说明 |
---|---|
created |
创建资源的标识的类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Payment |
付款方式。 |
payment |
付款方式系列。 |
Payment |
付款方式的徽标。 |
Payment |
付款方式列表。 |
payment |
付款方式的状态。 |
system |
与创建和上次修改资源相关的元数据。 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
PaymentMethod
付款方式。
名称 | 类型 | 说明 |
---|---|---|
id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
资源的名称 |
properties.accountHolderName |
string |
付款方式的帐户持有者名称。 仅支持使用家庭信用卡的付款方式。 |
properties.displayName |
string |
付款方式的显示名称。 |
properties.expiration |
string |
付款方式的到期月份和年份。 仅支持使用家庭信用卡的付款方式。 |
properties.family |
付款方式系列。 |
|
properties.id |
string |
付款方式的 ID。 |
properties.lastFourDigits |
string |
付款方式的最后四位数字。 |
properties.logos |
付款方式的徽标列表。 |
|
properties.paymentMethodType |
string |
付款方式的类型。 |
properties.status |
付款方式的状态。 |
|
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
tags |
object |
与资源关联的元数据字典。 它可能不会针对所有资源类型进行填充。 支持的最大键/值长度为 256 个字符。 键/值不应为空值,也不应为 null。 键不能包含 <> % & \ ? / |
type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
paymentMethodFamily
付款方式系列。
值 | 说明 |
---|---|
CheckWire | |
CreditCard | |
Credits | |
DirectDebit | |
EWallet | |
None | |
Other | |
TaskOrder |
PaymentMethodLogo
付款方式的徽标。
名称 | 类型 | 说明 |
---|---|---|
mimeType |
string |
徽标的 MIME 类型。 |
url |
string |
徽标图像的公共 URL。 |
PaymentMethodsListResult
付款方式列表。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
指向下一页结果的链接(url)。 |
value |
付款方式列表。 |
paymentMethodStatus
付款方式的状态。
值 | 说明 |
---|---|
active | |
inactive |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |