Payment Method .: Delete

API Reference / v15

Delete a Payment Method

This endpoint deletes a user’s active payment method.

To delete the user’s payment method, you must have a token with the manage_user_payment_methods permission.

Request Endpoint

DELETE /v15/payment_method

Authorization Required – User Token in Header

Authorization: token user="1123-15d2aeedc9f4e0e7094a9d283868f8fbe873cb85ceaa0c511727245aec8c9e"

cURL Example

curl -X DELETE -H Accept:application/json -H Content-Type:application/json -H 'Authorization: token user="1123-15d2aeedc9f4e0e7094a9d283868f8fbe873cb85ceaa0c511727245aec8c9e"' https://sandbox.thelevelup.com/v15/payment_method

Example Response

HTTP/1.1 200 OK - Payment method deleted

Errors

HTTP/1.1 404 Not Found - User does not have an active payment method