#jtishler
1 messages · Page 1 of 1 (latest)
Hi there! Do you have a request ID for this attempt?
That's alright, no worries
Can you share the curl command you're trying to run? Please strip out/omit your key
curl https://api.stripe.com/v1/subscriptions/sub_1LiNKJCr1cvUccnXYqfLfwE7
-u KEY:
-d "default_payment_method"=tok_...
its formatted weirdly but that should be default_payment_method
Got it. default_payment_method is expecting an ID that looks like "pm_..."
yea i can get it to work with one that starts with card_
but the error message indicates theres some way to do the conversion or set the token field directly
but i can't really find information on how to do that
Yep, makes sense. The guidance is somewhat buried here: https://stripe.com/docs/api/payment_methods/create?lang=curl#create_payment_method-card
so i need to make a request to create a payment method
and then send that id in the sub update request
there's no way to do it with one request
That's right, not with tokens
gotcha thank you