Linking Cin7 Core as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Contents

The Cin7 Core connector syncs your inventory management data – products, stock levels, customers, suppliers, sales, purchases, and more – into PostHog, so you can analyze your inventory and order data alongside your product data.

Note: This source supports Cin7 Core (formerly DEAR Inventory) only. It doesn't support Cin7 Omni.

Prerequisites

You need a Cin7 Core account with API access enabled. To get your credentials:

  1. Log in to Cin7 Core.
  2. Go to Integrations > API.
  3. Create an API application if you don't have one.
  4. Copy your Account ID and Application key.

Adding a data source

  1. In PostHog, go to the Sources tab of the data pipeline section.
  2. Click + New source and click Link next to this source.
  3. Enter your credentials (see Configuration below) and click Next.
  4. Select the tables you want to sync, choose a sync method and frequency, then click Import.

Once the syncs are complete, you can start querying this data in PostHog.

When linking Cin7 Core, you'll need:

  • Account ID - Your Cin7 Core account identifier, found under Integrations > API.
  • Application key - Your API application key from Cin7 Core. This is stored securely and never displayed after setup.

Sync modes

Each table can be synced in one of several modes, depending on what the source supports:

  • Webhook (when available) – the source pushes changes to PostHog in real time. Fastest freshness, lowest ongoing cost, and the only mode that reliably captures updates and deletes.
  • Incremental – only new or updated rows are synced on each run, using a cursor field (such as an updated_at timestamp). Cheaper than a full refresh, but deletes aren't captured.
  • Append only – new rows are appended using a cursor field; existing rows are never updated. Ideal for immutable, append-only tables like event logs.
  • Full refresh – the whole table is reloaded on every sync. Use it when a table has no reliable cursor or when you need deletions reflected.

See sync methods for a full explanation of how each mode works and how to choose between them.

Seven tables support incremental sync using ModifiedSince or UpdatedSince filters, so only changed records are fetched on each run. All other tables use full refresh.

Incremental tablesCursor field
productsLastModifiedOn
customersLastModifiedOn
suppliersLastModifiedOn
salesUpdated
sale_credit_notesUpdated
purchasesLastUpdatedDate
purchase_credit_notesLastUpdatedDate

The Cin7 Core API allows 60 calls per minute. PostHog sends at most one request per second to stay within this limit.

Configuration

OptionTypeRequired
Account IDtextYes
Application keypasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
products

Product catalog containing stock and service items.

Incremental, Full refreshLastModifiedOn—
product_families

Product families that group product variants by options.

Full refresh——
product_availability

Stock levels per product, location, bin, and batch.

Full refresh——
product_categories

Categories used to organize products.

Full refresh——
brands

Brands assigned to products.

Full refresh——
customers

Customers and their sales, billing, and contact settings.

Incremental, Full refreshLastModifiedOn—
suppliers

Suppliers and their purchasing, payment, and contact settings.

Incremental, Full refreshLastModifiedOn—
sales

Sale list with one row per sale, including status and totals.

Incremental, Full refreshUpdated—
sale_credit_notes

Sales that have a credit note, including their status and totals.

Incremental, Full refreshUpdated—
purchases

Purchase list with one row per purchase order.

Incremental, Full refreshLastUpdatedDate—
purchase_credit_notes

Purchases that have a credit note, including their status and totals.

Incremental, Full refreshLastUpdatedDate—
stock_adjustments

Inventory adjustments and their transaction status.

Full refresh——
stock_takes

Inventory stock takes and their locations and status.

Full refresh——
stock_transfers

Inventory transfers between locations.

Full refresh——
locations

Warehouses and bins used to store or move stock.

Full refresh——
payment_terms

Payment terms used for customer and supplier transactions.

Full refresh——
chart_of_accounts

Accounts keyed by account Code, including classification and payment details.

Full refresh——
tax_rules

Tax rules applied to sales and purchases.

Full refresh——
units_of_measure

Units of measure used for product quantities.

Full refresh——
carriers

Carriers available for shipments.

Full refresh——
price_tiers

Named product price tiers keyed by Code from 1 to 10.

Full refresh——

Below is a reference of all 21 available tables and their sync methods:

TableSync methodDescription
productsIncrementalProduct catalog with SKUs, pricing, and attributes
product_familiesFull refreshProduct groupings and variant options
product_availabilityFull refreshStock levels per product, location, bin, and batch
product_categoriesFull refreshProduct categorization
brandsFull refreshProduct brands
customersIncrementalCustomer records with billing and contact settings
suppliersIncrementalSupplier and vendor records
salesIncrementalSales orders and transactions
sale_credit_notesIncrementalCredit notes for sales
purchasesIncrementalPurchase orders
purchase_credit_notesIncrementalCredit notes for purchases
stock_adjustmentsFull refreshInventory adjustment records
stock_takesFull refreshPhysical inventory counts
stock_transfersFull refreshStock movements between locations
locationsFull refreshWarehouse and storage locations
payment_termsFull refreshPayment term configurations
chart_of_accountsFull refreshAccounting chart of accounts
tax_rulesFull refreshTax rule configurations
units_of_measureFull refreshUnit of measure definitions
carriersFull refreshShipping carrier information
price_tiersFull refreshPricing tier configurations

Troubleshooting

  • If your sync fails with an authentication error, Cin7 Core rejected the account ID or application key. Copy both values from Integrations > API in Cin7 Core and reconnect the source.
  • If your sync fails with a rate limit error, wait a minute and try again. The Cin7 Core API allows 60 calls per minute per application.

If your sync is failing or data looks wrong, see the Data warehouse troubleshooting guide. If that doesn't help, contact support – we're happy to help.

Still have questions?

Was this page useful?