Versions Compared

Key

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

...

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)

OpenAPI Specification

View file
namecb_org-PPStockAvailabilityByOwnerAPI-1.0.0-resolved.yaml

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

Code Block
languagejson
grant_type=client_credentials&client_id=<client-id>&client_secret=<client-secret>

Token

URL's for requesting token:
test                  : https://token.tst.cb-api.nl/oauth2/token
production      : https://token.cb-api.nl/oauth2/token

Code Block
languagejson
curl --request POST \
  --url 'https://token.tst.cb-api.nl/oauth2/token' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data client_id=YOUR_CLIENT_ID \
  --data client_secret=YOUR_CLIENT_SECRET

...

Webservice approache

REST - Representational State Transfer

OpenAPI Specification

View file
namecb_org-PPStockAvailabilityByOwnerAPI-1.0.0-resolved.yaml

URL 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

...