Versions Compared

Key

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

Table of Contents

Revision

DateDescription

 

Delivery Channel BS (Bookshelf) is deprecated

 

As of July 1, 2022, CB will no longer support Bookshelf

 

Specific messages (type/code/text) for this webservice:

Some of EBS-* error code will change to WMS-* codes 

 

As of May 17, 2021, CB will no longer support TLS 1.0 and 1.1

 

Initial document

...

  • checkOrderable
  • getContentUrl
  • placeOrder

Path: /rest/api/v1/DigitalProductOrderService

Delivery channel: Bookshelf

A Bookshelf order must be seen as a request to send a specific e-book to a certain user on the Bookshelf platform. It is therefore necessary to include the information of the Bookshelf- user with the order. If the user does not already have a Bookshelf account, an account can be made through the registration form below: 

https://bookshelf.vitalsource.com/#/user/registration

Specific messages (type/code/text) for this webservice:

10050EBS-,\"BS\"
TypeCodeTextNew code

New text 

Note

Date to be announced


E

EBS-10001

The field EAN is mandatoryWMS-00008[object has missing required properties ([\"EAN\"])]

E

EBS-10003

A product with this EAN is not available



E

EBS-10004

This product is not available for delivery



E

EBS-10005

This OrderReference has already been used, use another reference



E

EBS-10006

This product can not be ordered yet



E

EBS-10009

This product may not be ordered yet



E

EBS-10011

This audio book is no longer available via CB. Please contact the publisher for more info



E

EBS-10017

Your credit limit has been exceeded



EEBS-10034This product is not available for the given reading method

E

EBS-10038

Vitalsource user account unknown



EEBS-The field DeliveryChannel is mandatoryWMS-00008[object has missing required properties ([\"DeliveryChannel\"])]E10056Invalid value for DeliveryChannelWMS-00008[instance value (\"<onjuiste waarde>\") not found in enum (possible values: [\"CBW\"])]

E

EBS-10057

UserId is mandatory for Bookshelf order

E

EBS-10060

Product ordered but no price available yet, please try again tomorrow



EEBS-10073The field EAN must be 13 longWMS-00008[ECMA 262 regex \"^([0-9]{13})$\" does not match input string \"<onjuiste waarde>\"]
EEBS-10075The field OrderReference must be maximum 100 longWMS-00008[string \"<onjuiste waarde>\" is too long (length: 168, maximum allowed: 100)]
EEBS-10076The field OrderReference is mandatory

E

EBS-10077

No order found with this OrderReference



...

Parameter

Description

Optionality

Allowed values

EAN

The EAN of which availability and deliverability needs to be checked

Mandatory

13 positions

DeliveryChannel

The method the subscriber uses to read the digital product (Download or On-line reading in the Cloud).

MandatoryOptional

CBW (CB registered web shop)
BS (BookShelf)

UserId

The identification of the end user. Is used to authenticate the end user (subscriber of the customer) upon delivery of the digital product.

Optional

Max. 50 positions

deprecated

Response

Parameter

Description

Optionality

Allowed values

Orderable

Indicates orderability of the requested digital product through the desired channel.

Mandatory

Y (Yes = Orderable)

N (No = Not orderable)

...

SituationOrderable product at CB
Code Block
languageyml
titleRequest
{
  "EAN": "9789084999813",
  "DeliveryChannel": "CBW"
}
Code Block
languageyml
titleResponse
{
  "Orderable": {
     "orderable": "Y" 
  }
}
{ "EAN": "8711000287941", "UserId": "bookshelf@cb-logistics.nl", "UserPassword": "bookshelf" }
SituationOrderable product at Bookshelf
Code Block
languageyml
titleRequest
Code Block
languageyml
titleResponse
{
  "Orderable": {
     "orderable": "Y" 
    }
}
SituationNon-orderable product at CB
Code Block
languageyml
titleRequest
{
  "EAN": "9999999999999",
  "DeliveryChannel": "CBW"
}
Code Block
languageyml
titleResponse
{
   "Message":    {
      "MessageType": "I",
      "MessageCode": "EBS-10003",
      "MessageText": "A product with this EAN is not available"
   },
   "Orderable": {
      "orderable": "N" 
    }
}

...

Parameter

Description

Optionality

Allowed values

EAN

The EAN of which availability and deliverability needs to be checked

Mandatory

13 positions

DeliveryChannel

The method the subscriber uses to read the digital product (Download or On-line reading in the Cloud).

MandatoryOptional

CBW (CB registered web shop)
BS (BookShelf)

UserId

The identification of the end user. Is used to authenticate the end user (subscriber of the customer) upon delivery of the digital product.

Optional

Max. 50 positions

  deprecated

OrderReferenceThis is an internal reference used by the CB-customer to identify the order. This identifier needs to be unique.Mandatory

Max. 100 positions

...

SituationOrderable product at CB
Code Block
languageyml
titleRequest
{
  "EAN": "9789084999813",
  "OrderReference" : "1423575022409",
  "DeliveryChannel":
"CBW"
}
Code Block
languageyml
titleResponse
{
 "placeOrder": {
    "CbOrderReference": "1669231",
    "OrderedItem": [{
       "EAN": "9789084999813",
       "URL": "https://tstep2.eboekhuis.nl/wmDwld.php?uid=58403560d6961&ean=9789084999813&r=1"
        }]
  }
}
SituationOrderable product at Bookshelf Code Block
languageyml
titleRequest
{
"
EAN": "9789084999813",

  
"OrderReference" : "1423575022409",
   
"DeliveryChannel":
 
"BS",
  
"UserId": "bookshelf@cb-logistics.nl"
}
Code Block
languageyml
titleResponse
{ "placeOrder": { "CbOrderReference": "1669231", "OrderedItem": [{ "EAN": "9789084999813" }
]
  }
}
SituationNon-orderable product at CB
Code Block
languageyml
titleRequest
{
  "EAN": "9999999999999",
  "OrderReference" : "1423575022409",

 "DeliveryChannel": "CBW"
}
Code Block
languageyml
titleResponse
{
 "Message":    {
      "MessageType": "I",
      "MessageCode": "EBS-10003",
      "MessageText": "A product with this EAN is not available"
  }
}

...

Include Page
Digital products for testing purposes
Digital products for testing purposes

Include Page
DigitalProductPublisherService and OrderService DigitalProductOrderService webservice Volume limits and performance requirementsDigitalProductPublisherService and OrderService
DigitalProductOrderService webservice Volume limits and performance requirements

...