#axelvaindal-cli
1 messages ยท Page 1 of 1 (latest)
hi, it's a list of objects and then a list inside that , so you mostly want to do
"features[subscription_update][products][0][product]
and
"features[subscription_update][products][0][prices][0]=price_xx and "features[subscription_update][products][prices][1]=price_xxx for example
OK thanks lemme try this
I really would not use stripe-cli for this personally since it's way too complex to deal with this sort of raw POST data, I would write a script in a full programming language and call our API using an SDK instead, the structure makes a lot more sense when you can write it out in the syntax of e.g. Javascript or PHP
Yeah raw POST data is quite a nightmare to deal with I agree, it would have been faster to do it in Node ^^'
Still, now that it's started, let's finish, it's good practice anyway ๐
@still bramble it seems to work
Dunno if I could share some feedback, but:
- Response does not include products information, so it's quite hard to know if it works well
- It would be even better to be able to create customer group on the Dashboard and handle customer portal by group (which I assume is the default use case for multiple customer portal usage)
Thanks anyway for the help ๐
for the first point you need to pass expand=["configuration"] I believe
it's pattern in the API that complex parts and (especially) lists are not returned since they have performance implications to return on every response, you can use expand to have them included though (https://stripe.com/docs/expand#includable-properties)