Skip to main content
GET
/
v1
/
customers
/
{id}
/
payment_methods
/
{pm_id}
Retrieve a customer's payment method
curl --request GET \
  --url https://api.withflex.com/v1/customers/{id}/payment_methods/{pm_id} \
  --header 'Authorization: Bearer <token>'
{
  "payment_method": {
    "payment_method_id": "fpm_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
    "billing_details": {
      "email": "john.doe@example.com",
      "name": "Example",
      "phone": "+14155550142"
    },
    "customer": "fcus_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
    "metadata": {
      "order_id": "8842",
      "channel": "shopify"
    },
    "card": {
      "country": "example_value",
      "exp_month": 12,
      "exp_year": 2027,
      "last4": "example_value"
    },
    "created_at": "2026-06-15T14:30:00Z",
    "test_mode": false,
    "off_session": false
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Path Parameters

id
string
required
Example:

"fcus_01J9XR8M3K7VZ8N2YB4WJ6T0RA"

pm_id
string
required
Example:

"fpm_01J9XR8M3K7VZ8N2YB4WJ6T0RA"

Query Parameters

limit
integer<int32> | null

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

Example:

10

offset
integer<int32> | null

Number of objects to skip before returning results.

Example:

3

Response

Success

An envelope wrapping a single payment method object.

payment_method
object
required

The payment method.

Example:
{
"payment_method_id": "fpm_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"billing_details": {
"address": {},
"email": "john.doe@example.com",
"name": "Example",
"phone": "+14155550142"
},
"customer": "fcus_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"metadata": { "order_id": "8842", "channel": "shopify" },
"card": {
"brand": "american_express",
"country": "example_value",
"exp_month": 12,
"exp_year": 2027,
"funding": "credit",
"last4": "example_value"
},
"created_at": "2026-06-15T14:30:00Z",
"test_mode": false,
"off_session": false
}