Skip to main content
GET
/
users
/
me
/
paymentmethod
Gets current user's payment method.
curl --request GET \
  --url https://api.leadping.ai/users/me/paymentmethod \
  --header 'Authorization: <api-key>'
{
  "id": "<string>",
  "brand": "<string>",
  "last4": "<string>",
  "expMonth": 123,
  "expYear": 123,
  "isDefault": true,
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. (i.e. "Bearer 1234abcdef")

Response

OK

Represents a saved payment method (e.g., card) for user display

id
string | null
required

The Stripe PaymentMethod ID

brand
string | null
required

The brand of the card (e.g., Visa, MasterCard)

last4
string | null
required

The last 4 digits of the card number

expMonth
integer

The expiration month of the card

expYear
integer

The expiration year of the card

isDefault
boolean

Whether this payment method is set as the default

createdAt
string<date-time> | null

When the payment method was created (optional, if available)

I