Revision
Date | Description |
---|---|
New version due to move to a new server. Authentication, URL change and new yaml version. | |
| As of February 1, 2022, CB will no longer support TLS 1.0 and 1.1 |
| Initial document |
...
Request | ||||
Parameter | Description | Cardinality | Approved values | |
Product | Product composite | 1..1000 | ||
ProductId | Identification of the product ät CB for which the available stock is requested | 1..1 | Maximum length 250 characters.Supported characterset Windows-1252 | |
ProductIdType | The identification type of the product | 1..1 | OWN | |
OwnerId | Identification of the owner of the product for which the available stock is requested | 1..1 | ||
Response | ||||
Parameter | Description | Optionality | Approved values | |
StockAvailabilityByOwner | Stock availability by owner composite | 1..n | ||
ProductId | Identification of the product at CB for which the available stock is requested | 1..1 | ||
ProductIdType | The identification type of the product | 1..1 | OWN | |
OwnerId | Identification of the owner of the product for which the available stock is requested | 1..1 | ||
QuantityAvailable | The number of products available at the time of this request and ready for delivery | 1..1 |
Authentication
Authentication | OPenID Connect (OIDC) |
Authentication by means of a (Bearer) token. |
The token is requested |
by means of an API call with credentials known to the |
client. The credentials are specified as |
parameters | |
Content type | Content-Type: application/x-www-form-urlencoded |
language | json |
---|
Token | URL's |
for requesting token: |
production : https://token. |
productie :
|
Webservice information
Webservice approache | REST - Representational State Transfer | |||||||||||
OpenAPI | specificationhttps://app.swaggerhub.com/apis/Specification |
| ||||||||||
Content type | The content/body in the request and response has to be, will be in json format Is dit wel oké. Bij Authentication | |||||||||||
URL Test | URL ProductionURL Production | https://media.cb-api.nl/physicalproduct/stockbyowner/v1/availabilitybyowner | ||||||||||
URL Test | https://media.tst.cb-api.nl/physicalproduct/stockbyowner/v1/availabilitybyowner | |||||||||||
Supported SSL/TLS protocols | TLS 1.2 | |||||||||||
TLS 1.3 |
Response messages
HTTP code | Code | Message |
---|---|---|
200 | ||
200 | WMS-00025 | ### product(s) not found or no stock |
400 | CEP-002 | <detail "invalid (based on OpenAPI-specification) input" message> |
401 | CEP-003 | You are not authenticated |
404 | CEP-004 | Resource not available |
500 | "Internal server error" | |
500 | WMS-00000 | Something went wrong in processing the request. (<error-reference-code>) |
Physical products for test purposes
EAN
Title
Volume limits and performance requirements
...