Skip to main content
GET
/
payment-methods
/
{id}
Gets a payment method.
curl --request GET \
  --url https://api.leadping.ai/payment-methods/{id} \
  --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")

Path Parameters

id
string
required

The ID of the payment method to retrieve.

Response

Payment method was successfully retrieved.

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