Creates a student for a specific university and assigns them a new virtual account. To send this request, you must provide a university ID in the request path.
OAuth Grant type, Private JWT
Client ID header
University ID to be used in the query
Request body for creating a student
{
"externalId": "2507b89c-b680-46df-9505-e0b6f78cf295",
"universityAccountId": "2507b89c-b680-46df-9505-e0b6f78cf333"
}Data structure containing the request details for creating a student
Deprecated. Now students can always access full functionality. We keep this field for legacy compatibility.
Student's first name.
Student's last name.
Student's email address.
Student's external ID used to identify the student in the university system
Student's national ID number.
The value is the national ID in the country of which the student is a citizen.
Date when the student was born.
The value uses the complete data format defined in ISO 8601:
'YYYY-MM-DD'
Where:
- YYYY: 4-digit year
- MM: 2-digit month (for example, 01 = January)
- DD: 2-digit day of the month (01 through 31).
Country code for the country where the student resides.
The value is based on the ISO 3166-1 alpha-2 (https://www.iso.org/obp/ui/#search/code/).
Country code for the country of which the student is a citizen.
The value is based on the ISO 3166-1 alpha-2 (https://www.iso.org/obp/ui/#search/code/).
Qualification level of the student's university course
Area of study of the student's university course
Title of the student's university course
University account ID.
The university account ID represents an account created within the One Trade system that is associated with a university. A university can have multiple accounts within the One Trade system.
Response, depending on the request type:
- For a GET or PATCH request, '200 OK'
- For a POST request, '201 Created'
{
"data": {
"id": "9c485e92-9c25-41e2-b6a5-a54381716670",
"universityId": "d317d060-0d41-43ec-ba43-e47e8a25aa5b",
"externalId": "2507b89c-b680-46df-9505-e0b6f78cf295",
"type": "EXTENDED",
"iban": "GB92PAGO72899000000263",
"firstName": "George",
"lastName": "Washington",
"email": "gwpresi@yahoo.com",
"idNumber": "12345678A",
"birthDate": "1970-01-01T00:00:00.000Z",
"trainingType": "GRADE",
"trainingArea": "ENGINEERING",
"trainingTitle": "MECHANICAL ENGINEERING",
"residenceCountry": {
"code": "ES",
"name": "Spain"
},
"nationalityCountry": {
"code": "ES",
"name": "Spain"
},
"universityAccountId": "2507b89c-b680-46df-9505-e0b6f78cf333",
"fileInfoId": "2507b89c-b680-46df-9505-e0b6f78cf295",
"createdAt": "2022-03-14T12:09:49.955Z",
"updatedAt": "2022-03-14T12:09:49.955Z"
}
}Response to a request to create, update, or retrieve the details of a student
Data structure containing student details
Unique student ID generated by One Trade
Deprecated. Now students can always access full functionality. We keep this field for legacy compatibility.
University ID.
The value is the university ID used in the request path.
Student's first name
Student's last name
Student's email address
Student's external ID used to identify the student in the university system
Student's national ID number.
The value is the national ID in the country of which the student is a citizen.
Date when the student was born.
The value uses the complete data format defined in ISO 8601:
'YYYY-MM-DDThh:mm:ss.sssTZD'
Where:
- YYYY: 4-digit year
- MM: 2-digit month (for example, 01 = January)
- DD: 2-digit day of the month (01 through 31)
- hh: 2-digit hour of the day (00 through 23)
- mm: 2-digit minute of the hour (00 through 59)
- ss.sss: 5-digit seconds and milliseconds, separated by a point
- TZD: Time zone indicator
Qualification level of the student's university course
Area of study of the student's university course
Title of the student's university course
IBAN of the virtual account that has been automatically generated and assigned to the student.
The student makes payments for their course to the university into this account.
University account ID.
The university account ID represents an account created within the One Trade system that is associated with a university. A university can have multiple accounts within the One Trade system.
Date and time when the entry was created
Date and time when the entry was updated
Data structure containing information about the country where the student resides
Country code.
The value is based on the ISO 3166-1 alpha-2 (https://www.iso.org/obp/ui/#search/code/).
Country name In English.
Data structure containing information about the country of which the student is a citizen.
Country code.
The value is based on the ISO 3166-1 alpha-2 (https://www.iso.org/obp/ui/#search/code/).
Student's nationality in English.
ID of the file containing the student's details. Applies only when the student was created using a batch process outside of this API.
Bad request
{
"errors": [
{
"code": "BAD_REQUEST",
"level": "FATAL",
"message": "Bad Request",
"description": "Error validating schema"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unauthorized
{
"errors": [
{
"code": "UNAUTHORIZED",
"message": "Unauthorized",
"level": "ERROR",
"description": "Unauthorized description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Forbidden
{
"errors": [
{
"code": "FORBIDDEN",
"level": "FATAL",
"message": "Forbidden",
"description": "Forbidden description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Not found
{
"errors": [
{
"code": "NOT_FOUND",
"level": "FATAL",
"message": "Not Found",
"description": "Not Found description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Not Acceptable
{
"errors": [
{
"code": "NOT_ACCEPTABLE",
"level": "FATAL",
"message": "Not Acceptable",
"description": "Not Acceptable description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Conflict
{
"errors": [
{
"code": "CONFLICT",
"level": "FATAL",
"message": "Conflict",
"description": "Conflict description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Payload Too Large
{
"errors": [
{
"code": "PAYLOAD_TOO_LARGE",
"level": "FATAL",
"message": "Payload Too Large",
"description": "Payload Too Large description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
URI Too Long
{
"errors": [
{
"code": "URI_TOO_LONG",
"level": "FATAL",
"message": "URI Too Long",
"description": "URI Too Long description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unsupported Media Type
{
"errors": [
{
"code": "UNSUPPORTED_MEDIA_TYPE",
"level": "FATAL",
"message": "Unsupported Media Type",
"description": "Unsupported Media Type description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unprocessable Entity
{
"errors": [
{
"code": "UNPROCESSABLE_ENTITY",
"level": "FATAL",
"message": "Unprocessable Entity",
"description": "Unprocessable Entity description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Too Many Requests
{
"errors": [
{
"code": "TOO_MANY_REQUESTS",
"level": "ERROR",
"message": "Too Many Requests",
"description": "Too Many Requests description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Internal server error
{
"errors": [
{
"code": "INTERNAL_SERVER_ERROR",
"level": "FATAL",
"message": "Internal server error",
"description": "Internal server error description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Service unavailable
{
"errors": [
{
"code": "SERVICE_UNAVAILABLE",
"level": "ERROR",
"message": "Service unavailable",
"description": "Service unavailable error description"
}
]
}{
"errors": [
{
"code": "fail",
"level": "ERROR",
"message": "Health check failed",
"description": "Health check failed"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Gateway timeout
{
"errors": [
{
"code": "GATEWAY_TIMEOUT",
"level": "ERROR",
"message": "Gateway timeout",
"description": "Gateway timeout error description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Default error
{
"errors": [
{
"code": "INTERNAL_SERVER_ERROR",
"level": "FATAL",
"message": "Error message",
"description": "Error description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue