stripe api:是否可以从事件 api 中扩展发票折扣?

stripe api: is it possible to expand invoice discounts from the events api?

在条带 API 中,没有通过 Id 加载折扣的端点,因此通常在查询 invoices api 时,您将 ?expand[]=data.discounts 附加到请求中,它在返回的对象中填充折扣的详细信息。这是我所知道的从 API.

获得折扣的唯一方法

events api 你会得到很多不同种类的物品,但对于发票我想也扩大折扣,因为我不知道如何获得它们。我已经尝试将以下扩展参数附加到事件 api 并且总是从他们的 api 返回一个 invalid_request_error 告诉我我请求的字段无法扩展。

是否可以扩大条纹活动的发票折扣 api?

来自 Stripe 开发者社区 Discord 上的 synthrider:

hello! No, events can't be expanded , you'd need to request this from the related API directly