Link a student to a customer
PUT
This API is used to link a student to 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.
application/json- body
studentId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidcustomerId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidSuccessful response
application/json- response
gender*stringValor en
"MALE""FEMALE""OTHER"clothingSize*|nullid*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidcustomerId*string|nullaccountId*stringexternalId*string|nullreenrollmentSettingsId*string|nullfirstName*stringlastName*stringnationalId*string|nullnationality*string|nulldateOfBirth*string|nullenrollmentYear*string|nullpromoYear*string|nullsectionId*string|nullbirthPlace*string|nullemail*string|nullphoneNumber*string|nullactive*booleancreatedAt*stringupdatedAt*stringcurl -X PUT 'https://api.unopago.com/v1/students/link-customer' \ -H 'Content-Type: application/json' \ -d '{ "studentId": "string", "customerId": "string"}'Ejemplo de respuesta
{ "gender": "MALE", "clothingSize": "XS", "id": "string", "customerId": "string", "accountId": "string", "externalId": "string", "reenrollmentSettingsId": "string", "firstName": "string", "lastName": "string", "nationalId": "string", "nationality": "string", "dateOfBirth": "string", "enrollmentYear": "string", "promoYear": "string", "sectionId": "string", "birthPlace": "string", "email": "string", "phoneNumber": "string", "active": true, "createdAt": "string", "updatedAt": "string"}
