Listing of payment methods
GET /customers/{uuid}/paymentMethods
The list of payment methods can be made using the following filters:
- Type (type)
1. Obtain the payment methods stored by the customer with the uuid e2343605-cf46-43de-b20b-9b7d1c95a9b2
- Request
- Response
GET /customers/e2343605-cf46-43de-b20b-9b7d1c95a9b2/paymentMethods
{
"apiVersion": "1.0",
"date": "2021-12-09T14:54:56+00:00",
"success": true,
"data": [
{
"code": "CC",
"uuid": "90068f83-7623-4de5-91c7-ac447c504ebf",
"brand": "VISA",
"last4Digits": "0809",
"holder": "Jose Silva",
"expiryMonth": "05",
"expiryYear": "2026"
},
{
"code": "MW",
"uuid": "f1233605-cf46-43de-b20b-9b7d1c95a9b2",
"last3Digits": "414",
"countryCode": "351"
}
]
}
2. Obtain the payment methods by credit/debit card saved by the customer with the uuid e2343605-cf46-43de-b20b-9b7d1c95a9b2
- Request
- Response
GET /customers/e2343605-cf46-43de-b20b-9b7d1c95a9b2/paymentMethods?type=CC
{
"apiVersion": "1.0",
"date": "2021-12-09T14:54:56+00:00",
"success": true,
"data": [
{
"code": "CC",
"uuid": "90068f83-7623-4de5-91c7-ac447c504ebf",
"brand": "VISA",
"last4Digits": "0809",
"holder": "Jose Silva",
"expiryMonth": "05",
"expiryYear": "2026"
}
]
}