Get Payment Method

Retrieve a specific payment method by ID.

Request

curl -X GET \
  https://api.basistheory.ai/tenants/your-tenant-id/payment-methods/26859380-7829-4ee1-8a0a-38927881e7ef \
  -H 'Authorization: Bearer your-api-key'

URL Parameters

ParameterRequiredTypeDefaultDescription
tenantIdtruestringnullThe tenant ID.
idtruestringnullThe payment method ID.

Response

{
  "id": "26859380-7829-4ee1-8a0a-38927881e7ef",
  "type": "card",
  "entityId": "6c673bc4-b739-4c7e-a4e0-6e1b953b6fe7",
  "card": {
    "type": "credit",
    "brand": "mastercard",
    "details": {
      "bin": "512035",
      "last4": "4594",
      "expirationMonth": "12",
      "expirationYear": "2025"
    },
    "display": {
      "artUrl": "https://sbx.assets.mastercard.com/card-art/combined-image-asset/6713d73d-a701-4bd2-bc9b-2e98940de9c7.png",
      "backgroundColor": "1A1F71",
      "foregroundColor": "000000",
      "description": "MasterCard Test Bank",
      "issuerName": "Test Issuer"
    }
  },
  "credentialTypes": ["network-token", "virtual-card", "pan"],
  "createdAt": "2025-06-16T14:00:00Z"
}

Response Properties

PropertyTypeDescription
idstringThe payment method ID.
entityIdstringThe ID for the entity that owns the payment method.
typestringThe payment method type.
cardCard ObjectSpecific details for "card" payment method type.
credentialTypesstring[]Array of available credential types that can be created.
createdAtdatetimeThe payment method created date.

Card Object

PropertyTypeDescription
typestringThe card type: debit or credit.
brandstringThe card brand (i.e. visa, mastercard).
detailsCard Details ObjectDetails about the card.
displayCard Display ObjectUI details for displaying the card.

Card Details Object

PropertyTypeDescription
binstring6 digit card BIN number.
last4stringCard last 4 numbers.
expirationMonthstringCard expiration month in MM format.
expirationYearstringCard expiration year in YYYY format.

Card Display Object

PropertyTypeDescription
artUrlstringA URL for the card art (if available).
backgroundColorstringThe background color for rendering the card UI.
foregroundColorstringThe foreground color for rendering the card UI.
descriptionstringShort card description.
issuerNamestringThe card issuer’s name.

Error Handling

{
  "error": {
    "status": 401,
    "type": "unauthorized",
    "title": "Unauthorized",
    "message": "Missing or invalid API key was provided."
  }
}