Skip to content

Mercado Pago - Create Customer

Creates a new customer in Mercado Pago to save cards and payment methods. Customers facilitate recurring payments and one-click checkout.

FieldTypeRequiredDescription
credentials_idcredentialYesMercado Pago credentials
emailstringYesCustomer email
first_namestringNoCustomer first name
last_namestringNoCustomer last name
phone_area_codestringNoPhone area code
phone_numberstringNoPhone number
identification_typestringNoDocument type (DNI, CPF, etc.)
identification_numberstringNoDocument number
descriptionstringNoCustomer description/notes

This module requires a mercadopago type credential with the following fields:

  • Access Token: Mercado Pago access token (obtained from the developer dashboard)
{
"success": true,
"customer": {
"id": "123456789",
"email": "cliente@email.com",
"first_name": "Juan",
"last_name": "Pérez",
"phone": {
"area_code": "11",
"number": "12345678"
},
"identification": {
"type": "DNI",
"number": "12345678"
},
"date_created": "2024-01-15T10:00:00.000-03:00"
},
"customer_id": "123456789",
"message": "Cliente 123456789 creado"
}
  • Argentina: DNI, CUIT, CUIL
  • Brazil: CPF, CNPJ
  • Mexico: RFC, CURP, INE
  • Colombia: CC, CE, NIT
  • Chile: RUT
  • Peru: DNI, CE, RUC
  • Uruguay: CI, RUT
{
"email": "cliente@email.com",
"first_name": "Juan",
"last_name": "Perez",
"phone_area_code": "11",
"phone_number": "12345678",
"identification_type": "DNI",
"identification_number": "12345678",
"description": "Cliente VIP"
}
  • Email must be unique per customer
  • Once created, cards can be associated using the JS SDK
  • Customers facilitate recurring payments and one-click checkout
  • MercadopagoGetCustomers - Get customers
  • MercadopagoCreatePayment - Create payment
  • MercadopagoCreateSubscription - Create subscription