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 Datefamilyenum<string>必填railenum<string>必填stateenum<string>必填
openPaymentsobject[]必填amountstring必填canCancelboolean必填cancelEndsSubscriptionboolean必填canPayByCardboolean必填expiresAtstring必填a string to be decoded into a Datefamilyenum<string>必填kindenum<string>必填stateenum<string>必填underReviewboolean必填
recentPaymentsobject[]必填amountstring必填createdAtstring必填a string to be decoded into a Datefamilyenum<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 DatestartsAtstring必填stateenum<string>必填
periodEndstring必填planstring必填priceCentsnumber必填railenum<string>必填renewalPaymentPreparableboolean必填scheduledTermChangeobject必填effectiveAtstring必填a string to be decoded into a DatetermMonthsnumber必填
stateenum<string>必填statusenum<string>必填statusDetailobject必填amountCentsnumber必填atstring必填kindenum<string>必填
termMonthsnumber必填
响应
- 200成功
- 400输入不符合该操作的 schema(INVALID_REQUEST)
- 401API key 缺失或无效
- 403请求带有外部 Origin
- 429已达到速率限制(RATE_LIMITED),请在 retryAfterSeconds 秒后重试
- 503暂时不可用,请稍后重试