Payment Methods

Find one Payment Method

Retrieve a Payment Method by its ID

get/payment-methods/{id}

Path parameters

idstring required

Response

OK

createdAtstring date-time required

The date and time when the entity was created.

updatedAtstring date-time nullable required

The date and time when the entity was last updated.

metadataobject nullable

Metadata used by merchants to store additional information about the entity.

idstring required

The ID of the payment method

type'card' | 'paypal' | 'applePay' required

The type of the payment method

customerstring nullable required

The ID of the customer who this payment method belongs to

isDefaultboolean required

Whether the payment method is the default one for the customer

Example response

{
  "createdAt": "2024-02-18T12:00:00Z",
  "updatedAt": "2024-02-21T12:15:00Z",
  "metadata": {
    "key1": "value1",
    "key2": "value2"
  },
  "id": "pm_2QC7PqoUeOxQEWscJJt6B3PkvyL",
  "type": "card",
  "customer": "cus_2QC7PqoUeOxQEWscJJt6B3PkvyL",
  "card": {
    "brand": "amex",
    "lastFour": "1234",
    "bin": "123456",
    "expMonth": "12",
    "expYear": "2025",
    "cardholderName": "John Doe"
  },
  "applePay": {
    "displayName": "MasterCard 1234"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.