全部产品
云市场

查询月费用分摊服务

更新时间:2019-07-09 10:19:55

接口名

QueryInstanceGaapCost

描述

查询实例的月费用分摊,需要使用主账号的AK查询财务数据。

注:每月初4号中午12:00后可拉取上月全量GAAP账单,此时间前拉取GAAP账单可能不全。

请求参数

名称 类型 是否必填 说明
Action String 要执行的操作,取值:QueryInstanceGaapCost
BillingCycle String 账期YYYY-MM
ProductType String 产品类型。
SubscriptionType String 订阅类型 Subscription/PayAsYouGo
ProductCode String 产品代码。
PageNum Integer 页码,默认值为1。
PageSize Integer 每页数量,默认值:20,最大值:100。

返回参数

名称 类型 说明
PageNum Integer 页码
PageSize Integer 每页数量
TotalCount Integer 总数
BillingCycle String YYYY-MM
InstanceID String 实例id
ProductCode String 产品代码
ProductType Integer 产品类型
SubscriptionType String 订阅类型 Subscription/PayAsYouGo
BillType String 账单类型:SubscriptionOrder (预付订单), PayAsYouGoBill (后付账单), Refund (退款), Adjustment (调账)
OrderType String 订单类型:New(新购),Renewal(续费),Upgrade(升级),Degrade(降级),BillType非SubscriptionOrder时为空
OrderId String 如果是订单填写订单号
SubOrderId String 如果是订单填写子订单号
Tag String Tag
ResourceGroup String 资源组
AccountingUnit String 财务核算单元
PayerAccount String Caller UID
OwnerID String OwnerID
Region String Region
PretaxGrossAmount String 原始金额
PricingDiscount String 询价优惠
DeductedByCoupons String 优惠券抵扣
PretaxAmount String 优惠后金额
Currency String 币种 CNY/USD/JPY
PretaxAmountLocal String 本币币种已分摊优惠后金额(国际)
DeductedByCashCoupons String 代金券抵扣
DeductedByPrepaidCard String 储值卡抵扣
PaymentAmount String 现金
PaymentCurrency String 支付币种(国际)
GaapPretaxGrossAmount String 已分摊原始金额
GaapPricingDiscount String 已分摊询价优惠
GaapDeductedByCoupons String 已分摊优惠券抵扣
GaapPretaxAmount String 已分摊优惠后金额
GaapPretaxAmountLocal String 本币币种已分摊优惠后金额(国际)
GaapDeductedByCashCoupons String 已分摊代金券抵扣
GaapDeductedByPrepaidCard String 已分摊储值卡抵扣
GaapPaymentAmount String 已分摊现金
UnallocatedPretaxGrossAmount String 未分摊原始金额
UnallocatedPricingDiscount String 未分摊询价优惠
UnallocatedDeductedByCoupons String 未分摊优惠券抵扣
UnallocatedPretaxAmount String 未分摊优惠后金额
UnallocatedPretaxAmountLocal String 本币币种未分摊优惠后金额(国际
UnallocatedDeductedByCashCoupons String 未分摊代金券抵扣
UnallocatedDeductedByPrepaidCard String 未分摊储值卡抵扣
UnallocatedPaymentAmount String 未分摊现金
MonthGaapPretaxGrossAmount String 本月分摊原始金额
MonthGaapPricingDiscount String 本月分摊询价优惠
MonthGaapDeductedByCoupons String 本月分摊优惠券抵扣
MonthGaapPretaxAmount String 本月分摊优惠后金额
MonthGaapPretaxAmountLocal String 本币币种对应的本月分摊优惠后金额(国际)
MonthGaapDeductedByCashCoupons String 本月分摊代金券抵扣
MonthGaapDeductedByPrepaidCard String 本月分摊储值卡抵扣
MonthGaapPaymentAmount String 本月分摊现金
PayTime String 费用产生时间:支付时间
UsageStartDate String 服务起始时间
UsageEndDate String 服务结束时间

错误码

错误码 错误信息 HTTP状态码语义
NotApplicable This API is not applicable for caller. 400 该用户没有访问API的权限。
MissingParameter The specified parameter xx is mandatory for this request. 400 指定的参数未设置。
InvalidParameter The specified moduleCode is not valid. 400 指定的参数不合法。
InvalidBillingCycle The specified BillingCycle is not Invalid. 400 账期不合法。
InvalidCaller The specified caller doesn’t exists. 400 调用者不合法。
InternalError The request processing has failed due to some unknown error, exception or failure. 400 内部未知错误。
ProductNotFind Can not find inquired product, it may not exist. 400 查询的产品不合法。

请求示例

  1. https://business.aliyuncs.com/?Action=QueryInstanceGaapCost
  2. &BillingCycle=2018-07
  3. &公共参数

返回示例

  1. "Data": {
  2. "TotalCount": 2,
  3. "Modules": {
  4. "Module": [
  5. {
  6. "PayerAccount": "null",
  7. "GaapDeductedByCashCoupons": 0,
  8. "PricingDiscount": 0,
  9. "MonthGaapPretaxAmount": 0.74,
  10. "MonthGaapDeductedByCoupons": 0,
  11. "PretaxAmount": 0,
  12. "UnallocatedPaymentAmount": 0,
  13. "UnallocatedPretaxGrossAmount": 0,
  14. "UnallocatedPretaxAmount": 0,
  15. "UnallocatedPricingDiscount": 0,
  16. "PayTime": "2018-06-15 15:59:57",
  17. "PaymentCurrency": "CNY",
  18. "ProductType": "ossbag",
  19. "UnallocatedDeductedByCoupons": 0,
  20. "OrderType": "Renewal",
  21. "UnallocatedPretaxAmountLocal": 0,
  22. "PretaxGrossAmount": 0,
  23. "Currency": "CNY",
  24. "GaapPretaxAmountLocal": 0,
  25. "GaapPaymentAmount": 0,
  26. "SubscriptionType": "Subscription",
  27. "BillingCycle": "2019-04",
  28. "ProductCode": "flowpack",
  29. "InstanceID": "OSSBAG-cn-0xl0njj3d003",
  30. "PretaxAmountLocal": 0,
  31. "GaapDeductedByCoupons": 0,
  32. "GaapPretaxAmount": 0,
  33. "OrderId": "202147900290333",
  34. "GaapDeductedByPrepaidCard": 0,
  35. "DeductedByPrepaidCard": 0,
  36. "GaapPretaxGrossAmount": 0,
  37. "SubOrderId": "202147900290333",
  38. "MonthGaapPaymentAmount": 0,
  39. "DeductedByCoupons": 0,
  40. "UsageEndDate": "2019-05-01 00:00:00",
  41. "UnallocatedDeductedByPrepaidCard": 0,
  42. "MonthGaapDeductedByPrepaidCard": 0,
  43. "UsageStartDate": "2019-04-01 00:00:00",
  44. "MonthGaapPretaxGrossAmount": 0.99,
  45. "PaymentAmount": 0,
  46. "MonthGaapPricingDiscount": 0.25,
  47. "DeductedByCashCoupons": 0,
  48. "OwnerID": "1028728862215453",
  49. "MonthGaapDeductedByCashCoupons": 0.74,
  50. "UnallocatedDeductedByCashCoupons": 0,
  51. "MonthGaapPretaxAmountLocal": 0.74,
  52. "GaapPricingDiscount": 0,
  53. "BillType": "SubscriptionOrder"
  54. },
  55. {
  56. "PayerAccount": "null",
  57. "GaapDeductedByCashCoupons": 0,
  58. "PricingDiscount": 0,
  59. "MonthGaapPretaxAmount": 0.74,
  60. "MonthGaapDeductedByCoupons": 0,
  61. "PretaxAmount": 0,
  62. "UnallocatedPaymentAmount": 0,
  63. "UnallocatedPretaxGrossAmount": 0,
  64. "UnallocatedPretaxAmount": 0,
  65. "UnallocatedPricingDiscount": 0,
  66. "PayTime": "2018-06-15 14:06:53",
  67. "PaymentCurrency": "CNY",
  68. "ProductType": "ossbag",
  69. "UnallocatedDeductedByCoupons": 0,
  70. "OrderType": "Renewal",
  71. "UnallocatedPretaxAmountLocal": 0,
  72. "PretaxGrossAmount": 0,
  73. "Currency": "CNY",
  74. "GaapPretaxAmountLocal": 0,
  75. "GaapPaymentAmount": 0,
  76. "SubscriptionType": "Subscription",
  77. "BillingCycle": "2019-04",
  78. "ProductCode": "flowpack",
  79. "InstanceID": "OSSBAG-cn-0xl0njdtx002",
  80. "PretaxAmountLocal": 0,
  81. "GaapDeductedByCoupons": 0,
  82. "GaapPretaxAmount": 0,
  83. "OrderId": "202143356070333",
  84. "GaapDeductedByPrepaidCard": 0,
  85. "DeductedByPrepaidCard": 0,
  86. "GaapPretaxGrossAmount": 0,
  87. "SubOrderId": "202143356070333",
  88. "MonthGaapPaymentAmount": 0,
  89. "DeductedByCoupons": 0,
  90. "UsageEndDate": "2019-05-01 00:00:00",
  91. "UnallocatedDeductedByPrepaidCard": 0,
  92. "MonthGaapDeductedByPrepaidCard": 0,
  93. "UsageStartDate": "2019-04-01 00:00:00",
  94. "MonthGaapPretaxGrossAmount": 0.99,
  95. "PaymentAmount": 0,
  96. "MonthGaapPricingDiscount": 0.25,
  97. "DeductedByCashCoupons": 0,
  98. "OwnerID": "1028728862215453",
  99. "MonthGaapDeductedByCashCoupons": 0.74,
  100. "UnallocatedDeductedByCashCoupons": 0,
  101. "MonthGaapPretaxAmountLocal": 0.74,
  102. "GaapPricingDiscount": 0,
  103. "BillType": "SubscriptionOrder"
  104. }
  105. ]
  106. },
  107. "PageSize": 20,
  108. "HostId": "cn",
  109. "PageNum": 1
  110. },
  111. "Message": "Successful!",
  112. "RequestId": "AEAA504C-FCCA-4FB9-9E05-162CABC6EB40",
  113. "Success": true,
  114. "Code": "Success"