#dashydasher
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
just did, same thing
Im actually using your python package for this, my code for this call looks like this:
stripe.Invoice.upcoming(subscription=_my_subscription_id_, expand=['discounts']), the request i gave you is from the logs
What version of stripe-python do you have?
2.41.0
i dont think its related to stripe-python because sending the same request with curl or postman gives the same result (unexpanded discounts)
I see you're using a quite old API version:
2019-02-19
You can try sending the same request with Stripe-Version header that's newer: https://stripe.com/docs/api/versioning
same thing, here is the request id of a request I just sent with the newest version (2022-11-15): req_s3hyGda6Qglwtf
Hi! I'm taking over this thread.
Can you share the exact response you are getting from the API for your latest request?
hello, you can see it here: https://pastie.io/kfxhvh.json
Thanks, having a look. FYI when testing this on my end the expand does work.
thats weird, this is the exact request that im sending:
curl --location --globoff 'https://api.stripe.com/v1/invoices/upcoming?subscription=sub_1Lr7jMCGsUk32FBdvyc6vvLm&expand[0]=discounts' \
--header 'Authorization: Bearer ***********' --header 'Stripe-Version: 2022-11-15'
Can you replace expand[0]=discounts by expand[]=discounts ?
yes, got back the same response with unexpanded discounts
also when I send basically the same request in my test environment i get back the expected response with expanded discounts, here is this request:
curl --location --globoff 'https://api.stripe.com/v1/invoices/upcoming?subscription=sub_1MwiaRCGsUk32FBdokpsnxmI&expand[0]=discounts' \
--header 'Authorization: Bearer sk_test_***********'
What's the difference between the two requests? One is in test mode and the other in live mode?
yes, and the subscription_id is obviously different
👋 taking over for my colleague. Let me catch up.
would you mind re-sharing the 2 request IDs please?
hello, sure, just a moment
here is the one where im getting back discounts unexpanded: req_61VJcqGb585fvt
and here is the most recent one i sent in test environment where i got back discounts expanded: req_7ZXfCIFTimfkgN
I'm taking a look
thank you
this seems really odd
we need to investigate this further, would you mind sending us an email on
https://support.stripe.com/contact/email?topic=api_integration summarizing the issue?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
sure, but you can see the responses that im getting in your logs?
no please add those as well
in your email
we don't store responses to successful Get requests
alright, thank you
please let me know when you do