Retrieve the logged-in customer's saved payment methods. This API Route only works with payment providers created with the deprecated Payment Service interface. The payment methods are saved using the Payment Service's third-party service, and not on the Medusa backend. So, they're retrieved from the third-party service.
Request
None
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET '/store/customers/me/payment-methods'
Responses
🟢200OK
application/json
Body
The payment method's details.
payment_methods
array [object {2}]
required
The details of the saved payment methods.
provider_id
string
required
The ID of the Payment Provider where the payment method is saved.
data
object
required
The data needed for the Payment Provider to use the saved payment method.