...
Situation | Unavailable product |
Code Block |
---|
| {
"EAN": "9999999999999",
"ReadingMethod": "D",
"Protection": "02",
"RentalUnit": "DAG",
"RentalNumberOfUnits": "21",
"OrderReference": "123abc",
"UserId": "XYZ"
} |
|
Code Block |
---|
| {"Message": {
"MessageType": "E",
"MessageCode": "EBS-10003",
"MessageText": "A product with this EAN is not available."
}} |
|
*********************************
For testing the following data is available (other data will result in an error response):
...
Operation: checkAccess
This operation gives as answer if the supplied Bookshelf/VitalSource user has access to the supplied product (purchased on Bookshelf/VitalSource).
It can be used for example on a publisher website for checking if the user should be granted access to specific digital content that is only available for users who purchased the related product.
RequestÂ
- EAN : The EAN of the product/title that has to be checked (required)
- UserId : Identifier of the Bookshelf/VitalSource user (required)
- UserPassword : Password of the Bookshelf/VitalSource user (required)
Response
- Accessable : Indication (Y/N) if the user has access tot he specified product.
Examples
...
Code Block |
---|
|
{
"EAN": "9789084999912",
"UserId": "bookshelf@cb-logistics.nl",
"UserPassword": "bookshelf"
} |
...
Code Block |
---|
|
{
"Access": {
"Accessable": "Y"
}
} |
...
Code Block |
---|
|
{
"EAN": "8711000287941",
"UserId": "bookshelf@cb-logistics.nl",
"UserPassword": "bookshelf"
} |
...
Code Block |
---|
|
{
"Access": {
"Accessable": "N"
}
} |
...
Code Block |
---|
|
{
"EAN": "9789084999912",
"UserId": "Tester@cb-logistics.nl",
"UserPassword": "bookshelf"
} |
...
Code Block |
---|
|
{
"Message": {
"MessageType": "I",
"MessageCode": "EBS-10038",
"MessageText": "Vitalsource user account unknown."
},
"Access": {
"Accessable": "N"
}
} |
Include Page |
---|
| General information CB DigitalProduct* webservice |
---|
| General information CB DigitalProduct* webservice |
---|
|