IntegrationsKiwiBot

Forecast-based order suggestion for a supplier's products; nothing is saved

POST
/integrations/connections/{connection_id}/providers/kiwibot/purchase-orders/preview

Forecast-based order suggestion for a supplier's products; nothing is saved. Each distribution gives an active location its share of the target stock; percentages must sum to 100. target_days counts from arrival. Open orders count as incoming unless include_incoming is false. Only Shopify variants with sales in the last 180 days are included. Limited to 20 previews per minute per store.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

connection_id*string

Resource identifier: connection_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/integrations/connections/123e4567-e89b-42d3-a456-426614174000/providers/kiwibot/purchase-orders/preview" \  -H "Content-Type: application/json" \  -d '{    "supplier_id": "000000000000000000000000",    "distributions": [      {        "location_id": "example",        "percentage": 0      }    ]  }'
{  "items": [],  "summary": {    "total_items": 0,    "total_units": 0,    "total_cost": 0,    "location_count": 0,    "total_incoming": 0  },  "location_summaries": [],  "settings": {    "target_days": 0,    "use_seasonality": false,    "service_level": 0,    "include_incoming": false  }}