Deleting a personal payment source
The steps below explain how to delete a personal payment source from a user profile.
Step | Name | Endpoint | Details |
---|---|---|---|
List personal payment sources for a user (Optional) | /v2/payment/users/{userId}/payment-sources | Retrieve all the personal payment sources for a user. This endpoint can be used to identify which payment source you need to update in the next step. URL path requires: userId of the user.Response will contain: paymentSourceIds of all the personal payment sources mapped to the user along with their details. Select the paymentSourceId which you need to update in the next step.Other APIs will use: paymentSourceId | |
Delete a payment source | /v2/payment/users/{userId}/payment-sources/{paymentSourceId} | Delete a personal payment source from the user profile. URL path requires: userId and the paymentSourceId from step 1. |