> 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/ramp.md).

# Ramp

Overview of the Silkline Ramp integration

## Overview

Silkline's Ramp integration allows customers to write Purchase Orders to Ramp and read billing and payment status back into Silkline, providing seamless synchronization between your procurement and expense management systems.

## Prerequisites

To complete your Ramp integration, you will need **Administrator** access to your Ramp account.

The steps below will guide you through the setup process to obtain the following information Silkline will need to integrate with Ramp:

* `Client ID`
* `Client Secret`

During setup you'll also select a **Business Entity** and a **Default Vendor Owner**, each chosen from a dropdown that Silkline populates directly from your Ramp account.

## Instructions

{% stepper %}
{% step %}

#### Create an App and Get Credentials

1. In your Ramp account, navigate to **Company → Developer** (you'll need admin access).
2. Click **Create New App** (or **Start Building**).
3. Name your app (e.g., "Silkline Integration") and accept the Terms.
4. Click the new app to configure it.
5. Under **Grant types**, make sure only **Client Credentials** is selected.
6. Under **Scopes**, click **Configure allowed scopes** and select the [required scopes](#required-scopes) listed below.
7. Copy the **Client ID** and **Client Secret**.
   {% endstep %}

{% step %}

#### Configure the Integration in Silkline

Follow the [Managing Integrations](https://docs.silkline.ai/configuration/integrations/managing-integrations.md) guide to create your Ramp integration in Silkline using the Client ID and Client Secret.

Once the integration is saved, open it and choose your **Business Entity** and **Default Vendor Owner** from their dropdowns. Silkline loads both lists directly from your Ramp account. The Business Entity is associated with purchase orders created in Ramp; the Default Vendor Owner is the Ramp user assigned as the owner of vendors Silkline creates.

{% hint style="info" %}
These dropdowns appear after the integration is saved, because Silkline needs your credentials to fetch the lists from Ramp. If you edit an existing integration, your current selections are preserved.
{% endhint %}

{% hint style="info" %}
The integration connects to the Ramp production API. Turn on **Use Ramp Demo Environment** only if your Client ID and Secret come from a Ramp demo account — demo and production credentials are not interchangeable.
{% endhint %}
{% endstep %}
{% endstepper %}

## Configuration Options

The integration supports the following configuration options:

* **Enable Three-Way Match** (default: enabled) — When enabled, purchase orders created in Ramp will have three-way matching turned on, requiring a match between the purchase order, item receipt, and invoice before payment is processed.
* **Pull Units Received** (default: disabled) — When enabled, the integration will sync received quantities from Ramp item receipts back into Silkline, updating units received and received date on purchase order line items. While this option is enabled, the received quantity on order lines is managed by Ramp: editing it in Silkline requires an explicit override, and the next sync can replace a manual value.
* **Pull Units Billed** (default: disabled) — When enabled, the integration syncs billed quantities from Ramp bills into Silkline, updating units billed on purchase order line items. Quantities come from every bill line matched to a purchase order line: a line that carries its own quantity contributes it directly, and a line coded only as an amount contributes that amount divided by the purchase order line's unit price. A matched line contributes nothing when that division is not meaningful — an amount in a different currency, or a purchase order line with no unit price. A bill counts once it has been submitted, including while it is awaiting approval; archived, rejected, and terminated bills are excluded, as are bills Ramp has drafted from an emailed or scanned invoice that nobody has submitted yet. Lines with a billed quantity have restricted editing in Silkline, so a bill counting is what locks the line. While this option is enabled, orders linked to Ramp show billing status: a **Billing** indicator in the Line Items header and billed quantities in each line's quantity tooltip. Each billed line also records the **Accounting Date** of its most recent counted bill, shown as the **Billed** column in the Line Items view. Ramp falls back to the invoice issue date when a bill has no accounting date.
* **Sync Purchase Order Owner** (default: disabled) — When enabled, one of the order's users in Silkline maps to the purchase order owner in Ramp in both directions: the owner is set when an order is created in Ramp, and the owner is read back onto that same user when purchase orders are imported. Which user is chosen by **Purchase Order Owner Source**. When disabled, Silkline neither sets nor reads the owner, and Ramp assigns its own default owner to created purchase orders.
* **Purchase Order Owner Source** (default: Buyer) — Which Silkline order user maps to the Ramp purchase order owner: the order's **Buyer** or its **Requester**. Ramp's purchase order has a single owner field, so only one of the two can be represented. Takes effect only while **Sync Purchase Order Owner** is enabled. If the order has no user in the selected role, Silkline sets no owner and Ramp assigns its default. If that user isn't linked to a Ramp user, the sync fails — the order page warns about this before the order reaches Ramp.
* **Sync Vendor Owner** (default: disabled) — When enabled, a vendor created in Ramp is owned by the supplier's **Purchasing Owner**. Suppliers with no Purchasing Owner use the **Default Vendor Owner**. When disabled, the Default Vendor Owner is always used. The owner is set only when the vendor is first created in Ramp; changing the Purchasing Owner afterward does not re-sync. If a supplier's Purchasing Owner isn't linked to a Ramp user, the sync fails (rather than quietly using the default) — because the owner can't be changed after creation, this avoids permanently assigning the wrong owner. If no owner is configured at all, the vendor is created without one.
* **Sync Manager as Reports-To** (default: disabled) — When enabled, each user imported from Ramp has their **Reports-To** set from their Ramp manager, matched to the corresponding user in Silkline. A manager set manually in Silkline is never overwritten by the sync. When disabled, Reports-To is left untouched.
* **Budget Accounting Field** (default: none) — The Ramp accounting field whose options are Silkline Budgets, coded on each purchase order line. It must be a field your accounting provider assigns per line — in QuickBooks, "One to each row in transaction". A field linked to a custom field can't also be the Budget field. When empty, Budgets are not synced with Ramp. See [Budgets](#h_budgets).
* **Additional Order Statuses to Write** (default: none) — Which order statuses, besides Open, are written to Ramp. Open orders are always written. You can also select **Approved**, **Closed**, and **Canceled**. **Draft** and **Review** cannot be selected, because Ramp requires an approved purchase order. Orders in a status you have not selected are skipped, and the order's sync history says the status is not enabled for Ramp push.

## Required Scopes

The following scopes must be enabled for the Silkline integration to function properly:

| Scope                   | Access Type | Description                                                                             |
| ----------------------- | ----------- | --------------------------------------------------------------------------------------- |
| `accounting:read`       | Read        | Access to accounting GL accounts                                                        |
| `bills:read`            | Read        | Access to bill data (only required when Pull Units Billed is enabled)                   |
| `departments:read`      | Read        | Access to department information                                                        |
| `entities:read`         | Read        | Access to business entity information                                                   |
| `item_receipts:read`    | Read        | Access to item receipt data                                                             |
| `item_receipts:write`   | Write       | Ability to create and delete item receipts (only required when Receipt push is enabled) |
| `locations:read`        | Read        | Access to location information                                                          |
| `locations:write`       | Write       | Ability to create and update locations                                                  |
| `merchants:read`        | Read        | Access to merchant information                                                          |
| `purchase_orders:read`  | Read        | Access to purchase order data                                                           |
| `purchase_orders:write` | Write       | Ability to create and update purchase orders                                            |
| `users:read`            | Read        | Access to user information                                                              |
| `users:write`           | Write       | Ability to create and update user data                                                  |
| `vendors:read`          | Read        | Access to vendor information                                                            |
| `vendors:write`         | Write       | Ability to create and update vendors                                                    |

## What Gets Synchronized

The integration syncs the following data between Silkline and Ramp:

### Data Written to Ramp

#### Purchase Orders

Purchase orders and their line items are written to Ramp when they reach **Open** status in Silkline. You can also write **Approved**, **Closed**, and **Canceled** orders by selecting them under [Additional Order Statuses to Write](#h_configuration_options). Orders in a status you have not selected are not sent to Ramp.

**Draft** and **Review** orders are never written, because Ramp requires an approved purchase order.

**On create**, the following header and line item fields are written:

| Silkline Field         | Ramp Field              | Notes                                                                                                                                                                                                     |
| ---------------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Order Number           | Purchase Order Number   | Purchase order identifier                                                                                                                                                                                 |
| Supplier               | Vendor                  | Links to matching Ramp vendor                                                                                                                                                                             |
| Buyer or Requester     | Owner                   | Only when **Sync Purchase Order Owner** is enabled; the role comes from **Purchase Order Owner Source** (see [Configuration Options](#h_configuration_options)); otherwise Ramp assigns its default owner |
| Currency               | Currency                | Currency code for the order                                                                                                                                                                               |
| Payment Terms          | Net Payment Terms       | Payment terms in days (e.g., Net 30)                                                                                                                                                                      |
| Estimated Arrival Date | Promise Date            | Expected delivery date                                                                                                                                                                                    |
| Memo                   | Memo                    | Order memo (converted from rich text to plain text)                                                                                                                                                       |
| Payment Due Date       | End Date                | Requires a Payment Due Date custom field — ask Silkline to set this up                                                                                                                                    |
| —                      | Three-Way Match Enabled | From integration config (see [Configuration Options](#h_configuration_options))                                                                                                                           |

**On update**, line items are synced, and the End Date is updated whenever the Payment Due Date is set or changed in Silkline. Other header fields are not updated.

{% hint style="warning" %}
**End Date can be set, but not cleared.** Silkline can add or change a purchase order's End Date in Ramp, but a Ramp limitation prevents removing one. If you clear the Payment Due Date in Silkline after an End Date is set, Ramp keeps its date — a real mismatch that fails the order's health check. One of two things then happens: writing the change turns on the order's **Sync Lock**, which blocks further incoming changes from Ramp; or, if a sync from Ramp runs before the lock turns on, Ramp's End Date is re-imported into the Payment Due Date. To remove the End Date entirely, change it directly in Ramp.
{% endhint %}

**Line items** (written on both create and update):

| Silkline Field              | Ramp Field                  | Notes                                                    |
| --------------------------- | --------------------------- | -------------------------------------------------------- |
| Description / Material Info | Description                 | Includes material part number and revision if available  |
| Unit Cost                   | Unit Price                  | Price per unit                                           |
| Units                       | Unit Quantity               | Number of units ordered                                  |
| Accounting Fields           | Accounting Field Selections | Custom accounting field and GL account selections        |
| Budget                      | Budget Accounting Field     | Only when a [Budget Accounting Field](#h_budgets) is set |

Only custom fields linked to a Ramp accounting field or GL account category are written. Ramp coding outside the linked fields and the Budget Accounting Field is kept as it is in Ramp.

#### Vendors

Vendor information is written to Ramp when suppliers are synced from Silkline.

| Silkline Field | Ramp Field              | Notes                                               |
| -------------- | ----------------------- | --------------------------------------------------- |
| Name           | Vendor Name             | Supplier's business name                            |
| Country        | Country                 | Country code                                        |
| State          | State                   | State/province (US vendors only)                    |
| Address        | Address                 | Full address (street, city, state, postal, country) |
| Contact Email  | Business Vendor Contact | Primary contact email (required for creation)       |
| Contact Name   | Business Vendor Contact | First and last name                                 |
| Contact Phone  | Business Vendor Contact | Phone number                                        |

**Linking to vendors that already exist in Ramp**

When a supplier is first written to Ramp, Silkline checks for an existing active vendor before creating one, in this order:

1. A vendor already stamped with the Silkline supplier's ID.
2. A vendor whose name matches the supplier's name exactly. The match is case- and spacing-sensitive, so `Acme Corp` and `ACME Corp` are different names.

An exact match is linked and updated; no new vendor is created. If more than one vendor matches, the sync fails rather than guessing. Inactive vendors are never matched.

For a supplier whose Ramp vendor has a slightly different name, either rename the supplier in Silkline to match the vendor exactly before it syncs, or ask Silkline to link the supplier to the existing vendor.

#### Item Receipts

When **Receipt** is turned on under **Push** in the integration's Sync Settings, each Silkline receipt is written to Ramp as an item receipt on its order's purchase order. Receipt is off by default, and turning **Push** on leaves it off. Before turning it on, grant the `item_receipts:write` scope on your Ramp app (see [Required Scopes](#h_required_scopes)).

| Silkline Field | Ramp Field              | Notes                                                    |
| -------------- | ----------------------- | -------------------------------------------------------- |
| Receipt Number | Item Receipt Number     |                                                          |
| Received At    | Received At             | Ramp stores a date only; the date is taken in UTC        |
| Receipt Items  | Item Receipt Line Items | One line per receipt item, on the order line's Ramp line |
| Quantity       | Unit Quantity           |                                                          |

* A receipt is written when it is created or changed in Silkline.
* Receipts another integration brings into Silkline, such as Manufacturo receiving, are written to Ramp only when Silkline forwards that integration's receipts to Ramp. Contact Silkline support to set this up.
* Ramp can't edit an item receipt, so a changed receipt replaces its Ramp item receipt.
* A receipt's order and every order line on it must already be in Ramp, or the receipt fails to sync.
* Every receipt item is sent. A receipt with no items fails to sync, since Ramp needs at least one line.

{% hint style="info" %}
Ramp counts received quantities only on purchase order lines coded with its **Inventory Item** accounting field. Other lines show as received once any item receipt includes them. See Ramp's [3-way match guide](https://support.ramp.com/hc/en-us/articles/30227975187731-3-Way-Match-with-Ramp-Procurement).
{% endhint %}

### Budgets

When a **Budget Accounting Field** is set, each option of that Ramp field is a Budget in Silkline, and each purchase order line's Budget is that field's selection in Ramp.

**Budget import.** Every option of the field, including inactive and hidden ones, is read from Ramp hourly.

| Budget field                                                           | Source                                                                   |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Name                                                                   | The option's name in Ramp, updated on every import                       |
| Archived                                                               | Archived while the option is inactive or hidden in Ramp                  |
| Currency                                                               | Your organization's base currency when the Budget is created; kept after |
| Amount, owners, members, visibility, parent, description, tax settings | Managed in Silkline; never changed by an import                          |

A Ramp option keeps its Budget when it is renamed. When an option is first imported and a Silkline Budget already has exactly the same name, that Budget is linked to the option. Budget names are unique, so when several options share a name only one is imported: an active, visible option before an inactive or hidden one. An option that disappears from Ramp does not delete its Budget.

**Purchase order lines.** Once the Budget Accounting Field is set, it decides every synced order line's Budget, including on orders that existed before. Writing an order to Ramp sets each line's Budget field to the option of the line's Budget, and clears it on a line with no Budget. A line whose Budget did not come from the Budget Accounting Field fails the sync with a message naming the problem; nothing is cleared in Ramp. Reading an order from Ramp sets, changes, or clears each line's Budget from that field, importing the option first if it has no Budget yet.

**Changing the Budget Accounting Field.** Changing or clearing the setting does not move or delete any Budget or line assignment. After a change, a line assigned to a Budget from the previous field fails to sync until it is reassigned. Clearing the setting stops importing Budgets and syncing line Budgets.

{% hint style="info" %}
**Moving an existing custom field to Budgets is done with Silkline support.** A field already linked to a custom field has values on existing order lines. Silkline pauses syncs, removes the custom field's Ramp link, sets the field as the Budget Accounting Field, imports the Budgets, assigns each order line — including closed orders — the Budget matching its custom field value, and checks the result with you before syncs resume. Until a line has a Budget, writing its order to Ramp clears that line's Budget field coding.
{% endhint %}

### Data Read from Ramp

* Purchase order status and details
* End Date — kept in sync with the Payment Due Date custom field in Silkline. The date can be set or changed from either side, but (as noted above) it cannot be cleared in Ramp
* Vendor information
* Item receipts and received quantities (when [Pull Units Received](#h_configuration_options) is enabled)
* Bills and billed quantities (when [Pull Units Billed](#h_configuration_options) is enabled)
* Purchase order owner, mapped to the order's buyer or requester per [Purchase Order Owner Source](#h_configuration_options) (when [Sync Purchase Order Owner](#h_configuration_options) is enabled)
* User manager, mapped to the user's Reports-To (when [Sync Manager as Reports-To](#h_configuration_options) is enabled)
* Budgets, from the options of the [Budget Accounting Field](#h_budgets), and each purchase order line's Budget

## Known Limitations

### Purchase order owner is set only when the order is created

When [Sync Purchase Order Owner](#h_configuration_options) is enabled, the Silkline user in the role named by [Purchase Order Owner Source](#h_configuration_options) — buyer or requester — is written to Ramp as the purchase order owner, but only when the order is first created in Ramp. If that user changes in Silkline afterward, the update is not pushed to Ramp and must be changed directly there. Reading is scoped the same way: an owner imported from Ramp is applied only as the order is first created in Silkline, so it never overwrites a buyer or requester already recorded there.

### Item details are not synced to Ramp

Ramp purchase order lines only support a description, cost, quantity, and accounting fields. Silkline material details (part number, revision, unit of measure) are embedded into the line description but are not stored as structured item data in Ramp.

### Line items cannot be reordered after creation

Ramp does not have a concept of purchase order line numbers. Once a purchase order is created, line items cannot be reordered. If lines are reordered in Silkline after the initial sync, data will still update correctly (on read and write), but the line ordering will never match up.

## Frequently Asked Questions

### How often does the data sync?

**Writing to Ramp:**

* **Purchase Orders**: Written to Ramp in real-time when created or updated in Silkline
* **Vendors**: Written to Ramp in real-time when created or updated in Silkline
* **Item Receipts**: Written to Ramp in real-time when created or updated in Silkline, while [Receipt push](#h_item_receipts) is on

**Reading from Ramp:**

* **Item Receipts**: Read from Ramp in real-time via webhook when items are received
* **Open Orders**: Read from Ramp once per day at 6:00 AM UTC to sync status and field changes back into Silkline
* **Vendors**: A vendor is read from Ramp when a purchase order that references it is imported. Changes made to a vendor in Ramp afterward are not synced to Silkline. Pulling a supplier from Ramp after its vendor was merged or deleted there archives the supplier in Silkline
* **Budgets**: Read from Ramp hourly
* **Users**: New users are read every hour; all users are refreshed nightly at 5:00 AM UTC so updates to name, contact details, manager, etc. are synced into Silkline
