Documentation Index

Fetch the complete documentation index at: https://docs.wair.ai/llms.txt

Use this file to discover all available pages before exploring further.

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

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": "string",
      "skuId": "string",
      "targetQuantity": 0,
      "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