Skip to main content

Get Payment Method Info

Fetch a single payment method by URN.

URL

GET /api/c2a/customer/payment/methods/info

Request Parameters

NameTypeDescription
pstringQuery parameter, required. Payment method URN.

Response Parameters

PaymentMethodInfoResponse wraps AzottePaymentMethod. Same shape as Add Payment Method.

NameTypeDescription
resultobject (AzottePaymentMethod)Stored method snapshot.
statusobject (AzotteStatus)Operation status envelope.

Sample Response

{
"result": {
"paymentMethodUrn": "pm.00.482.7",
"customerUrn": "cu.00.482",
"paymentChannel": "CreditCard",
"maskedCardNumber": "411111******1111",
"cardType": "VISA",
"expireMonth": "12",
"expireYear": "2029",
"state": "Active"
},
"status": { "messageCode": "SUCCESS" }
}

Sample Codes

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