Table of Contents |
---|
Revision
Date | Description |
| 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 |
Introduction
(Web) shops selling physical products to their customers place great value in fulfilling their client commitments. Important aspect is understanding the currently available stock. On this basis, the (web) shop is able to provide their customers with the correct delivery indication.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
POST https://testservices.cb.nl/rest/api/v1/PhysicalProductStockService/getStockAvailability HTTP/1.1 UserName: _SNIP_ Content-Type: application/json { "Product": [ {"ProductId": "9780582275225","ProductIdType": "EAN"}, {"ProductId": "9783259011928","ProductIdType": "EAN"} ] } |
Reply
Parameter | Description | Cardinality | Approved values |
---|---|---|---|
StockAvailability | Stock availability composite | 1..n | |
ProductId | Identification of the product for which the available stock is requested | 1..1 | |
ProductIdType | The identification type of the product | 1..1 | EAN |
QuantityAvailable24hrs | The number of products available at the time of this request and ready for delivery within 24 hours. | 1..1 | |
QuantityAvailable48hrs | The number of products available at the time of this request and ready for delivery within 48 hours. This includes delivery within 24 hours. | 1..1 |
Example reply
...
- Without message
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "StockAvailability": [ { "ProductId": "9780582275225", "ProductIdType": "EAN", "QuantityAvailable24hrs": "54", "QuantityAvailable48hrs": "1554" }, { "ProductId": "9783259011928", "ProductIdType": "EAN", "QuantityAvailable24hrs": "11", "QuantityAvailable48hrs": "11" } ] } |
...
Example reply - With message
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "Message": { "MessageType": "E", "MessageCode": "WMS-00011", "MessageText": "Invalid value for productIdType." } } |
...