Skip to main content

List Payment Methods

List all payment methods (active and inactive) for a customer.

URL

GET /api/c2a/customer/payment/methods/list

Request Parameters

NameTypeDescription
cstringQuery parameter, required. Customer URN.

Response Parameters

PaymentMethodListResponse wraps List<AzottePaymentMethod>. Sensitive data excluded (masked PAN only).

NameTypeDescription
resultarray (AzottePaymentMethod[])All stored methods for the customer.
result[].paymentMethodUrnstringURN of the stored method.
result[].paymentChannelstringCreditCard / PayPal / etc.
result[].maskedCardNumberstringMasked PAN.
result[].cardTypestringVISA, MASTERCARD, etc.
result[].statestringActive or Inactive.
statusobject (AzotteStatus)Operation status envelope.

Sample Response

{
"result": [
{
"paymentMethodUrn": "pm.00.482.7",
"paymentChannel": "CreditCard",
"maskedCardNumber": "411111******1111",
"cardType": "VISA",
"state": "Active"
},
{
"paymentMethodUrn": "pm.00.482.3",
"paymentChannel": "CreditCard",
"maskedCardNumber": "555555******4444",
"cardType": "MASTERCARD",
"state": "Inactive"
}
],
"status": { "messageCode": "SUCCESS" }
}

Sample Codes

curl --location 'https://acme.sandbox.azotte.com/api/v1/c2a/customer/payment/methods/list?c=cu.00.482' \
--header 'x-tn: e2a1c7b2-4f3a-4b8e-9c2d-1a2b3c4d5e6f' \
--header 'x-api-key: sk_dev_acme_sample_123456789'