Skip to main content
GET
/
customers
/
{customer_id}
/
payment-methods
/
{payment_method_id}
Get a payment method for a customer
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.paddle.com/customers/{customer_id}/payment-methods/{payment_method_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": {
    "customer_id": "ctm_01hv6y1jedq4p1n0yqn5ba3ky4",
    "address_id": "add_01j2jfab8zcjy524w6e4s1knjy",
    "id": "paymtd_01j2jff1m3es31sdkejpaym164",
    "type": "card",
    "card": {
      "cardholder_name": "Sam Miller",
      "type": "visa",
      "last4": "4242",
      "expiry_month": 5,
      "expiry_year": 2025
    },
    "paypal": null,
    "origin": "saved_during_purchase",
    "saved_at": "2024-07-12T03:23:26Z",
    "updated_at": "2024-10-29T14:12:28.018784Z"
  },
  "meta": {
    "request_id": "03dae283-b7e9-47dc-b8c0-229576d90139"
  }
}

Authorizations

Authorization
string
header
required

Requests are authenticated with API keys. Provide your API key as a Bearer token in the Authorization header.

API keys are assigned permissions, granting them access to entities and operations. Each endpoint may require one or more permissions, defined with the x-permissions extension. Values for include parameters may require specific permissions as defined in the x-enum-permissions extension. See all available permissions in the permission schema or documentation.

Get an API key and select the permissions you need from the Paddle dashboard under Paddle > Developer Tools > Authentication.

Path Parameters

customer_id
string
required

Paddle ID of the customer entity to work with.

Example:

"ctm_01gw1xk43eqy2rrf0cs93zvm6t"

payment_method_id
string
required

Paddle ID of the payment method entity to work with.

Example:

"paymtd_01hkm9xwqpbbpr1ksmvg3sx3v1"

Response

OK

data
Payment Method · object
required

Represents a customer payment method entity.

meta
Meta · object
required

Information about this response.