Delete a card/v1/customers/{customer_id}/cards/{id}Delete the data of a card associated with a customer whenever you need to.
DELETE
Request's parameters
customer_idstring
Localization: pathCustomer's IdREQUIRED
idstring
Localization: pathCard's IdREQUIRED
Parámetros de respuesta
id
Localization: bodystring
expiration_month
Localization: bodynumber
expiration_year
Localization: bodynumber
first_six_digits
Localization: bodystring
Solicitud
curl
curl -X DELETE \
'https://api.mercadopago.com/v1/customers/{customer_id}/cards/{id}' \
-H 'Authorization: Bearer ACCESS_TOKEN_ENV'
Answer
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
}
Errors
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
Was this information helpful?