# Plan inventory replenishment within a purchasing budget

**Use case:** 

Turn stock, sales history, lead times and pack sizes into a reorder draft within your purchasing budget. The synthetic EUR 150 example funds EUR 120 of whole packs and keeps deferred demand visible. Get JSON, Excel and HTML for review.

## Input

```json
{
  "operation": "inventory",
  "payload": {
    "items": [
      {
        "sku": "A1",
        "on_hand": "12",
        "reserved": "2",
        "inbound": "0",
        "sold_in_period": "300",
        "pack_size": "12",
        "unit_cost": "5",
        "period_days": 30,
        "lead_days": 5,
        "safety_days": 2,
        "review_days": 7
      }
    ],
    "budget": "150"
  },
  "column_mapping": {
    "sku": "SKU",
    "name": "Name",
    "unit_price": "Price"
  },
  "decimal_separator": ".",
  "number_format": "auto",
  "currency": "EUR",
  "period_days": 30
}
```

## Output

```json
{
  "id": {
    "label": "Run",
    "format": "text"
  },
  "operation": {
    "label": "Workflow",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "result.summary": {
    "label": "Summary",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Invoice Checker: 3-Way Match PO, Delivery & Invoice Actor is ready to run with the inputs already set for "Plan inventory replenishment within a purchasing budget". [Sign up or log in](https://console.apify.com/create-task-from-example/2rZBXcko2pQb9XYtu) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Plan inventory replenishment within a purchasing budget" task

The Invoice Checker: 3-Way Match PO, Delivery & Invoice Actor will start running based on the input automatically. You can also change all the input fields, like workflow, workflow data, and more, to match your specific use case.

### 3. Receive the "Plan inventory replenishment within a purchasing budget" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as run, workflow, status, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Plan inventory replenishment within a purchasing budget" task via API](https://apify.com/ryanbot_research/islem-b2b-automation.md).

## FAQ

### What does the stock example calculate?

ISLEM uses supplied stock, sales, lead times and whole-pack sizes. The synthetic EUR 150 budget funds 24 units for EUR 120, leaving EUR 30. Unfunded replenishment stays visible. This is rule-based planning, not a learned demand forecast.

### What does one completed report cost?

ISLEM charges $0.05 per completed report plus $0.00005 start; platform usage is included. Completed reports with review flags are billable. This starter has a $0.05005 run cap and starts no schedule or automatic purchase.

### How do I prepare my own input?

Replace the synthetic items and budget with your structured records. The main ISLEM page links to a free browser input builder and JSON templates. Use one currency for every cost; no ERP synchronization or automatic order is performed.

## About this Actor

This example demonstrates how to use [Invoice Checker: 3-Way Match PO, Delivery & Invoice](https://apify.com/ryanbot_research/islem-b2b-automation.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ryanbot_research/islem-b2b-automation.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ryanbot_research/islem-b2b-automation.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
