Fetch the Payment Methods belonging to the given Customer

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

id

integer

required

The id of the customer

reservation_id

integer

Optional reservation used for reservation-aware payment method selection

api-version

integer

required

Target API version

``200 Success

array of objects

object

id

integer

Payment method ID

card_type

string

Type of credit card

last_four

string

Last four digits of the credit card

expires_on

string

Expiration date of the credit card

default

boolean

Indication of whether or not the given card is the customer's default

links

object

links object

``401 Unauthorized

``403 Forbidden

``404 Not found

``406 Not Acceptable

Updated3 months ago


curl --request GET \
     --url https://api.dealerware.com/admin/customers/id/payment_methods \
     --header 'accept: application/json'
[
  {
    "id": 123,
    "card_type": "Mastercard",
    "last_four": "1111",
    "expires_on": "2025-09-24",
    "default": true,
    "links": {
      "customer": {
        "id": 2,
        "href": "https://api.dw-tst.com/admin/some_resources/2"
      }
    }
  }
]