Retrieve a customer payment details
Use this endpoint to retrieve a customer’s payment details. Payment details hold selected information (e.g. card expiration date) of the complete set of payment details or tokens to reference this data. It is used for displaying and processing payments with the payment gateway. Only available for a given user after confirmed payment.<br><br>Payment details represent a customer’s payment method.
get/customers/{customerId}/payment_details
Request
- Base URLhttps://api.sandbox.cleeng.com/3.1
- URLhttps://api.sandbox.cleeng.com/3.1/customers/{customerId}/payment_details
- AuthAPI key in header X-Publisher-Token
Path parameters
customerIdinteger required
Customer identifier at Cleeng.
Headers
Content-Typestring
Response
200
Example response
{
"success": true,
"paymentDetails": [
{
"id": 123456789,
"customerId": 987654321,
"token": "randomToken",
"paymentGateway": "adyen",
"paymentMethod": "card",
"paymentMethodSpecificParams": {
"variant": "visa",
"lastCardFourDigits": "2222",
"holderName": "Testterson",
"cardExpirationDate": "11/2028"
},
"paymentMethodId": 123123123,
"active": true,
"subscriptionIds": [
321321321
]
}
],
"message": "Payment details sent successfully"
}Changes
No recorded changes to this operation across all 1 revision of this API.