ODS - Get stock information for the requested product

New endpoint: GET https://api.twinbru.com/stock/{productId}?quantity={quantity} (Try it)

Stock info can be retrieved from the Get stock information for the requested product API endpoint. This endpoint will return a single result.
This endpoint expect always a specific productId to fetch the stock of that particular product.

Parameter

Example value

Meaning

productId

300

Product you want to fetch information from

quantity

50

The minimum quantity for which you want to generate the calendar

Example

URL: https://api.twinbru.com/stock/300?quantity=50

Method: GET

Parameters:

  • quantity: 50

Headers:

  • Api-version: v1

  • Authorization: Bearer {jwt-token}

  • Ocp-Apim-Subscription-Key: {subscription-key}

Result

{
"parameters": null,
"results": [{
"item": {
"itemId": "300",
"localized": [],
"id": "300",
"productId": 300,
"salesOrganization": "2510",
"company": "BRU",
"lastUpdateDate": "2021-06-23",
"stockDateUnix": 1629590400,
"isMaxLeadTime": true,
"stockDate": "2021-08-22",
"stockQuantity": 50.0,
"territoryId": "BRU_GLO"
}
}
],
"facets": [],
"filters": [{
"name": "productId",
"displayName": "productId",
"value": 300,
"keyValue": "300",
"displayValue": "300"
}
],
"filter": "productId.eq.300",
"page": 1,
"pageSize": 1,
"totalPageCount": 1,
"totalItemCount": 1
}