Ir al contenido
UnoPagoDocumentación
Referencia de la APISchoolsStudents

Create a student

POST
/v1/students

This API is used to create a student and associate it to 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.

application/json
  1. body
firstName*string
Longitud1 <= length <= 50
customerId?|null
lastName*string
Longitudlength <= 50
nationalId?|null
nationality?|null
gender*string
Valor en"MALE""FEMALE""OTHER"
dateOfBirth?string|null
enrollmentYear?|null
promoYear?|null
gradeId?|null
sectionId?|null
birthPlace?|null
clothingSize?|null
email?|null
phoneNumber?|null
externalId?|null
active?boolean
Por defectotrue
customerExternalId?string|null

Cuerpo de la respuesta

Successful response

application/json
  1. response
gender*string
Valor en"MALE""FEMALE""OTHER"
clothingSize*|null
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
customerId*string|null
accountId*string
externalId*string|null
reenrollmentSettingsId*string|null
firstName*string
lastName*string
nationalId*string|null
nationality*string|null
dateOfBirth*string|null
enrollmentYear*string|null
promoYear*string|null
sectionId*string|null
birthPlace*string|null
email*string|null
phoneNumber*string|null
active*boolean
createdAt*string
updatedAt*string
Ejemplo de solicitud
curl -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"}