#sai_rez - Subscription List

1 messages · Page 1 of 1 (latest)

sudden trench
#

You just need to pass the Customer ID as a parameter

mighty sundial
#

I have tried that grabbing a test customers subscriptions using this command with customer param passed in

curl https://api.stripe.com/v1/subscriptions \ -u sk_test_icWuZ4Y7BF0WDva3SR0q3Ny300R7zZ5Y9x: \ -d limit=3 \ -d customer=cus_L7BJ6KTPdk2B3U \ -G

#

But I get a resource missing error

sudden trench
#

Can you provide the full text of the error?

mighty sundial
#

{ "error": { "code": "resource_missing", "doc_url": "https://stripe.com/docs/error-codes/resource-missing", "message": "No such customer: 'cus_L7BJ6KTPdk2B3U'", "param": "customer", "type": "invalid_request_error" } }

sudden trench
#

And you know this customer exists on your account?

mighty sundial
#

Yes, it's customer I've created in test mode

jovial briar
#

That usually means that the API key you're using is for a different account (not the one that created the customer) - do you have multiple accounts, and is it possible you're mixing your API keys?