# inFlow

> Look up inFlow products, stock, customers and orders, and use inventory changes in workflows.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/inflow

## Actions

### Get customer

Get a customer.

**Inputs**

- Customer (`customer_id`, text, required): The customerId to be fetched

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "contactName": "example",
    "customerId": "example",
    "email": "example",
    "isActive": false,
    "lastModifiedDateTime": "example",
    "name": "example",
    "phone": "example",
    "timestamp": "example"
  }
}
```

### Get inventory for multiple products

Get multiple product inventory summaries.

**Inputs**

- Items (`items`, list, required): Items.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### Get location

Get a location.

**Inputs**

- Location (`location_id`, text, required): The locationId to be fetched

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "address": {
      "address1": "example",
      "address2": "example",
      "addressType": "Commercial",
      "city": "example",
      "country": "example",
      "postalCode": "example",
      "remarks": "example",
      "state": "example"
    },
    "isActive": false,
    "isDefault": false,
    "locationId": "example",
    "name": "example",
    "timestamp": "example"
  }
}
```

### Get manufacturing order

Get a manufacturing order.

**Inputs**

- Manufacturing order (`manufacturing_order_id`, text, required): The manufacturingOrderId to be fetched

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "isCancelled": false,
    "isCompleted": false,
    "lastModifiedDateTime": "example",
    "manufacturingOrderId": "example",
    "manufacturingOrderNumber": "example",
    "orderDate": "example",
    "status": "Open",
    "timestamp": "example"
  }
}
```

### Get product

Get a product.

**Inputs**

- Product (`product_id`, text, required): The productId to be fetched

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "categoryId": "example",
    "description": "example",
    "isActive": false,
    "itemType": "StockedProduct",
    "lastModifiedDateTime": "example",
    "name": "example",
    "productId": "example",
    "sku": "example",
    "timestamp": "example",
    "totalQuantityOnHand": "example"
  }
}
```

### Get product category

Get a category.

**Inputs**

- Category (`category_id`, text, required): The categoryId to be fetched

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "categoryId": "example",
    "name": "example",
    "parentCategoryId": "example",
    "timestamp": "example"
  }
}
```

### Get product group

Get a product group.

**Inputs**

- Product group (`product_group_id`, text, required): The product group ID.

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "categoryId": "example",
    "isActive": false,
    "name": "example",
    "productGroupId": "example",
    "timestamp": "example"
  }
}
```

### Get product inventory

Get product inventory summary.

**Inputs**

- Product (`product_id`, text, required): The productId to fetch information for
- Location (`location_id`, text): (Optional) the locationId to fetch information for

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "imageSmallUrl": "example",
    "locationId": "example",
    "productId": "example",
    "quantityAnticipated": 1.0,
    "quantityAvailable": 1.0,
    "quantityBuildable": 1.0,
    "quantityInTransit": 1.0,
    "quantityOnHand": 1.0,
    "quantityOnOrder": 1.0,
    "quantityOnPurchaseOrder": 1.0,
    "quantityOnTransferOrder": 1.0,
    "quantityOnWorkOrder": 1.0,
    "quantityPicked": 1.0,
    "quantityReserved": 1.0,
    "quantityReservedForBuilds": 1.0,
    "quantityReservedForManufacturing": 1.0,
    "quantityReservedForSales": 1.0,
    "quantityReservedForTransfers": 1.0,
    "rawQuantityAvailable": 1.0
  }
}
```

### Get purchase order

Get a purchase order.

**Inputs**

- Purchase order (`purchase_order_id`, text, required): The purchaseOrderId to be fetched

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "inventoryStatus": "Quote",
    "isCancelled": false,
    "isCompleted": false,
    "lastModifiedDateTime": "example",
    "orderDate": "example",
    "orderNumber": "example",
    "paymentStatus": "Quote",
    "purchaseOrderId": "example",
    "timestamp": "example",
    "total": "example"
  }
}
```

### Get sales order

Get a sales order.

**Inputs**

- Sales order (`sales_order_id`, text, required): The salesOrderId to be fetched

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "inventoryStatus": "Unconfirmed",
    "isCancelled": false,
    "isCompleted": false,
    "lastModifiedDateTime": "example",
    "orderDate": "example",
    "orderNumber": "example",
    "paymentStatus": "Unconfirmed",
    "salesOrderId": "example",
    "timestamp": "example",
    "total": "example"
  }
}
```

### List customers

List customers.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- After (`after`, text): After.
- Skip (`skip`, number): Skip. At least 0.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### List locations

List locations.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- After (`after`, text): After.
- Skip (`skip`, number): Skip. At least 0.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### List manufacturing orders

List manufacturing orders.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- After (`after`, text): After.
- Skip (`skip`, number): Skip. At least 0.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### List product categories

List categories.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- After (`after`, text): After.
- Skip (`skip`, number): Skip. At least 0.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### List product groups

List all product groups.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- After (`after`, text): After.
- Skip (`skip`, number): Skip. At least 0.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### List products

List products.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- After (`after`, text): After.
- Skip (`skip`, number): Skip. At least 0.
- Search (`search`, text): Search.
- Active (`active`, true/false): Active.
- Item type (`item_type`, text): Item type.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### List purchase orders

List purchase orders.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- After (`after`, text): After.
- Skip (`skip`, number): Skip. At least 0.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### List sales orders

List sales orders.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- After (`after`, text): After.
- Skip (`skip`, number): Skip. At least 0.

**Outputs**

- `data` (list): The response from inFlow.

**Example output**

```json
{
  "data": []
}
```

### Save customer

Insert or update a customer.

**Inputs**

- Contact name (`contact_name`, text): Name of your primary contact for this customer (if it's a business)
- Customer (`customer_id`, text, required): The primary identifier for this customer. <a href="#section/Overview/Write-requests">When inserting, you should specify this by generating a GUID</a>. Not shown to users
- Email (`email`, text): Primary contact email for this customer
- Is active (`is_active`, true/false): Customers with ```IsActive = false``` are deactivated and hidden away for new usage.
- Name (`name`, text): Customer's name (human-readable, typically a person or business name)
- Phone (`phone`, text): Phone number for this customer
- Timestamp (`timestamp`, text): You can optionally include the last-known timestamp when modifying to protect against concurrent modifications.

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "contactName": "example",
    "customerId": "example",
    "email": "example",
    "isActive": false,
    "lastModifiedDateTime": "example",
    "name": "example",
    "phone": "example",
    "timestamp": "example"
  }
}
```

### Save product

Insert or update product.

**Inputs**

- Description (`description`, text): A human-readable description for this product.
- Is active (`is_active`, true/false): Products with ```IsActive = false``` are deactivated and hidden away for future usage.
- Name (`name`, text): An item name or title that should be human readable. Must be unique.
- Product (`product_id`, text, required): The primary identifier for this product. <a href="#section/Overview/Write-requests">When inserting, you should specify this by generating a GUID</a>. Not shown to users
- Sku (`sku`, text): A SKU (stock-keeping-unit) code that represents a product in a concise, machine-friendly, way. Optional, but must be unique if specified.
- Timestamp (`timestamp`, text): You can optionally include the last-known timestamp when modifying to protect against concurrent modifications.

**Outputs**

- `data` (object): The response from inFlow.

**Example output**

```json
{
  "data": {
    "categoryId": "example",
    "description": "example",
    "isActive": false,
    "itemType": "StockedProduct",
    "lastModifiedDateTime": "example",
    "name": "example",
    "productId": "example",
    "sku": "example",
    "timestamp": "example",
    "totalQuantityOnHand": "example"
  }
}
```
