# Sage 50 (US) — Accounting API: configuration

> Canonical URL: https://developers.apideck.com/apis/accounting/sage-50-us/configuration

# Getting started with Sage 50 (US)

This guide is for **you, the Apideck customer** who builds an integration. It tells how to enable the connector, how a Sage 50 (US) connection works, how to onboard a consumer and how to make your first API call through Unify.

Sage 50 (US) is a Windows desktop product: the company file stays on your consumer's Windows PC, and Apideck keeps a synced copy of the company data to answer reads. The connection runs through **Apideck Sage 50 Connect**, a small Windows app that your consumer installs on the PC that runs Sage 50. Apideck hosts the server side, so there is no OAuth app to register and no partnership to apply for.

---

## Prerequisites

- An Apideck account with the **Sage 50 (US)** connector enabled (Unify → Configure → Sage 50 (US)).
- For testing: a Windows PC with Sage 50 (US) 2026 and a company file. Sage 50 has no cloud sandbox. The sample company Bellwether Garden Supply is sufficient.
- No Sage app credentials, partnership or IP allow-listing are necessary.

---

## How a connection works

1. You create a connection for a consumer (in the Vault UI or with the Vault API). The consumer types the exact name of their Sage 50 company.
2. Vault shows a one-line **install command** and a **pairing code**. The pairing code is valid for 24 hours and can be used once.
3. The consumer runs the install command in PowerShell as Administrator on the PC that runs Sage 50, and enters the pairing code.
4. In Sage 50, a user with SDK Data Access set to Full clicks **Always Allow** when Sage asks about Apideck Sage 50 Connect.
5. Apideck Sage 50 Connect copies the company data to Apideck and runs the writes that you send.

The connection stays in `state: "added"` until Apideck Sage 50 Connect is paired. After the pairing, the connection is callable.

The company name is sent once, when the connection is created. To connect a different company, delete the connection and create a new one.

---

## Step 1: Enable the connector

In the Apideck dashboard, go to **Unify → Configure → Sage 50 (US)** and enable it. There are no credentials to fill in.

## Step 2: Onboard a consumer

Create a connection for the consumer, in the hosted Vault UI or with the Vault API. Then send the consumer to the [connection guide](https://developers.apideck.com/apis/accounting/sage-50-us/connection), which tells them how to install Apideck Sage 50 Connect and pair it.

## Step 3: Confirm the connection is live

After the consumer pairs Apideck Sage 50 Connect, the connection becomes callable. You can see the state in the dashboard or with the Vault API.

The first write after the pairing waits until a Sage user clicks **Always Allow** in Sage 50. If writes time out just after setup, ask the consumer to check for that prompt.

## Step 4: Make your first API call

Call any supported Accounting resource through Unify with `x-apideck-service-id: sage-50-us`:

```bash
curl 'https://unify.apideck.com/accounting/customers' \
  -H 'Authorization: Bearer {APIDECK_API_KEY}' \
  -H 'x-apideck-app-id: {APP_ID}' \
  -H 'x-apideck-consumer-id: {CONSUMER_ID}' \
  -H 'x-apideck-service-id: sage-50-us'
```

---

## What you can do

Sage 50 (US) supports list, get, create, update and delete for 14 unified Accounting resources:

| Area | Resources |
|---|---|
| Contacts | `customers`, `suppliers` |
| Accounts | `ledger-accounts`, `bank-accounts` |
| Sales | `invoices`, `credit-notes`, `quotes`, `sales-receipts`, `payments` |
| Purchases | `bills`, `purchase-orders`, `bill-payments`, `expenses` |
| General ledger | `journal-entries` |

For the behavior of each resource, see the [Gotchas](https://developers.apideck.com/apis/accounting/sage-50-us/gotchas) tab.

## Good to know

- **Reads come from a copy.** Apideck keeps a copy of the company and refreshes it every few minutes. A change made in Sage 50 can take a few minutes to appear. A record deleted in Sage 50 can stay in reads.
- **Writes run on the consumer's PC.** A write usually takes a few seconds. While a refresh runs, a write can wait for the current part of the refresh.
- **A `408` is not a failure.** It means that the write was not confirmed in time. The write can still complete later. Sage 50 has no idempotency, so confirm the result in Sage 50 before you send the write again.
- **Lines cannot change.** Sage 50 cannot change or remove a document line. An update that sends `line_items` or `allocations` is refused with `400`. Delete the document and create it again.
- **Prices are tax-exclusive.** Sage 50 adds tax to the line prices. `tax_inclusive: true` is refused with `400`.
- **Keep the PC on.** Writes and refreshes run only while the PC is on and Apideck Sage 50 Connect runs. If Apideck Sage 50 Connect is removed, the connection stays callable: reads return the last copy and writes time out.
- **Cash-basis companies** accept only customer, supplier and account writes.
- **No webhooks.**

## Next steps

- 🔌 [Connection guide](https://developers.apideck.com/apis/accounting/sage-50-us/connection): the consumer setup.
- ⚠️ [Gotchas](https://developers.apideck.com/apis/accounting/sage-50-us/gotchas): connector behavior for each resource.


[API reference](https://developers.apideck.com/apis/accounting/reference.md) · [Coverage matrix](https://developers.apideck.com/apis/accounting/coverage)
