Create a student
POST
This API is used to create a student and associate it 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
firstName*stringLongitud
1 <= length <= 50customerId?|nulllastName*stringLongitud
length <= 50nationalId?|nullnationality?|nullgender*stringValor en
"MALE""FEMALE""OTHER"dateOfBirth?string|nullenrollmentYear?|nullpromoYear?|nullgradeId?|nullsectionId?|nullbirthPlace?|nullclothingSize?|nullemail?|nullphoneNumber?|nullexternalId?|nullactive?booleanPor defecto
truecustomerExternalId?string|nullSuccessful 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 POST 'https://api.unopago.com/v1/students' \ -H 'Content-Type: application/json' \ -d '{ "firstName": "string", "lastName": "string", "gender": "MALE"}'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"}
