> ## Documentation Index
> Fetch the complete documentation index at: https://docs.famulor.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP Business One Integration

> Complete SAP B1 integration for item availability, order status, and quote creation directly during customer conversations

# SAP Business One Integration Template

Integrate the SAP Business One ERP system into your Mid-call Actions with three powerful functions: check item availability, retrieve order status, and create quotes — perfect for B2B sales and customer service.

## Overview & Features

<CardGroup cols={3}>
  <Card title="Item Availability" icon="box">
    * Real-time stock inquiry
    * Reserved and ordered quantities
    * Multi-warehouse overview
    * Reorder status
  </Card>

  <Card title="Order Status" icon="truck">
    * Complete order details
    * Delivery date tracking
    * Partial delivery status
    * Customer service integration
  </Card>

  <Card title="Create Quote" icon="file-contract">
    * Instant quote generation
    * Customer-specific pricing
    * Discount management
    * PDF export and email sending
  </Card>
</CardGroup>

## Tool 1: Check Item Availability

### Configuration in the Famulor Interface

<Tabs>
  <Tab title="Tool Details">
    \| **Name**\* | `SAP B1 Item Availability` |
    \| **Function Name**\* | `check_sap_item_availability` |
    \| **HTTP Method** | `GET` |
    \| **Endpoint**\* | `https://{{SAP_B1_HOST}}/b1s/v1/Items('{item_code}')` |
    \| **Timeout (ms)** | `5000` |
  </Tab>

  <Tab title="Query Parameters">
    ```json theme={null}
    {
      "$select": "ItemCode,ItemName,QuantityOnStock,QuantityOrderedByCustomers,QuantityOrderedFromVendors"
    }
    ```
  </Tab>
</Tabs>

**Success Template**: `"{{itemName}}: {{available}} pcs available, {{reserved}} reserved. {{#if onOrder}}{{onOrder}} pcs on reorder.{{/if}}"`

## Tool 2: Retrieve Order Status

### Configuration in the Famulor Interface

<Tabs>
  <Tab title="Tool Details">
    \| **Name**\* | `SAP B1 Order Status` |
    \| **Function Name**\* | `get_sap_order_status` |
    \| **HTTP Method** | `GET` |
    \| **Endpoint**\* | `https://{{SAP_B1_HOST}}/b1s/v1/Orders({{order_id}})` |
  </Tab>
</Tabs>

**Success Template**: `"Order {{orderNumber}} for {{customerName}}: Status {{status}}, ordered on {{orderDate}}, delivery planned for {{deliveryDate}}"`

## Tool 3: Create Quote

### Configuration in the Famulor Interface

<Tabs>
  <Tab title="Tool Details">
    \| **Name**\* | `SAP B1 Create Quote` |
    \| **Function Name**\* | `create_sap_quotation` |
    \| **HTTP Method** | `POST` |
    \| **Endpoint**\* | `https://{{SAP_B1_HOST}}/b1s/v1/Quotations` |
  </Tab>
</Tabs>

**Success Template**: `"Quote {{docNum}} has been created. The quote is valid until {{valid_until}}."`

***

<Tip>
  Related pages: [Introduction](/en/automation-platform/introduction) and [Building Flows](/en/automation-platform/building-flows), and [Debugging Runs](/en/automation-platform/debugging-runs).
</Tip>

<Tip>
  Need a whole toolset instead of building HTTP actions one by one? Connect an external **MCP server** — tools are discovered automatically. See [MCP Servers](/en/platform/mcp-servers).
</Tip>
