#bubonicpestilence

1 messages · Page 1 of 1 (latest)

stoic tangleBOT
rigid pike
#
stripe payment_methods list --live -v 2022-11-15
{
  "object": "list",
  "data": [],
  "has_more": false,
  "url": "/v1/payment_methods"
}
sterile cypress
#

I think you need to provide a customer or type to get a list

rigid pike
#

customr is optional

#
$ stripe payment_methods list --type=card --live -v 2022-11-15
{
  "object": "list",
  "data": [],
  "has_more": false,
  "url": "/v1/payment_methods"
}
sterile cypress
#

Yeah it lists both as optional but I think you need one or the other to actually list the payment methods

#

Interesting, not working with cards for me either. Figuring out what is happening with this endpoint and will get back to you

rigid pike
#

tyvm

sterile cypress
#

Ah so our API reference speaks to this https://stripe.com/docs/api/payment_methods/list

Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the List a Customer’s PaymentMethods API instead.

#

So that endpoint is only for PaymentMethods through Stripe Treasury