#bmizerany

1 messages · Page 1 of 1 (latest)

blazing swiftBOT
keen estuary
lethal apex
#

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

keen estuary
#

OK. I think the curl URL to retrieve the subscription is not right.

lethal apex
#

?

keen estuary
#

The URL should be something like https://api.stripe.com/v1/subscriptions/sub_XXX

lethal apex
#

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

keen estuary
lethal apex
#

Why does the API respond with a diff URL scheme if what you link to is the only correct way?

keen estuary
#

That url that you saw in the API response is for Stripe's internal use, you should always refer to the API reference.

lethal apex
#

It might be worth omitting that from responses to non-Stripe API users