Get all students
GET
This API is used to get all students. It supports pagination
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
cursor?stringlimit?numberRango
value <= 250Por defecto
100searchTerm?stringgender?stringValor en
"MALE""FEMALE""OTHER"promoYear?stringenrollmentYear?stringclothingSize?stringValor en
"XS""S""M""L""XL""XXL"active?booleanplanId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidgradeId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidreenrollmentSettingsId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidtagId?stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidSuccessful response
application/json- response
results*array<>total*numbertotalPages*numbernextCursor?|The cursor to get the next page of results
exchangeRates?curl -X GET 'https://api.unopago.com/v1/students'Ejemplo de respuesta
{ "results": [ { "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", "customer": { "id": "string", "accountId": "string", "externalId": "string", "mainContactId": "string", "nationalId": "string", "firstName": "string", "lastName": "string", "email": "string", "phoneNumber": "string", "address": "string", "createdAt": "string", "updatedAt": "string" }, "section": { "id": "string", "name": "string", "accountId": "string", "gradeId": "string", "createdAt": "string", "updatedAt": "string", "grade": { "id": "string", "accountId": "string", "name": "string", "description": "string", "level": -9007199254740991, "createdAt": "string", "updatedAt": "string" } }, "subscriptions": [ { "plan": { "id": "string", "name": "string" } } ], "tags": [ { "entityTypes": [ "CUSTOMER" ], "id": "string", "accountId": "string", "name": "string", "emoji": "string", "color": "string", "description": "string", "isActive": true, "sortOrder": -9007199254740991, "createdAt": "string", "updatedAt": "string", "deletedAt": "string" } ], "syncedFrom": { "id": "string", "name": "string" } } ], "total": 0, "totalPages": 0, "nextCursor": "string", "exchangeRates": { "property1": { "rate": 0, "rateDate": "string", "daysAhead": 0 }, "property2": { "rate": 0, "rateDate": "string", "daysAhead": 0 } }}
