有没有办法通过 API 请求 Stripe 取消订阅?

Is there a way to request Stripe for the cancellation reason of a subscription via API?

我正在尝试查询 stripe 以了解订阅的取消原因,以便将此信息输入我们的 CRM 系统。

我要查找的信息可以在此处的仪表板中找到: Stripe dashboard image

我发现浏览器向 https://dashboard.stripe.com/v1/subscriptions/sub_xxx 发送了一个请求,但带有一个似乎属于用户请求的 API 键:uk_xxx。当我使用 API 键 sk_live_xxx 向该端点发送 GET 请求时,我没有得到相同的数据,即缺少以下信息:

{
    "customer_portal_data": {
        "cancellation_reason": "too_expensive",
        "cancellation_reason_text": null
    }
}

我现在的问题是:有没有办法通过 stripe 的标准 API 查询此信息?

此功能目前仅在仪表板和 Sigma 中可用,无法通过 API。