docs.vin

dealer-stocking

The dealer-stocking workflow — a composition over the deal grid, modeled end to end.

Sandbox — a caller mode, never a status claim

The key selects the mode. Wire-compatible simulated responses, deterministic and replayable. Every payload is provenance-labeled { environment, simulated } in the body itself — where the row's live rail is a certified connection, it is live via connection: certified, connect to activate. Connecting is the ceremony: a credential submission at integrates.vin (dealer systems) or connects.vin (consumer accounts) enters the activation queue, and submissions rank live rollout.

Noun deal · Pillar Workflows

Descriptor

The catalog row, rendered. This is the same descriptor that answers GET /catalog?select=….

FieldValue
Noundeal
FacetCommerce
Sidesupply
PillarWorkflows
Kindworkflow
Statussandbox
Gatekey
Mandaterequired-when-delegated
Pricefree — $0.00, posted
Doordealers.vin
MotionsB2A2B · B2A2D

The two spellings

One capability, two addresses — generated from one descriptor, so they cannot disagree:

  • The catalog namedealer-stocking. What the SDK, the CLI, and the MCP index call it.
  • The wire routeGET /workflows/dealer-stocking. What HTTP calls it.

Call it

the SDK — dealerStocking(vin)
import { dealerStocking } from 'apis.vin'

// dealer-stocking is a workflow — a composition of standalone acts.
// Run it end-to-end, or call each leaf act directly.
const run = await dealerStocking('1FMUK8HH4SGB61946')
GET /workflows/dealer-stocking
curl 'https://apis.vin/workflows/dealer-stocking?workflow=dealer-stocking'

Receipt — the sandbox wire answered the request above with this exact body at build time. Captured by the receipts runner (timestamped, provenance in the payload), never authored; it re-executes only when this descriptor changes.

receipt · executed 2026-08-16T14:50:10.101Z · HTTP 200
{
  "type": "OK",
  "answers": "Deal@1",
  "value": {
    "workflow": "dealer-stocking",
    "dealId": "DEAL-0AR9B5Z",
    "vin": null,
    "state": "accepted",
    "currentStep": "plan",
    "steps": [
      {
        "name": "plan",
        "state": "active"
      },
      {
        "name": "acquire",
        "state": "pending"
      },
      {
        "name": "floorplan",
        "state": "pending"
      },
      {
        "name": "frontline",
        "state": "pending"
      }
    ],
    "stepCount": 4,
    "asOf": "2026-08-10"
  },
  "evidence": {
    "workflow": "dealer-stocking",
    "dealId": "DEAL-0AR9B5Z",
    "vin": null,
    "state": "accepted",
    "currentStep": "plan",
    "steps": [
      {
        "name": "plan",
        "state": "active"
      },
      {
        "name": "acquire",
        "state": "pending"
      },
      {
        "name": "floorplan",
        "state": "pending"
      },
      {
        "name": "frontline",
        "state": "pending"
      }
    ],
    "stepCount": 4,
    "asOf": "2026-08-10"
  },
  "provenance": {
    "simulated": true,
    "environment": "sandbox",
    "source": "workflow-sandbox"
  },
  "events": [],
  "meter": {
    "charged": "0.00",
    "posted": true
  }
}

Input

FieldTypeRequiredNotes
workflowstringyesconst dealer-stocking
rooftopstringnodlr_… rooftop identity
criteriaobjectnosaved-search stocking spec
dealTypestringnoconst STOCKING
authoritystringnomnd_… — required for proxy-bid ceiling

Answers

A typed OK envelope carrying Deal@1. Every fact inside it is an evidence object — { value, source, timestamp, verification } — and act-minted facts carry a dereferenceable pointer to the event that minted them. Absence is typed (EMPTY), never a faked 200.

The gate

This capability is keyed — mint an anonymous key with POST /keys; no account, no email.

When an agent acts on a principal's behalf, a typed Mandate is required — { ceiling, perAction, expires, tripwires }. The ceiling is a field, not a conversation; sub-delegation only narrows it.

How it runs

Modeled end to end — the stategraph it advances, the actors and messages it sequences, its decision logic, and its flow of funds. Delete the workflow and every leaf still transacts on its own address.

Stategraph

Sequence

Flow of funds (sankey)

Emits

On success this capability appends to the record and emits:

Subscribe on the universal /webhooks rail, or replay from the subject snapshot.


Generated from the catalog descriptor. It shows only what the descriptor declares — the provider behind a fact is never named here; evidence source names the attesting authority at the estate's own level of abstraction.