User Guide Help

MNDrive Sync

Overview

IMS knows a serial's life up to the dealer: available, assigned, shipped, delivered. What happens after that (the dealer issues the plate or sticker, DVS reverses an issuance, an audit marks it missing) only exists in MNDrive, the State's inventory system.

The MNDrive sync looks serials up in MNDrive one at a time and updates IMS to match. It works in the background. You don't need to do anything for it to run once it is switched on.

Open Settings → MNDrive Sync to see how the sync is doing and to change how often it checks. The page is only visible to users with the mndrive.manage permission, which MADA-ADMIN has by default.

What the Sync Does

IMS only changes a serial that a dealer holds, or that is on its way to one: Delivered, Shipped, or Assigned on an order marked shipped. Each serial is checked again after a delay, and MNDrive's answer decides what IMS does:

MNDrive says

What IMS does

On Hand/Reserved

Nothing. The serial still counts as on hand at the dealer. If IMS had marked it Issued and it has come back, IMS restores the status it had before.

Issued

Marks the serial Issued and records the date it was issued. If the dealer never received the order in IMS, IMS also sets the dealer and raises an "Issued before receipt" alert.

Reversed - Pending

Changes nothing yet and raises a discrepancy alert. The serial no longer counts as on hand, but it still counts as issued for monthly consumption.

Missing - Audit Needed

Changes nothing (IMS never marks a serial missing on its own) and raises a discrepancy alert. The serial no longer counts as on hand.

Obsolete

Marks the serial Obsolete.

Anything else

Changes nothing, keeps the text MNDrive sent, and raises a discrepancy alert.

The sync never overrides a status that MADA owns: PendingReturn, PendingAudit, Returned, Surrendered, Missing or Damaged. If MNDrive disagrees with one of those, IMS records it and raises a discrepancy alert instead.

When a Serial Is Checked

  • After a ship notice or receipt: the serial is first checked after the First check after ship delay.

  • On a schedule: a serial still at a dealer is rechecked every On-hand recheck interval.

  • Once more after it is issued: the first time the sync sees a serial as Issued, it checks it once more after Reversal recheck after in case DVS reversed the issuance. If that check still says Issued, the sync stops tracking the serial. If MNDrive now says Reversed, Missing - Audit Needed or something unrecognised, the sync keeps rechecking on the normal schedule until it settles. If it says On Hand, the serial goes back to its earlier status and is tracked as normal.

  • Right away: returns submitted through the API and a manual refresh (see below) are checked straight away, at any time of day.

Background checks only run overnight (see Run window below). Right-away checks, including a manual refresh, run at any time and are not limited by the window.

Sync Health

The Sync health card at the top of the page shows the current state:

Item

What it means

Paused banner

Appears only when the sync has stopped itself. Shows why: MNDrive rejected the API key (an expired or wrong key; the sync stays paused until someone clicks Resume) or MNDrive unavailable (the sync pauses itself for 15 minutes after repeated connection failures and starts again on its own). Click Resume to restart it immediately.

Tracked

Serials the sync is scheduled to check.

Due now

Tracked serials whose check time has already passed.

Erroring

Serials whose last lookup failed. They are retried after 1, 3, 7 and 7 days. After the fifth failure in a row the serial stops and moves to Stopped.

Stopped

Serials the sync gave up on after five failed lookups in a row.

Oldest check (tracked)

How long ago the most stale tracked serial was last checked.

Last successful call

The last time MNDrive answered a lookup.

API consumption months

The last six months. A month shows ✓ once it has ended and every tracked serial that could have been issued in it has been checked since. That includes serials that started tracking after the month ended, such as those added at cutover, because they may have been at the dealer long before. Serials first tracked when they shipped only hold back the months that end after they shipped. A month shows … while checks are still outstanding, and every month shows … until the sync has checked at least one serial. Months before the Consumption coverage start always show …, however many checks have run.

Settings

Change a setting and click Save. A toast confirms the save, and every change is recorded in the activity log. Fields are validated as you leave them.

Setting

What it does

Sync enabled

The master switch. Leave it off until the production API key is in place. While it is off, nothing is checked automatically.

Calls per minute

The most MNDrive lookups IMS makes per minute, from 6 to 600. The default, 120, matches the DPS limit of about 2 calls per second. Raise it only after DPS agrees.

Run window start (hour, Central)

The hour (0–23, Central time) when background checks start. Default 22.

Run window end (hour, Central)

The hour when background checks stop. Default 6. The window can cross midnight, so 22 to 6 means overnight. Set start and end to the same hour to run around the clock.

First check after ship (hours)

How long after a ship notice a serial is first checked. Default 72.

On-hand recheck interval (hours)

How often a serial still at a dealer is rechecked. Default 72.

Reversal recheck after (hours)

How long after IMS first sees a serial as Issued it is checked one more time for a reversal. Default 168 (7 days).

Skip the reversal check for issuances older than (days)

Serials that were already issued longer ago than this when IMS first saw them don't get the reversal check. Default 30.

Order-time refresh

Not used at the moment. The order threshold check doesn't refresh serials from MNDrive when an order arrives; it uses the on-hand numbers from the scheduled checks, and the badge tooltip shows how old they are (on-hand as of). Changing this setting has no effect on orders.

Order-time freshness window (hours)

Not used at the moment (see Order-time refresh). Default 24.

Order-time timeout (seconds)

Not used at the moment (see Order-time refresh). Default 120. Orders are never blocked by MNDrive.

Consumption coverage start

The first month whose MNDrive consumption counts can be trusted. Default 2026-08-01. Earlier months come from the monthly upload.

Consumption source

Which source feeds monthly consumption: Automatic (API when the month is complete), Monthly upload only, or MNDrive API only. Use Automatic unless MADA asks for one source.

Refreshing One Dealer

To check a dealer's serials without waiting for the schedule, open the dealer's detail page, open the Actions dropdown and choose Refresh from MNDrive. See Dealers.

Alerts

The sync raises these alerts on the Alerts page:

Alert

When it appears

Issued before receipt: (order number)

MNDrive shows a serial as issued on an order that was shipped but never received in IMS.

MNDrive discrepancies: (dealer name) (one per dealer)

A dealer has serials that are Reversed, Missing - Audit Needed or unrecognised in MNDrive, or Issued in MNDrive while IMS shows a MADA-owned status. The alert gives counts, not one line per serial.

MNDrive sync paused

The sync has paused itself, either because MNDrive rejected the API key or because MNDrive kept failing (see the Paused banner above).

MNDrive serials stopped

Serials stopped being checked after repeated MNDrive errors. The alert gives the count.

10 November 2026