鉴于有关订阅对象的API文档,我应该能够使用
stripe subscriptions list --customer cus_QgBmuycCay7CGu --expand data.items.data.price.product
但是,我收到此错误:
{
"error": {
"message": "You cannot expand more than 4 levels of a property. Property: data.items.data.price.product",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_OkWSMMvr4CH5i1?t=1723990163",
"type": "invalid_request_error"
}
}
您似乎无法处理
stripe
中的多个图层,因此您无法链接不同的objects which >= 4
,如查询所示
data.items.data.price.product
你可以先这样做
stripe subscriptions list --customer cus_QgBmuycCay7CGu --expand data.items.data.price
然后运行此命令:
stripe subscriptions list --customer cus_QgBmuycCay7CGu --expand data.items.data.price
你可以更进一步去合作