Endpoint

Save Credit Card - Option 1

The Save Credit Card endpoints allow an authenticated user to securely register a payment method within the Neatcar platform. A valid user token is required to access these endpoints, ensuring that the credit card is linked exclusively to the user associated with the token. When a card is saved, it is securely stored within a Stripe Customer object, and the corresponding customer ID is saved in the Neatcar system for use in future transactions. This functionality enables users to streamline payments and manage their payment options through the platform. Credit card data is handled in compliance with industry security standards.

POST

/user/card

Body

Response example

On successful saving of the credit card, the response contains an empty data object, a success field set to true, and a null value for error. This confirms that the card has been securely saved without returning additional data.