Most of our content is Publicly accessible. However some content is Private and you will be asked to create an account the first time you try to access this content.
Private content is only available to our existing customers.

GET /Recommendations/stockTargets

Prev Next

GENERAL INFORMATION

With this endpoint you can retrieve the stocktargets that have been generated by Wallie.

REQUEST

Authentication:

Bearer token, information on page POST /Token

Headers

Name

Description

Example

X-Tenant

Tenant code supplied by Wair

“TENANT”

QueryParameters:

Name

Description

Example

Offset

The offset of records you want to retrieve

100

Limit

Maximum number of records you want to retrieve

10

fullLoad

When setting this parameter to true you will get all active stock targets from Wair.

true

Body example:

No body required.

RESPONSE

StatusCodes:

200 = OK

401 = Unauthorized, which means an expired/missing/invalid token

500 = System error, see body of the response to check which error has occured or contact integration support

Body Example:

{
  "stockTargets": [
    {
      "locationId": "1b935f00-dbf6-47eb-9e39-b3be667d44c3",
      "skuId": "100001-10-M",
      "targetQuantity": 3,
      "forecastDate": "2025-12-18T10:05:29.379Z"
    },
    {
      "locationId": "1b935f00-dbf6-47eb-9e39-b3be667d44c3",
      "skuId": "100001-10-L",
      "targetQuantity": 3,
      "forecastDate": "2025-12-18T10:05:29.379Z"
    }
  ],
  "offset": 100,
  "limit": 10,
  "moreRecordsAvailable": true
}

locationId = id of location the min/max needs to be set for.

skuId = id of sku the min/max needs to be set for.

target quantity = the stock quantity recommended for the coming 7 days.

forecastDate = date forecast has been generated.

offset = The offset you used as queryParam

limit = The limit you used as queryParam

moreRecordsAvailable = if there are more records available after your offset/limit