#sandrayoo-multiple-account-config

1 messages ยท Page 1 of 1 (latest)

marsh groveBOT
feral nymph
#

Hello! Do you have a reqeust ID I can take a look at?

radiant nymph
#

hi karbi! ๐Ÿ˜„ where would be the best place to find that?

feral nymph
#

Alternatively, if you have the Subscription ID that works as well

radiant nymph
#

Ah, thank you! I do have this for now if that's alright? "<Stripe::Subscription:0x101bc id=sub_1OAfCkBEIZKO4QrAZtfHZmrB>"

#

This is what gets returned in the first line

feral nymph
#

That works! Give me a few minutes to take a look

radiant nymph
#

cool thanks!

feral nymph
radiant nymph
#

Thanks for taking a look! Regardless of whether a coupon gets passed, shouldn't the response have the discounts field?

Also, for some reason the link cannot find the req for me so I cannot see it ๐Ÿ˜ฆ

feral nymph
#

No, if no coupon/discount was added to the Subscription we wouldn't populate discounts

radiant nymph
feral nymph
radiant nymph
#

in the documentation, the response shows the discounts field as discounts: [] .

in my particular case, I don't see a discounts: [] in the response body at all

#

in the request logs, were you able to see a discounts: [] in the response?

#

also i noticed the field says "preview feature" - what does this mean?

feral nymph
#

I don't see discounts in the response body for you request - just discount: null,

#

The "preview feature" means that this isn't something that's publicly available yet - it's only available for some users who can use that feature early

radiant nymph
#

thank you for confirming!

#

ah ok, thank you! is there a way to make preview features work for tests? when we make the api call, it doesnt return preview features in the JSON response

#

this works properly in our dev environment, it is just for the tests

feral nymph
#

Are you using different accounts for your dev environment vs tests?

marsh groveBOT
radiant nymph
#

ah yes, we do.

feral nymph
#

That's probably the issue - your dev environment has been approved to use the feature, but the test account hasn't. You'll need to write into support (https://support.stripe.com/contact) and ask them to add it to your test account as well

radiant nymph
#

ok sounds good, thank you for your help!