cURL
curl --request GET \ --url https://api.justpaid.io/api/v1/customer/{customer_uuid}/payment-methods \ --header 'Authorization: Bearer <token>'
{ "credit_cards": [ { "brand": "visa", "last4": "4242", "expiration_date": "12/25" } ], "ach_accounts": [ { "account_mask": "1234", "account_type": "checking", "account_name": "Primary Checking", "institution_name": "Bank of America" } ] }
Retrieves all payment methods for a customer.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Payment methods retrieved successfully
List of credit card payment methods
Show child attributes
The brand of the credit card
"visa"
Last 4 digits of the card number
"4242"
Card expiration date in MM/YY format
"12/25"
List of ACH payment methods
Last 4 digits of the account number
"1234"
The type of the account (e.g., checking, savings)
"checking"
The name of the account
"Primary Checking"
The name of the institution
"Bank of America"
Was this page helpful?