Invite contact to a customer
POST
Invites a contact to be associated with a customer.
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
customerId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidapplication/json- body
email?stringPatrón
^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Formato
emailLongitud
length <= 128phoneNumber*stringPatrón
^(?:[01]\d{3}-?\d{7}|\+58(?!0)\d{3}-?\d{7}|\+(?!58)\d{1,3}\d{3}-?\d{7})$role*stringValor en
"PARENT""FAMILY""GUARDIAN""PAYER"notificationMethod?stringPor defecto
"WHATSAPP"Valor en
"WHATSAPP""SMS"Successful response
application/json- response
role*stringValor en
"PARENT""FAMILY""GUARDIAN""PAYER"id*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidcustomerId*stringaccountId*stringemail*string|nullphoneNumber*stringcreatedAt*stringupdatedAt*stringcurl -X POST 'https://api.unopago.com/v1/customers/string/contacts/invite' \ -H 'Content-Type: application/json' \ -d '{ "phoneNumber": "string", "role": "PARENT"}'Ejemplo de respuesta
{ "role": "PARENT", "id": "string", "customerId": "string", "accountId": "string", "email": "string", "phoneNumber": "string", "createdAt": "string", "updatedAt": "string"}
