#axelvaindal-cli

1 messages ยท Page 1 of 1 (latest)

still bramble
#

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

sacred jolt
#

OK thanks lemme try this

still bramble
#

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

sacred jolt
#

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 ๐Ÿ™‡

still bramble
#

for the first point you need to pass expand=["configuration"] I believe