Ir al contenido
UnoPagoDocumentación
Referencia de la APICustomer dataCustomers

Invite contact to a customer

POST
/v1/customers/{customerId}/contacts/invite

Invites a contact to be associated with a customer.

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

Parámetros de ruta

customerId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
application/json
  1. body
email?string
Patró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,}$
Formatoemail
Longitudlength <= 128
phoneNumber*string
Patrón^(?:[01]\d{3}-?\d{7}|\+58(?!0)\d{3}-?\d{7}|\+(?!58)\d{1,3}\d{3}-?\d{7})$
role*string
Valor en"PARENT""FAMILY""GUARDIAN""PAYER"
notificationMethod?string
Por defecto"WHATSAPP"
Valor en"WHATSAPP""SMS"

Cuerpo de la respuesta

Successful response

application/json
  1. response
role*string
Valor en"PARENT""FAMILY""GUARDIAN""PAYER"
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
customerId*string
accountId*string
email*string|null
phoneNumber*string
createdAt*string
updatedAt*string
Ejemplo de solicitud
curl -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"}