Obter meios de pagamento/v1/payment_methodsConsulte todas as formas de pagamento disponíveis e obtenha uma lista com os detalhes de cada uma delas e suas propriedades.
GET
Produtos relacionados:
Parâmetros de requisição
Parâmetros de resposta
id
Localização: bodyId do meio de pagamentostring
name
Localização: bodyNome descritivo da forma de pagamento como, por exemplo, Visa, American Express, etc.string
payment_type_id
Localização: bodyTipo de meio de pagamentostring
ticket: Printed ticket
atm: Payment by ATM
credit_card: Payment by credit card
debit_card: Payment by debit card
prepaid_card: Payment by prepaid card
status
Localização: bodyEstado do meio de pagamentostring
active: Available for use.
deactive: Decommissioned, we don't support it anymore.
temporally_deactive: Unavailable for use, possible interruption of the service.
Solicitação
curl
curl -X GET \
'https://api.mercadopago.com/v1/payment_methods' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Resposta
json
[
{
"id": "visa",
"name": "Visa",
"payment_type_id": "credit_card",
"status": "active",
"secure_thumbnail": "https://www.mercadopago.com/org-img/MP3/API/logos/visa.gif",
"thumbnail": "http://img.mlstatic.com/org-img/MP3/API/logos/visa.gif",
"deferred_capture": "supported",
"settings": {
"bin": {
"pattern": "^(4)",
"exclusion_pattern": "^(400163|400176|400178|400185|400199|423808|439267|471233|473200|476332|482481|451416|438935|(40117[8-9])|(45763[1-2])|457393|431274)",
"installments_pattern": "^(?!(417401|453998|426398|462437|451212|456188))"
},
"card_number": {
"length": 16,
"validation": "standard"
},
"security_code": {
"mode": "mandatory",
"length": 3,
"card_location": "back"
}
},
"additional_info_needed": [
{}
],
"min_allowed_amount": 0.5,
"max_allowed_amount": 60000,
"accreditation_time": 2880,
"financial_institutions": {},
"processing_modes": "aggregator"
}
]
Erros
400bad_request
1000
1001public_key not found.
401bad_request
unauthorizedunauthorized.
404bad_request
not_foundnot_found.