# Inventory Planner

> Read stock orders and replenishment metrics for purchasing dashboards and warehouse reconciliation. Read-only beta integration.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/inventory-planner

## Actions

### Get purchase order

Get purchase order using the documented API. Returns the records visible to this API credential.

**Inputs**

- Order ID (`order_id`, text, required): Purchase order ID from List purchase orders.

**Outputs**

- `data` (object): The response from Inventory Planner.

**Example output**

```json
{
  "data": {
    "purchase-order": {
      "id": "order1",
      "reference": "PO-1",
      "status": "OPEN"
    }
  }
}
```

### List purchase orders

List purchase orders using the documented API. Returns one page; use the pagination fields to continue.

**Inputs**

- Page (`page`, number): Page index; first page is 0. At least 0.
- Limit (`limit`, number): Maximum records to return. At least 1.

**Outputs**

- `data` (object): The response from Inventory Planner.

**Example output**

```json
{
  "data": {
    "meta": {
      "name": "purchase-orders",
      "total": 1
    },
    "purchase-orders": [
      {
        "id": "order1",
        "reference": "PO-1",
        "status": "OPEN"
      }
    ]
  }
}
```

### List variants

List variants using the documented API. Returns one page; use the pagination fields to continue.

**Inputs**

- Page (`page`, number): Page index; first page is 0. At least 0.
- Limit (`limit`, number): Maximum records to return. At least 1.
- Fields (`fields`, text): Comma-separated report fields, e.g. sku,replenishment,oos.

**Outputs**

- `data` (object): The response from Inventory Planner.

**Example output**

```json
{
  "data": {
    "meta": {
      "name": "variants",
      "total": 1
    },
    "variants": [
      {
        "id": 123,
        "replenishment": 10,
        "sku": "SKU-1"
      }
    ]
  }
}
```
