...
getPersonCreditRaw operation added
Blocked state is added to state enum (only used by getPersonCreditRaw operation)
responseReferenceId is added to getSchoolCredit response
Operation overview
Operation authentication
All operations, except login, need either the loginHeader or the sessionIDHeader to authenticate. A sessionID can be obtained by performing the login operation beforehand.
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
loginHeader sessionIDHeader | 1...1 1...1 | You can use either one of the variables | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
loginHeader | 1...1 | ||||
Source
|
...
Name | Type | Cardinality | Description |
---|---|---|---|
sessionID | 1...1 | Unique identifier of the session |
Error codes
Error code | Description |
---|---|
2 |
...
getPersonCredit
Description
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
userID eckID | 1...1 1...1 | You must use either one or both of these variables. | |||
startDate | date | 0...1 | The start date. Licenses which are active on this date are returned: e.g. licenses expired before this date are not returned. Default value is “today” when omitted. | ||
endDate | date | 0...1 | The end date. Licenses should start before this date. Normally only startDate (today) is used. | ||
ean | 0...1 | Unique identifier of the product. Only credits with this ean are returned. | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
personCreditInformation | 0...n | ||||
Source
|
Error codes
Error code | Description |
---|---|
6 |
...
getPersonCreditRaw
Description
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
userID eckID | 1...1 1...1 | You can use either one of these variables | |||
startDate | date | 0...1 | The start date. Licenses which are active on this date are returned: e.g. licenses expired before this date are not returned. Default value is “today” when omitted. | ||
endDate | date | 0...1 | The end date. Licenses should start before this date. Normally only startDate (today) is used. | ||
ean | 0...1 | Unique identifier of the product. The credit gives right of use for the indicated ean. | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
personCreditInformation | 0...n | ||||
Source
|
Error codes
Error code | Description |
---|---|
6 |
...
getSchoolCredit
Description
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
organisationID | 1...1 | Unique identifier of the organisation | |||
startDate | date | 0...1 | The start date. Licenses which are active on this date are returned: e.g. licenses expired before this date are not returned. Default value is “today” when omitted. | ||
endDate | date | 0...1 | The end date. Licenses should start before this date. Normally only startDate (today) is used. | ||
ean | 0...1 | Unique identifier of the product. The credit gives right of use for the indicated ean. | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
schoolCreditInformation | 0...n | ||||
Source
|
Error codes
Error code | Description |
---|---|
6 |
...
getSummedSchoolCredit
Description
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
organisationID | 1...1 | Unique identifier of the organisation | |||
startDate | date | 0...1 | The start date. Licenses which are active on this date are returned: e.g. licenses expired before this date are not returned. Default value is “today” when omitted. | ||
endDate | date | 0...1 | The end date. Licenses should start before this date. Normally only startDate (today) is used. | ||
ean | 0...1 | Unique identifier of the product. The credit gives right of use for the indicated ean. | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
summedSchoolCredit | 0...n | ||||
Source
|
Error codes
Error code | Description |
---|---|
6 |
...
Errors
General errors
Error code | Description |
---|---|
0 | Unkown error |
1 | General error This occurs in for example: database errors or internal server errors. |
2 | Authentication error For instance when invalid credentials are provided. |
3 | Session expired The given sessionID is no longer active and has expired. Acquire a new sessionID to proceed. |
4 | Authorization error You do not have permission to use this operation. |
5 | Bad request Parsing error, for instance when invalid xml has been provided. |
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
username | 0...1 | An identification used by a person to login. | |||
password | 0...1 | A secret word or phrase used for authentication. | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
sessionID | 1...1 | Unique token which can be acquired by executing the login operation. | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
ean | 1...1 | Unique identifier of the product. The credit gives right of use for the indicated ean. | |||
startDate | date | 1...1 | The start date. Until the start date the credit cannot be used. | ||
endDate | date | 0...1 | The end date. Until the end date the credit can be used. | ||
state | 1...1 | The current state of the credit. | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
personCredit | 1...1 | Specific person credit details. | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
organisationID | 1...1 | Unique identifier of the school to which this credit is connected. | |||
ean | 1...1 | Unique identifier of the product. The credit gives right of use for the indicated ean. | |||
startDate | date | 1...1 | The start date. Until the start date the credit cannot be used. | ||
endDate | date | 0...1 | The end date. Until the end date the credit can be used. | ||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
schoolCredit | 1...1 | Specific school credit details. | |||
amountActive | integer | 0...1 | Amount of credits that have been activated by the end-user. | ||
amountNotActive | integer | 0...1 | Amount of credits that have not been activated by the end-user. | ||
responseReferenceId | 0...1 | The identifier returned when specified (so specification and license can be mapped). | |||
Source
|
...
Name | Type | Cardinality | Description | ||
---|---|---|---|---|---|
ean | 1...1 | Unique identifier of the product. The credit gives right of use for the indicated ean. | |||
amount | amount | 1...1 | Total of credits. | ||
used | amount | 0...1 | Total of credits used. | ||
Source
|
...