Payment methods

Get a payment method for a customer

Changed on

Returns a payment method for a customer using its ID and related customer ID.

get/customers/{customer_id}/payment-methods/{payment_method_id}

Request

  • Base URL
    https://sandbox-api.paddle.com
  • Auth
    HTTP bearer

Path parameters

customer_idstring required

Unique Paddle ID for this customer entity, prefixed with ctm_.

Example:ctm_01grnn4zta5a1mf02jjze7y2ys

Paddle ID of the customer entity to work with.

payment_method_idstring required

Paddle ID of the payment method entity to work with.

Response

The request has succeeded.

Example response

{
  "data": {
    "id": "paymtd_01hkm9xwqpbbpr1ksmvg3sx3v1",
    "customer_id": "ctm_01grnn4zta5a1mf02jjze7y2ys",
    "address_id": "add_01gm302t81w94gyjpjpqypkzkf",
    "card": {
      "last4": "4242",
      "expiry_month": 12,
      "expiry_year": 2028
    },
    "paypal": {
      "email": "john.doe@example.com"
    },
    "south_korea_local_card": {
      "last4": "4242"
    },
    "saved_at": "2024-10-12T07:20:50.52Z",
    "updated_at": "2024-10-13T07:20:50.52Z"
  },
  "meta": {
    "request_id": "b15ec92e-8688-40d4-a04d-f44cbec93355"
  }
}

Changes

    • info

      response property data/underlying_details/anyOf[subschema #1: PaymentMethodUnderlyingDetails]/korea_local/anyOf[subschema #1: Korean market underlying details]/ deprecated

    • info

      response property data/underlying_details/anyOf[subschema #1: PaymentMethodUnderlyingDetails]/korea_local/anyOf[subschema #1: Korean market underlying details]/type deprecated

    • info

      response property data/underlying_details/anyOf[subschema #1: PaymentMethodUnderlyingDetails]/korea_local/anyOf[subschema #1: Korean market underlying details]/type/allOf[subschema #1: Korean market underlying payment method type]/ deprecated

    • breaking

      added the pattern ^ctm_[a-z\d]{26}$ to the path request parameter customer_id