> For the complete documentation index, see [llms.txt](https://docs.silkline.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.silkline.ai/configuration/integrations/boltline.md).

# Boltline

Overview of Silkline's Boltline integration

## Overview

Silkline's Boltline integration keeps purchasing and inventory aligned across the two systems. Silkline writes purchase orders and suppliers to Boltline, and reads suppliers, parts, users, locations, and receiving activity back.

To complete your integration with Boltline, you will need to provide the following information:

* `API Key`

This guide walks you through generating that key within Boltline.

## Directionality

Silkline is the source of truth for **orders and suppliers**: an order raised in Silkline is created in Boltline and updated there as it changes, and a supplier added or edited in Silkline is created or updated in Boltline as a vendor. Boltline is the source of truth for **parts, users, and locations** — Silkline reads these and never writes them back.

Receiving is owned by Boltline. Quantities received against a purchase order flow back into Silkline; Silkline never writes receiving activity to Boltline.

## Prerequisites

Please ensure you have **Administrator** access to your Boltline account.

Your Silkline organization also needs the settings below. Each one shows an error on the integration page until it is set.

| Setting                                       | Why                                            |
| --------------------------------------------- | ---------------------------------------------- |
| Order adjustments disabled                    | Boltline has no order-level adjustment         |
| Line-item **Need Date** required              | Boltline needs a need-by date on every order   |
| Line-item **Expected Delivery Date** required | Boltline needs an expected date on every order |
| Supplier **Contact** required                 | Boltline needs contact details on every vendor |

## Instructions

{% stepper %}
{% step %}

#### Generate a Boltline API Key

1. In Boltline, open **User Preferences** and select the **API Keys** tab
2. Under **Add Key**, enter a name for the key (e.g. `silkline_integration`)
3. Click the **+** button to generate the key
4. Copy the `API Key` and store it securely

<figure><img src="https://1158234432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwxUq49WUtHgRhcDnQkz%2Fuploads%2Fgit-blob-cfb43996fcc83c755c4571e14c649842c930d2b1%2Fboltline_api_key.png?alt=media" alt="Boltline User Preferences API Keys tab with a new key named silkline_integration"><figcaption></figcaption></figure>

{% hint style="warning" %}
Be sure to copy the `API Key` when it is generated. You will need it in the next step.
{% endhint %}
{% endstep %}

{% step %}

#### Configure the Integration in Silkline

1. Follow the [Managing Integrations](https://docs.silkline.ai/configuration/integrations/managing-integrations.md) guide to create your Boltline integration in Silkline
2. When adding integration secrets, provide:
   * **API Key**: The key you generated in Step 1
     {% endstep %}
     {% endstepper %}

## Configuration Options

The integration supports the following configuration options:

* **Boltline GraphQL API URL** (default: `https://api.boltline.com/graphql`) — The Boltline API endpoint Silkline connects to.
* **Full PO Pull** (default: disabled) — Controls how much of a Boltline purchase order Silkline reads. When disabled, order sync only refreshes received quantities on orders that already exist in Silkline, and orders found only in Boltline are skipped. When enabled, purchase orders discovered in Boltline are created in Silkline with their full header and line items.

{% hint style="info" %}
Leave **Full PO Pull** disabled if all of your purchase orders start in Silkline. Enable it only if buyers also raise orders directly in Boltline and you want those orders to appear in Silkline.
{% endhint %}

## What Gets Synchronized

### Data Written to Boltline

* **Purchase Orders** — Orders are created in Boltline when they reach **Open** status in Silkline, updated there as they change, and canceled there when canceled in Silkline. Canceling an order also cancels any order Boltline has synced it to in another system, and deletes its inventory that hasn't been received. Orders in any other state are skipped.
* **Order Line Items** — Written with the order. Lines added, changed, or removed in Silkline are added, updated, or removed on the Boltline order. A line added to the order in Boltline that is not in Silkline is removed the next time Silkline updates the order.
* **Suppliers** — Created in Boltline as vendors when a supplier is added in Silkline, and updated there as they change. A supplier already linked to a Boltline vendor is updated in place; archiving a supplier in Silkline marks the vendor deleted in Boltline. Silkline does not look for an existing Boltline vendor with the same name, so a supplier that is not linked yet is always created as a new vendor.

### Data Read from Boltline

* **Suppliers** — Vendor name, contact name, email and phone, billing address, and active status. If the vendor has an email address, a primary contact is created too.
* **Parts** — Part number, revision, name, description, unit of measure, and tracking type. Each part revision syncs as its own part, and the most recent revision is marked as the current one.
* **Users** — Email, display name, and active status. Users are matched to existing Silkline users by email.
* **Locations** — The organization's own addresses in Boltline. Supplier addresses are not imported as locations.
* **Receiving** — Quantities received against each purchase order line, and the date of the earliest receipt.

## Detailed Data Mappings

Order and supplier tables carry a **Direction** column: **Read** moves the value from Boltline into Silkline, **Write** moves it from Silkline into Boltline, and **Both** keeps the two in step. Parts, locations, and users are read from Boltline only, so their tables omit the column.

### Purchase Order Mapping

With **Full PO Pull** off, Silkline reads only receiving from Boltline orders; the other **Read** values below apply only when it is on.

| Boltline Field   | Silkline Field        | Direction | Notes                                                                                                                                                                                                                                                                       |
| ---------------- | --------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ID               | External ID           | Read      | Unique identifier from Boltline                                                                                                                                                                                                                                             |
| Reference Number | External Order Number | Read      | The `O-XXX` number Boltline assigns. Applied only as the order is first ingested into Silkline, so it never replaces the PO number of an order created in Silkline                                                                                                          |
| Created By User  | Buyer                 | Read      | Applied only as the order is first created in Silkline                                                                                                                                                                                                                      |
| Status           | Order State           | Both      | Read as shown below; cancellation is written                                                                                                                                                                                                                                |
| Created Date     | Created At            | Read      | Applied only as the order is first created in Silkline                                                                                                                                                                                                                      |
| Title            | Order Number          | Write     | Set when the order is created in Boltline and never changed afterwards                                                                                                                                                                                                      |
| Expected Date    | Estimated Arrival     | Write     | The order's arrival date derived from its lines. Silkline derives its own on read, so Boltline's header value is not imported                                                                                                                                               |
| Need By Date     | Need Date             | Write     | The order's need-by date derived from its lines. Read onto each line only as the line is first created in Silkline                                                                                                                                                          |
| Vendor           | Supplier              | Both      | Links to the matching Boltline vendor. If the supplier is not linked to one yet and push is enabled for suppliers, a new vendor is created in Boltline before the order is written; if push is disabled for suppliers, the order fails to sync until the supplier is linked |
| Requestor        | Requester             | Both      | Boltline sets this to the user who owns the API key, regardless of who the Silkline requester is                                                                                                                                                                            |
| Delivery Address | Ship To Location      | Both      | Requires the location to have been read into Silkline first                                                                                                                                                                                                                 |
| Memo to Vendor   | Notes                 | Both      | Written as plain text. Applied only as the order is first created in Silkline, so it never overwrites notes already recorded there                                                                                                                                          |
| Currency         | Currency              | Both      | Written from the Silkline order's currency                                                                                                                                                                                                                                  |

Boltline purchase order statuses map to Silkline order states:

| Boltline Status                          | Silkline State |
| ---------------------------------------- | -------------- |
| Draft                                    | Draft          |
| Submitted / Editing / Partially Received | Open           |
| Received / Completed                     | Closed         |
| Canceled / Archived                      | Canceled       |

{% hint style="info" %}
For an order that already exists in Silkline, only **Closed** and **Canceled** are read back, so your own approval workflow is never overwritten. The exception is a closed or canceled Silkline order that is still open in Boltline, which reopens to match.
{% endhint %}

### Order Line Item Mapping

| Boltline Field           | Silkline Field         | Direction | Notes                                                                                                                                                                                                                  |
| ------------------------ | ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ID                       | External ID            | Read      | Unique line identifier from Boltline                                                                                                                                                                                   |
| Received Items           | Units Received         | Read      | Summed across all receipts against the line                                                                                                                                                                            |
| Received Items           | Received At            | Read      | The earliest receipt date on the line                                                                                                                                                                                  |
| Name                     | Material Name          | Write     |                                                                                                                                                                                                                        |
| Received or planned part | Part                   | Read      | Set from the part received or planned against the line in Boltline. A line with neither keeps its part in Silkline                                                                                                     |
| Item Name                | Part Number            | Write     | A line with no part is named by its description, cut to 30 characters (Boltline's limit for service names)                                                                                                             |
| Item Type                | —                      | Write     | Inventory parts are sent as items. Non-Inventory and Non-Receivable parts, and lines with no part, are sent as services                                                                                                |
| Description              | Description            | Both      | The part revision is written ahead of the description, as `Rev A - Widget housing`. Applied only as the line is first created in Silkline, so a description edited in Boltline never overwrites the one recorded there |
| Quantity                 | Units                  | Both      | Number of units ordered                                                                                                                                                                                                |
| Unit Price               | Unit Cost              | Both      | Price per unit                                                                                                                                                                                                         |
| Expected Date            | Expected Delivery Date | Both      |                                                                                                                                                                                                                        |

### Supplier Mapping

| Boltline Field  | Silkline Field | Direction | Notes                                                                                                                                                                                                                                                                                                                   |
| --------------- | -------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ID              | External ID    | Read      | Unique identifier from Boltline                                                                                                                                                                                                                                                                                         |
| Name            | Name           | Both      |                                                                                                                                                                                                                                                                                                                         |
| Contact Name    | Contact Name   | Both      | Written from the primary contact's first and last name; read back as the contact's first name                                                                                                                                                                                                                           |
| Contact Email   | Contact Email  | Both      | Written from the primary contact; on read, a contact is created when an email is present                                                                                                                                                                                                                                |
| Contact Phone   | Phone          | Both      | The supplier's primary phone; the contact's own phone number is not written                                                                                                                                                                                                                                             |
| Billing Address | Address        | Both      | Written from the supplier's first address, with the country expanded to its full name; a vendor created from Silkline also uses it as its shipping address. On read the country is converted to its two-letter ISO 3166-1 code, and a country that is not a recognized ISO country name or code is left off the address |
| Deleted         | Archived       | Both      | Archiving a supplier marks the vendor deleted; vendors deleted in Boltline are archived                                                                                                                                                                                                                                 |
| Created Date    | Created At     | Read      |                                                                                                                                                                                                                                                                                                                         |
| Account Number  | —              | Write     | Sent empty when the vendor is created and never changed afterwards, so a value maintained in Boltline is preserved                                                                                                                                                                                                      |

### Part Mapping

| Boltline Field  | Silkline Field  | Notes                                                                                                                                                                                                                                                                                                       |
| --------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ID              | External ID     | The part revision's identifier                                                                                                                                                                                                                                                                              |
| Part Number     | Part Number     | Shared across all revisions of a part                                                                                                                                                                                                                                                                       |
| Revision        | Revision        | The revision label (e.g. "A", "B")                                                                                                                                                                                                                                                                          |
| Name            | Name            |                                                                                                                                                                                                                                                                                                             |
| Description     | Description     |                                                                                                                                                                                                                                                                                                             |
| Unit of Measure | Unit of Measure | Counted parts use "each"; measured parts use their unit (e.g. kilograms)                                                                                                                                                                                                                                    |
| Tracking Type   | Tracking Level  | Whether the part is lot- or serial-tracked                                                                                                                                                                                                                                                                  |
| Created Date    | Created At      |                                                                                                                                                                                                                                                                                                             |
| —               | Inventory Type  | A part created in Silkline from Boltline is **Inventory**, because Boltline parts carry no inventory type. A part matched to an existing Silkline part keeps that part's type. Order lines for Inventory parts are written to Boltline as items, and for Non-Inventory and Non-Receivable parts as services |

### Location Mapping

| Boltline Field | Silkline Field | Notes                                        |
| -------------- | -------------- | -------------------------------------------- |
| ID             | External ID    | Unique identifier from Boltline              |
| Name           | Name           |                                              |
| Address        | Address        | The address fields joined into a single line |
| Created Date   | Created At     |                                              |

### Organization User Mapping

| Boltline Field | Silkline Field      | Notes                                                                                                                    |
| -------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| ID             | External ID         | Unique identifier from Boltline                                                                                          |
| Email          | Username            | Also used to match the Boltline user to an existing Silkline user                                                        |
| Display Name   | First and Last Name | Split on the last space, so the last word becomes the surname. Falls back to the user's name when no display name is set |
| Deleted        | Archived            | Users deleted in Boltline are archived                                                                                   |

## Known Limitations

### Boltline refuses some order changes

Boltline accepts changes to an order only while it is Submitted, Partially Received, or Received. It also refuses changes that conflict with inventory already on the order: deleting a line that has been received, lowering a line's quantity below what is planned or received, removing every line, or changing the vendor or delivery address once inventory has been received. When Boltline refuses a change, none of the order's changes are applied, and the sync fails with Boltline's reason.

Boltline does not allow the vendor, delivery address, expected date, or need-by date on an order, or the part number, quantity, or unit price on a line, to be cleared. Clearing one of these in Silkline leaves Boltline's value in place.

### The order number in Boltline is not the Silkline order number

Boltline assigns every order its own `O-XXX` reference and does not allow it to be set. The Silkline order number is written as the order's **title** instead, so the two can be matched by eye. That title is set once, when the order is created.

### An order that started in Boltline keeps its own title

Because the title is only written when Silkline creates the order, an order imported from Boltline (with [Full PO Pull](#configuration-options) enabled) keeps whatever it is called in Boltline. Silkline never renames it.

### The requestor is set by Boltline

Boltline sets an order's **Requestor** to the user who owns the API key used by the integration, regardless of who the requester is on the Silkline order.

### Order adjustments are not supported

Boltline has no order-level adjustment, so an adjustment added in Silkline is not reflected on the Boltline order.

### Supplier attachments are not imported

Files attached to a vendor in Boltline are not brought into Silkline.

### Boltline requires contact and address details to create a vendor

Boltline requires a contact name, email, phone, and a complete billing address to create a vendor. Silkline sends whatever the supplier has, leaving missing values empty; if Boltline rejects the vendor, the sync fails with Boltline's own message naming what is missing. Fill in the supplier's contact and address in Silkline, then sync again.

### A supplier archived at creation time is created active

Boltline only accepts the deleted flag when updating a vendor, so a vendor is always created active. A later update of the supplier marks it deleted.

### Parts that exist in another connected system

When another connected system also syncs the same part number, Silkline links them to a single record where it can tell which part is meant, and skips the import with an explanation where it cannot. See [When Two Integrations Sync the Same Parts or Suppliers](https://docs.silkline.ai/configuration/integrations/managing-integrations.md#when-two-integrations-sync-the-same-parts-or-suppliers).

## Frequently Asked Questions

### How often does the data sync?

Orders and suppliers are written to Boltline as they change in Silkline. Suppliers, parts, users, locations, and receiving are read on a recurring schedule set up for your integration, and can also be pulled on demand from the integration page in Silkline.

### Which system is the source of truth?

It depends on the record. Silkline owns orders, their line items, and suppliers. Boltline owns parts, users, locations, receiving quantities, and the order's own `O-XXX` reference number. See [Directionality](#directionality).

### My order will not sync and mentions the order number

An order whose number has not been finalized yet cannot be written to Boltline, because the number becomes the Boltline order's title and cannot be changed afterwards. Wait for the order number to be assigned, then sync again.
