This endpoint allows to delete a payment method from a profile. In case of success, the request will return a response with status 204.
DELETE
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
400Error
payment_methods_required
The request failed because no object with payment method information was sent. More details can be found in "details". Verify that the data sent is correct and try again.
html_insertion_not_allowed
Request failed because HTML tags were inserted in fields that do not allow them. More information can be found in "details". Verify that the data sent is correct and try again.
customer_id_mismatch
Request failed because the "customer_id" sent does not match the payment profile. Verify if the correct value was sent and try again.
caller_id_mismatch
Request failed because the "caller_id" sent does not match the payment profile. Verify if the correct value was sent and try again.
site_id_mismatch
Request failed because the "site_id" does not match the payment profile. Verify if the correct value was sent and try again.
unknown_error_occurred
Unknown error. Contact Support for more information.
401Error
header_missing
Request failed because a required header is missing. Make sure that all necessary authentication headers are being sent.
Unauthorized Access Token
The value sent as Access Token is incorrect. Please check and try again with the correct value.
404Error
resource_not_found
Request failed because the payment profile was not found. Verify that the payment profile ID, customer ID and caller ID are correct.
429Error
Too Many Requests
Request failed because the request rate has been exceeded. Reduce the frequency or implement a retry system with exponential backoff.
500Error
internal_server_error
Request failed due to an internal server error. Please try again later and, if the problem persists, contact Support with error details.
curl -X DELETE \
'https://api.mercadopago.com/v1/customers/{customer_id}/payment-profiles/{payment_profile_id}/payment-methods/{payment_method_id}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-4*********994754-12*********c73b4e1ac*********cef36b27c*********840' \
-H 'X-Idempotency-Key: 31351891-f7f8-4c0b-9065-10ec033511f4' \
