Endpoint

List Credit Cards

The List Credit Cards endpoints allow an authenticated user to retrieve all saved payment methods associated with their Neatcar account. Access to these endpoints requires a valid user token, ensuring that only the cards linked to the authenticated user are returned. The response provides detailed information about each saved credit card, facilitating management of payment options within the platform.

GET

/user/card

Credit Card Model data

The following list provides a selection of key values included in the model; however, it is non-exhaustive. Developers can expect to find additional fields and data within the model, offering comprehensive information about each credit card. This abbreviated list serves as a starting point for understanding the structure of the model and the types of information available for each credit card.

ID
Unique identifier for the credit card
last4
The last 4 digits of the credit card
exp_month
The expiration month of the credit card
exp_year
The expiration year of the credit card
customer
The customer ID that the credit card is linked to

Response example

Below is an example of the API endpoint response, showcasing the structure and format of the data returned by the specified endpoint. This example serves as a practical illustration, demonstrating how developers can expect the information to be organized and presented when interacting with the API. It provides insight into the content and layout of the response, facilitating effective integration and utilization of the endpoint within your applications.