跳到文档正文
浏览和搜索
本页内容

get_billing

读取每个订阅的套餐、价格、状态、续费信息和可做的变更,未完成及近期的稳定币付款,以及未完成的结账。read 级:只需 API key。同名 MCP 工具需要 tweetstream:account 权限范围。

POST/api/agent/actions/get_billing

授权

  • Authorizationstringheader必填使用 TweetStream API 密钥进行 Bearer 认证:Bearer <key>。

请求体

json
{}

响应字段

  • openCheckoutsobject[]必填
    • canCancelboolean必填
    • expiresAtstring必填a string to be decoded into a Date
    • familyenum<string>必填
    • railenum<string>必填
    • stateenum<string>必填
  • openPaymentsobject[]必填
    • amountstring必填
    • canCancelboolean必填
    • cancelEndsSubscriptionboolean必填
    • canPayByCardboolean必填
    • expiresAtstring必填a string to be decoded into a Date
    • familyenum<string>必填
    • kindenum<string>必填
    • stateenum<string>必填
    • underReviewboolean必填
  • recentPaymentsobject[]必填
    • amountstring必填
    • createdAtstring必填a string to be decoded into a Date
    • familyenum<string>必填
    • kindenum<string>必填
    • methodstring必填
    • statusenum<string>必填
    • statusLabelstring必填
  • subscriptionsobject[]必填
    • autoRenewenum<string>必填
    • availableChangesenum<string>[]必填
    • cancelAtPeriodEndboolean必填
    • familyenum<string>必填
    • openPaymentobject必填
      • amountCentsnumber必填
      • dueAtstring必填
      • kindenum<string>必填
    • paidThroughstring必填
    • pauseobject必填
      • resumesAtstring必填a string to be decoded into a Date
      • startsAtstring必填
      • stateenum<string>必填
    • periodEndstring必填
    • planstring必填
    • priceCentsnumber必填
    • railenum<string>必填
    • renewalPaymentPreparableboolean必填
    • scheduledTermChangeobject必填
      • effectiveAtstring必填a string to be decoded into a Date
      • termMonthsnumber必填
    • stateenum<string>必填
    • statusenum<string>必填
    • statusDetailobject必填
      • amountCentsnumber必填
      • atstring必填
      • kindenum<string>必填
    • termMonthsnumber必填

响应

  • 200成功
  • 400输入不符合该操作的 schema(INVALID_REQUEST)
  • 401API key 缺失或无效
  • 403请求带有外部 Origin
  • 429已达到速率限制(RATE_LIMITED),请在 retryAfterSeconds 秒后重试
  • 503暂时不可用,请稍后重试