#bmizerany
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
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.
I got ~ % curl -s -u rk_test_redacted: 'http://localhost:8080/v1/subscription_items?subscription=sub_1MkERACdYGloJaDMZc6LNUdu' { "error": { "code": "parameter_missing", "doc_url": "https://stripe.com/docs/error-codes/parameter-missing", "message": "Missing required param: subscription.", "param": "subscription", "request_log_url": "https://dashboard.stripe.com/test/logs/req_z1VGI7EIeG1Ptv?t=1679897440", "type": "invalid_request_error" } }
yes
req_z1VGI7EIeG1Ptv
OK. I think the curl URL to retrieve the subscription is not right.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
?
The URL should be something like https://api.stripe.com/v1/subscriptions/sub_XXX
Stripe told me in the response to a request the correct URL was what I tried, but then Stripe said it wasn't correct
I'm not trying to get the subscription. I'm trying to get the subscription items
Which is what the URL in the response said I could get at the URL it later said was wrong
I see. then the URL is https://api.stripe.com/v1/subscription_items/si_XXX as per https://stripe.com/docs/api/subscription_items/retrieve?lang=curl#retrieve_subscription_item
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Why does the API respond with a diff URL scheme if what you link to is the only correct way?
That url that you saw in the API response is for Stripe's internal use, you should always refer to the API reference.
It might be worth omitting that from responses to non-Stripe API users