#Bando-subscription

1 messages ยท Page 1 of 1 (latest)

south relic
#

๐Ÿ‘‹ Happy to help

jade badger
#

hi

#

I forgot to log 26 customers sub ids so i need to obtain them

#

I only have their customer id

south relic
jade badger
#

so would this work


$customer = $stripe->customers->retrieve(
  'test');

$subscriptionid = $customer->subscriptions[0]->id;
south relic
#

No, expansion on subscriptions field is required. It'll look like:

$customer = $stripe->customers->retrieve(
  'cus_xxx',
  ['expand' => ['subscriptions']]);
#

The subscriptions information should be in the response

jade badger
#

i hope u find amazing partners and have very good lives

south relic
#

Happy to help ๐Ÿ™‚