Eliminar una tarjeta/v1/customers/{customer_id}/cards/{id}Elimina los datos de una tarjeta asociada a un cliente siempre que lo necesites.
DELETE
Parámetros para la solicitud
customer_idstring
Localización: pathCustomer's IdREQUERIDO
idstring
Localización: pathCard's IdREQUERIDO
Parámetros de respuesta
id
Localización: bodystring
expiration_month
Localización: bodynumber
expiration_year
Localización: bodynumber
first_six_digits
Localización: bodystring
Solicitud
curl
curl -X DELETE \
'https://api.mercadopago.com/v1/customers/{customer_id}/cards/{id}' \
-H 'Authorization: Bearer ACCESS_TOKEN_ENV'
Respuesta
json
{
"id": "8987269652",
"expiration_month": 7,
"expiration_year": 2023,
"first_six_digits": "503143",
"last_four_digits": "6351",
"payment_method": {
"id": "master",
"name": "Mastercard",
"payment_type_id": "credit_card",
"thumbnail": "http://img.mlstatic.com/org-img/MP3/API/logos/master.gif",
"secure_thumbnail": "https://www.mercadopago.com/org-img/MP3/API/logos/master.gif"
},
"security_code": {
"length": 3,
"card_location": "back"
},
"issuer": {
"id": 24,
"name": "Mastercard"
},
"cardholder": {
"name": "APRO",
"identification": {
"number": "19119119100",
"type": "CPF"
}
},
"date_created": "2021-03-16T16:08:21.000-04:00",
"date_last_updated": "2021-03-16T16:14:40.962-04:00",
"customer_id": "470183340-cpunOI7UsIHlHr",
"user_id": "470183340",
"live_mode": true
}
Errores
400bad_request
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
140
150
200
201
202
203
204
205
206
207
208
401bad_request
unauthorized
404bad_request
not_found
¿Te resultó útil esta información?