Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Situation

Unavailable product

Code Block
languageyml
titleRequest
{
  "EAN": "9999999999999",
  "ReadingMethod": "D",
  "Protection": "02",
  "RentalUnit": "DAG",
  "RentalNumberOfUnits": "21",
  "OrderReference": "123abc",
  "UserId": "XYZ"
}
Code Block
languageyml
titleResponse
{"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
languageyml
titleRequest
{
  "EAN": "9789084999912",
   "UserId": "bookshelf@cb-logistics.nl",
  "UserPassword": "bookshelf"
}

...

Code Block
languageyml
titleResponse
{
    "Access": {
        "Accessable": "Y"
    }
}

...

Code Block
languageyml
titleRequest
{
  "EAN": "8711000287941",
   "UserId": "bookshelf@cb-logistics.nl",
  "UserPassword": "bookshelf"
}

...

Code Block
languageyml
titleResponse
{
    "Access": {
        "Accessable": "N"
    }
}

...

Code Block
languageyml
titleRequest
{
  "EAN": "9789084999912",
  "UserId": "Tester@cb-logistics.nl",
  "UserPassword": "bookshelf"
}

...

Code Block
languageyml
titleResponse
{
    "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