Ir al contenido
UnoPagoDocumentación
Referencia de la APISchoolsStudents

Get all students

GET
/v1/students

This API is used to get all students. It supports pagination

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.

cursor?string
limit?number
Rangovalue <= 250
Por defecto100
searchTerm?string
gender?string
Valor en"MALE""FEMALE""OTHER"
promoYear?string
enrollmentYear?string
clothingSize?string
Valor en"XS""S""M""L""XL""XXL"
active?boolean
planId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
gradeId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
reenrollmentSettingsId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
tagId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid

Cuerpo de la respuesta

Successful response

application/json
  1. response
results*array<>
total*number
totalPages*number
nextCursor?|

The cursor to get the next page of results

exchangeRates?
Ejemplo de solicitud
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    }  }}