For admins

Waveform (formerly KSS) connection

Bring a distributor's stores, reps, products and sales into the CRM.

What it does

Waveform (Kiva Sales & Service until 2026) is a California cannabis distributor. Its connection brings your stores, its reps, your products and your sales into the CRM, from its data API (still called the KSS data API) and from its Encompass report exports, so nobody retypes a report.

How it works

An admin adds it first: CRM → Settings → Bringing data in → Connections → Add a connection, search "Waveform", Add. Its import files then show under Import, and its live connection card under Connections.

If you sell through Waveform (Kiva Sales & Service until 2026), the California cannabis distributor, the CRM can read your stores and sales straight from its data API (still called the KSS data API), so nobody exports a report.

  • Or from its Encompass export. Waveform's Encompass Invoice Transactions export goes in as it comes: Import → Encompass invoice transactions, then upload the file. One file builds the stores (buying through your Waveform account, with their address, chain and customer type as a "Type:" tag), each store's primary contact, Waveform's reps (as contacts at Waveform, each store's Distributor rep), the products (matched by Waveform's Product ID to an option's ID at distributor, or added with it) and the order lines, with samples marked as samples. Importing the same file again updates instead of adding. Add the Waveform account first; with more than one distributor, add a Distributor column naming it.

    • Each line also keeps its Delivery Date, its Invoice Status (a Submitted line isn't counted in sales until it's Delivered: the account and the reports' Submitted, not delivered show it apart; cancelled lines are skipped), the Batch Code and Exp Date (for recalls and COAs), the store's PO Num, the Memo, the unit price and discount, and the rep on the sale (kept with the line when the store's rep changes later; the reports group by rep at sale). Rows for accounts the data connection's Accounts that aren't stores setting names (customer types or parts of names, empty until an admin fills it in) aren't stores: they're skipped.
  • Waveform's other reports, as they come. Under Import, each takes the file with its own headers:

    • KSS Live customers (Browse All Customers): every store with its address, license, status, on hold, rep, collections contact, delivery minimum and next delivery days. The best master list of stores.
    • Encompass customer gap report: each customer's terms, on hold, rep and delivery days; customers that never bought from you come in as prospects. First Sale, Last Sale and the sales columns are read from your own orders instead, so the report never overwrites them.
    • A rep change. Importing KSS Live customers or the Encompass customer gap report again with a different rep records the change in the store's Rep history, dated the day of the import; add a Rep since column to date it yourself. Each invoice line keeps its KSS Rep, so past sales stay with the rep who made them, and the store takes the rep on its latest invoice in the file.
    • Encompass customer delivery days: the warehouse, route and delivery day of each store you already have, for the coming weeks (one column per week, as Encompass writes them).
    • Encompass category gap report: Waveform's sales to each store by category, for spotting stores strong in your categories that don't carry you yet.
    • Encompass all products: every product with its Product ID (the option's ID at distributor), status, case size, price, image and flags; a product another row names as its sample variant is marked as a sample. Stores are matched on Waveform's Customer ID, which is the same in KSS Live, its data API and Encompass, so whichever brought a store in, every later report updates that one. Waveform's people are matched at Waveform by email, then by name.
  • What comes in. Every store that buys your products through KSS (it's on one of your invoices, or one of your KSS reps covers it) becomes a store account; KSS's other customers are left out, and a store is added as soon as a new invoice or rep assignment shows it (name, address, license number and type, chain), buying through a Waveform (formerly KSS) distributor account. KSS's account status, on-hold flag, delivery minimum, delivery days and next delivery dates fill the store's At the distributor fields, and its collections contact becomes a contact at Waveform (the older tags starting with "KSS:" are still written; your own tags are kept). KSS's reps (Territory Managers and Supplier Reps) become contacts at the KSS account, and each store shows its rep; nobody is invited and nobody gets a login. Your products come in and are matched to the ones you already have by your own product number (or the same name); new ones are added. Invoices become orders, one line per product with the date, invoice number, quantity, price and discount, batch, PO and memo, so the reorder radar and the reports use them. A batch's COA becomes a document on its product: a link to KSS's copy, with the batch number.

  • Already imported from Encompass? The sync finds what an Encompass import brought in first and updates it instead of adding a second copy: stores by Waveform's Customer ID, Waveform's reps by email (or the only contact at Waveform with that name and no email), products by their ID at distributor, and your Waveform distributor account (the sync uses it, so no second Waveform account appears). Nothing is merged or deleted. To check for copies made before this, ask an agent for crm_status: its possible duplicates list stores with the same Customer ID from both KSS and Encompass, people with the same email from both, and products sharing an ID at distributor.

  • How often. Every 30 minutes with a Production key, once a day with a Test key. The first sync reads the past year of invoices; after that each sync reads the last two weeks again and only the invoices that changed. Sync now runs one straight away. Dashera keeps under 400 KSS requests an hour (KSS allows 500), waits when KSS asks it to, and picks up where it stopped.

  • Invoice status. KSS's invoice statuses come in as words, and sales count on delivery: Loaded and Balanced count as sold once their delivery day has come; Verified counts as sold, even before it; New and Locked for Routing are pending (ordered, not delivered yet, kept out of sales); Returned comes out of sales, and a SPIF payout the order had earned is taken back, even one already approved. A status KSS adds later is read as pending until Dashera knows it. SPIF progress follows the same rule.

  • Count sales when. A connection setting: Delivered (the default, as above) or Verified only (Loaded and Balanced stay pending until KSS verifies the order). Changing it re-reads every synced order's status on the next sync and is recorded in the audit log. An admin's AI agent sets it with set_crm_connection_settings (countSalesWhen).

  • Store pricing not open yet. When KSS hasn't opened store pricing to your key, the card says Pricing: waiting on the distributor and each sync asks again, without an error, until it opens.

  • Read-only. Dashera only reads from KSS. It never places orders, changes invoices or sends payments there.

  • How to connect. An admin opens the CRM's Settings tab, finds the Waveform (formerly KSS) card under Bringing data in, chooses Production or Test, pastes the API key and, optionally, your KSS supplier ID, and taps Connect (it asks you to confirm it's you first). Dashera checks the key with KSS before saving it. The key is stored encrypted and never shown again: the card shows only its last 4 characters. The card has Test connection, Sync now, Pause and Disconnect, and shows when it last synced ("Last synced 10:15 AM: 312 stores, 1,204 invoices").

  • Where to get a key. Ask Waveform's API support (the KSS data API, documented at kssdata.com) for a data API key for your supplier account; your Waveform account rep can put you in touch. Test and Production keys are separate: a Test key works only with Test, which KSS refreshes every Sunday.

  • Your AI agent. An admin's AI agent, or a Chief of Staff connection whose person is an admin, can read the card (crm_data_connection), run Test connection and Sync now (run_crm_data_connection), pause and resume the sync and choose what it brings in (set_crm_data_connection), and set Accounts that aren't stores (set_crm_connection_settings), each recorded in the audit log with the admin it acts for. Entering or replacing the key takes that Chief of Staff connection (the owner's full reach) or a person, and the key is never sent back; disconnecting stays with people.

  • Live stock. Each sync also reads Waveform's warehouse figures (allocated, pre-sold, available, days of inventory and the sales rate) beside the batches. While the live sync is the newest feed for a product, its figures are the ones shown, marked Live, as of the time they came in; a report imported later than it takes its place.

  • Ordered, not shipped. A line Waveform invoiced with no units shipped (the item was cut or back-ordered) is kept with what was ordered and back-ordered, shown on the store as Ordered, not shipped, and never counted in sales, units, products carried, placements, health or SPIFs.

  • Starting over. Disconnecting removes the key and stops syncing; what KSS brought in stays. To clear it out, archive the kss source under Bringing data in (it can be brought back).

Stock and shipments

  • Encompass stock reports (Waveform). Waveform's inventory and PO reports go in as they come, from Import: Encompass inventory by batch (by warehouse and batch, with expiration; its potency columns are kept as the lot's test results), Encompass warehouse inventory status (in cases, turned into units with each option's case size, or add a Units per Case column), Encompass days of inventory (DOI Lookup 2.0) (days of inventory, average monthly sales and the target; Waveform says DOI is unreliable for a product's first 30 to 90 days) and Encompass POs (PO Overview and/or PO Details, one after the other; add a METRC Manifest column to keep each shipment's manifest). Products match by the Product ID at the start of each product name, the option's ID at distributor. Each sync of the Waveform connection also records what's in Waveform's warehouses, by batch.

All guides