Ir al contenido
UnoPagoDocumentación
Referencia de la APISchoolsStudents

Unlink a student from a customer

PUT
/v1/students/unlink-customer

This API is used to unlink a student from 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
studentId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
customerId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid

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 PUT 'https://api.unopago.com/v1/students/unlink-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"}