Manage billing - Get a customer's service costs line items

检索客户订阅产生的服务成本行项。

GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/servicecosts/{billing_period}/lineitems

URI 参数

名称 必需 类型 说明
billing_period
path True

string

要查询服务成本的计费周期。 目前仅支持“MostRecent”。

customer_id
path True

string

客户租户 ID。

请求头

名称 必需 类型 说明
Authorization True

string

授权持有者令牌

ms-correlationid

string

用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求

ms-cv

string

用于在内部跟踪请求。 如果未提供 ms-cv,服务器将为每个请求生成一个新请求

ms-requestid

string

用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求

响应

名称 类型 说明
200 OK

Collections.ResourceCollection[ServiceCostLineItem]

请求成功。 响应正文包含请求的客户服务成本行项。

Media Types: "application/json", "text/json"

400 Bad Request

输入缺失或无效。 响应正文将提供错误详细信息。

Media Types: "application/json", "text/json"

401 Unauthorized

请求未通过身份验证。 客户端需要首先通过合作伙伴 API 服务进行身份验证。

Media Types: "application/json", "text/json"

403 Forbidden

请求已经过身份验证,但被拒绝,因为调用方无权调用该请求。

Media Types: "application/json", "text/json"

404 Not Found

找不到资源或未与给定输入参数一起使用。

Media Types: "application/json", "text/json"

500 Internal Server Error

合作伙伴 API 服务或其某个依赖项未能满足请求。 调用方可能会重试此操作。

Media Types: "application/json", "text/json"

定义

名称 说明
Collections.ResourceCollection[ServiceCostLineItem]
Link
ResourceAttributes
ResourceLinks
ServiceCostLineItem
System.Collections.Generic.KeyValuePair[System.String,System.String]

Collections.ResourceCollection[ServiceCostLineItem]

名称 类型 说明
attributes

ResourceAttributes

items

ServiceCostLineItem[]

links

ResourceLinks

totalCount

integer

名称 类型 说明
headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

ResourceAttributes

名称 类型 说明
etag

string

objectType

string

名称 类型 说明
next

Link

previous

Link

self

Link

ServiceCostLineItem

名称 类型 说明
afterTaxTotal

number

availabilityId

string

chargeType

string

currencyCode

string

currencySymbol

string

customerId

string

customerName

string

discountDetails

string

endDate

string

invoiceNumber

string

invoiceType

string

offerId

string

offerName

string

orderId

string

pretaxTotal

number

priceAdjustmentDescription

string

productId

string

productName

string

publisherId

string

publisherName

string

quantity

number

resellerMPNId

string

skuId

string

skuName

string

startDate

string

subscriptionFriendlyName

string

subscriptionId

string

tax

number

termAndBillingCycle

string

unitPrice

number

System.Collections.Generic.KeyValuePair[System.String,System.String]

名称 类型 说明
key

string

value

string