MQTT Channels
Arvist services communicate over MQTT. This guide lists the topics used by each service and plugin.
Services
Arvist Central
- Subscriptions
nvr/available- determines if nvr service is runningarvist/shipment/complete- when a shipment inspection is completed by Palletscanarvist/shipment/unit-processing- when a unit is processing in Palletscanarvist/shipment/unit-completed- when a unit is processed in Palletscanarvist/shipment/error- an error occurred in Palletscan
- Publications
arvist/update- updates services with mutated global settings, modules, and/or worker informationarvist/quality-stations/update- publishes full quality station data when stations are bulk upserted, including created, updated, and deleted stationsarvist/retake-snapshot- sends to retake base snapshot for Path Obstruction servicearvist/shipment-inspection/start- tells Palletscan to start inspectionarvist/shipment-inspection/stop- tells Palletscan to stop inspection (meaning no more units to observe)arvist/shipment-inspection/images- sends images provided by user to Palletscanarvist/shipment-inspection/post-id- update count with user-provided product identificationarvist/shipment-inspection/refresh- refresh current unitarvist/shipment-inspection/cancel- cancel shipment inspectionarvist/shipment-inspection/cancel-layer- remove specific image(s)/layer(s) from an in-progress unit for re-inspectionarvist/shipment-inspection/products-override- authoritative corrected count for one or more line items (no detection backs it — an overwrite, not a delta)arvist/integration/shipment/started- external integration event — a shipment inspection beganarvist/integration/shipment/unit-completed- external integration event — a unit finished processing, including any open issuesarvist/integration/shipment/issue-resolved- external integration event — a quality issue's status/detail changed via a resolution actionarvist/integration/shipment/overage-shortage-detected- external integration event — an overage/shortage issue was just createdarvist/integration/shipment/completed- external integration event — a shipment inspection reached its true final statearvist/integration/shipment/canceled- external integration event — a shipment or unit was canceled/removedarvist/integration/shipment/paused- external integration event — a shipment inspection was pausedarvist/integration/shipment/resumed- external integration event — a paused or completed shipment inspection became active again
Event Service
- Subscriptions
nvr/events– consumes NVR event messages.arvist/update– receives module configuration updates.
- Publications
arvist/notifications– sends incident notifications.arvist/incident/<module name>- sends incident data after incident is created.
Notification Service
- Subscriptions
arvist/notifications/#– processes notification requests for various notification types including email, SMS, and Slack.
R2 Uploader
- Subscriptions
arvist/upload– accepts upload requests for Cloudflare R2.
Pallet Scan Service
- Subscriptions
arvist/shipment-inspection/startarvist/shipment-inspection/stoparvist/shipment-inspection/imagesarvist/shipment-inspection/post-idarvist/shipment-inspection/refresharvist/shipment-inspection/cancelarvist/shipment-inspection/cancel-layerarvist/shipment-inspection/products-overridenvr/available
- Publications
arvist/shipment/unit-processingarvist/shipment/unit-completedarvist/shipment/completearvist/shipment/error
Training Data Collector
- Subscriptions
nvr/events– monitors events to collect training snapshots.
Plugins
Asset Tracking
- Subscriptions
arvist/update– module configuration updates.nvr/<zone>/person/active– per-zone person activity.
Path Obstruction
- Subscriptions
arvist/update– module configuration updates.arvist/retake-snapshot– background refresh requests.
- Publications
arvist/notifications– safety alerts.arvist/incident/<module name>- sends incident data after incident is created.
Forklift Collision
- Subscriptions
arvist/update– module configuration updates.nvr/events– live NVR events.
- Publications
arvist/notifications– safety alerts.arvist/incident/<module name>- sends incident data after incident is created.
External Integration Events (WMS/ERP)
Topics under arvist/integration/shipment/* are for external systems (a WMS, ERP, or custom
warehouse-automation integration) to consume. This is a separate channel from the
arvist/shipment-inspection/*/arvist/shipment/* topics elsewhere in this document, which are
internal RPC between Arvist Central and the Quality service.
- Always published, regardless of whether a WMS/ERP integration is configured for the site
(same pattern as
arvist/incident/*— see Arvist MQTT Integration Guide). - Payloads include the full relevant object (e.g. the complete shipment, line items, issue), not a curated subset of fields.
- Any image/video included is resolved to a fetchable URL at publish time — never a container filepath.
Events published so far:
| Event | Topic | Fires when |
|---|---|---|
| Started | arvist/integration/shipment/started | A shipment inspection begins |
| Unit completed | arvist/integration/shipment/unit-completed | A unit finishes processing — includes any open issues, whether there are none or several |
| Issue resolved | arvist/integration/shipment/issue-resolved | An issue's status/metadata changes via a resolution action |
| Overage/shortage detected | arvist/integration/shipment/overage-shortage-detected | An overage/shortage issue is first created — the real-time counterpart to issue-resolved, since these two types never appear in unit-completed |
| Shipment completed | arvist/integration/shipment/completed | A shipment reaches its final completed state (human /final submission, or automated completion when review is skipped) — never fires for the review transition |
| Canceled | arvist/integration/shipment/canceled | A whole shipment is canceled, or a single unit is removed |
| Paused | arvist/integration/shipment/paused | A shipment inspection is paused, manually or by the idle-timeout sweep |
| Resumed | arvist/integration/shipment/resumed | A paused shipment resumes, or a completed shipment is reopened |
Message Formats
Quality Station Update
Topic: arvist/quality-stations/update
Published when quality stations are bulk upserted. Contains full quality station objects and deleted station information.
Message Structure:
{
"type": "quality_stations_bulk_update",
"data": {
"quality_stations": [
{
"id": 123,
"area_id": 95,
"area_name": "QS Station 1",
"description": "Main inspection station",
"quality_station_cameras": [
{
"side": "front",
"quality_station_id": 123,
"camera_id": 45,
"camera_name": "Camera 1",
"required": true
}
],
"zones": [...],
"quality_station_specs": {...}
}
],
"deleted_stations": [
{
"area_id": 96,
"area_name": "Deleted Station"
}
],
"timestamp": "2025-10-28T16:25:42.869Z"
}
}
Fields:
quality_stations: Array of complete quality station objects with all fields including cameras, zones, and specificationsdeleted_stations: Array of stations removed in this update, containing area_id and area_nametimestamp: ISO 8601 timestamp of when the update occurred
A single message is sent regardless of how many stations were created, updated, or deleted.
Shipment Inspection Start
Topic: arvist/shipment-inspection/start
Published when a shipment inspection is started. Instructs Palletscan service to begin processing a shipment.
Message Structure:
{
"shipment_id": 456,
"extract_identifiers": false
}
Fields:
shipment_id: Integer ID of the shipment to inspectextract_identifiers: Boolean flag indicating whether to extract identifiers from the shipment label during inspection (default:false)- When
true: The system will attempt to extract identifiers from the physical shipment label using OCR/pattern matching- The extracted identifier is based on the configured mapping for the shipment label
- When
false: Identifiers should already be associated with the shipment
- When
Usage:
- Published by Arvist Central when starting a shipment inspection via the API
- Consumed by Palletscan service to initiate product counting and identification
- The
extract_identifiersflag enables workflows where order information is scanned from labels after inspection begins
Shipment Inspection Products Override
Topic: arvist/shipment-inspection/products-override
Published to push an authoritative corrected count for one or more line items — no
detection/annotation backs this, it's an overwrite, not a delta. Internal only, between Arvist
Central and Palletscan — not one of the arvist/integration/shipment/* external events.
Message Structure:
{
"shipment_id": 123,
"products": [
{ "id": 456, "actual_quantity": 7 },
{ "id": 457, "actual_quantity": 12 }
],
"source": "shortage_resolution"
}
Fields:
shipment_id: Integer ID of the shipmentproducts: The shipment's full current per-product count array, with the corrected value(s) substituted in —id(line item id),actual_quantity(the true final count, not a delta)source: Where the correction came from —"shortage_resolution"(thewrong_countingresolve action),"manual_line_item_edit"(direct line-item-count edit mid-inspection), or any other caller-supplied label
Usage:
- Published whenever an operator overrides a line item's count directly, rather than the count changing through a new detection
- On receipt: overwrite each listed line item's
actual_quantitydirectly fromproducts(don't diff/increment against existing state), then echounit-completedas usual so cached counts resync
Integration: Shipment Started
Topic: arvist/integration/shipment/started
Published when a shipment inspection begins.
Message Structure:
{
"site_id": 5,
"wms_site_id": 42,
"extract_identifiers": false,
"shipment": {
"id": 456,
"shipment_key": "SHP-2026-001",
"type": "inbound",
"status": "in_progress",
"order_numbers": ["PO-12345"],
"supplier": "Acme Corp",
"confidence": null,
"location_id": null,
"location_name": null,
"created_at": "2026-01-20T08:00:00.000Z",
"updated_at": "2026-01-20T08:00:00.000Z",
"quality_station": {
"id": 10,
"area_id": 95,
"area_name": "QS Station 1",
"station_configuration": "dual_side_pallet"
},
"units": [],
"line_items": [
{
"id": 4043,
"product_ref_id": 1078,
"product_id": "PROD-123",
"name": "Widget A",
"line_no": null,
"sku": "WDG-A-001",
"is_edited": false,
"expected_quantity": 100,
"actual_quantity": 0,
"additional_data": null,
"created_at": "2026-01-20T08:00:00.000Z",
"updated_at": "2026-01-20T08:00:00.000Z",
"thumbnail_embedding_id": 7613,
"issue": null
}
],
"pallet_identifiers": [],
"additional_data": null
}
}
Fields:
site_id,wms_site_id: same meaning as in Shipment Unit Completedextract_identifiers: Whether the system will extract identifiers from the physical shipment label via OCR during this inspectionshipment: Shipment object at start — same shape as the Shipment Completed event'sshipmentfield (id/shipment_keythere are the shipment's identifiers — not repeated at the top level here), butunitsis empty andline_itemscarry their expected (not yet counted) quantities
When Published:
- When a shipment inspection is started (
POST /v1/api/quality/inspection/shipment), before any units have been processed
Integration: Shipment Unit Completed
Topic: arvist/integration/shipment/unit-completed
Published every time a unit finishes processing, whether or not it has any issues.
Message Structure:
{
"shipment_id": 1,
"shipment_key": "SHP-2026-001",
"site_id": 5,
"wms_site_id": 42,
"type": "inbound",
"unit_id": "unit-001",
"unit_session_id": 789,
"order_numbers": ["PO-12345"],
"identifiers": {
"order_numbers": ["PO-12345"],
"pallet_identifier": "PLT-001"
},
"increment_by": 1,
"products": [
{
"product_id": "PROD-123",
"sku": "WDG-A-001",
"actual_quantity": 48
}
],
"progress": {
"current_count": 6,
"total_count": 10,
"inspection_state": "IMAGES_CAPTURED"
},
"images": [
{
"side": "front",
"media": [
{
"content_id": 5678,
"filename": "unit-001-front.jpg",
"content_type": "image/jpeg",
"type": "image",
"side": "front",
"url": "https://<bucket>.r2.cloudflarestorage.com/...",
"expires_at": "2026-01-20T11:00:00.000Z"
}
],
"damages": []
}
],
"issues": [
{
"id": 555,
"issue_type": "unidentified_product",
"status": "open",
"shipment_data_id": null,
"description": null,
"metadata": {
"file_name": "unit-001-front.jpg",
"annotation": {
"id": 40230,
"image_id": 5678,
"category_id": null,
"identifiers": {},
"bbox": [0.05, 0.42, 0.18, 0.3],
"area": 0.054,
"merged": null
}
},
"created_at": "2026-01-20T21:51:32.767Z",
"updated_at": "2026-01-20T21:51:32.767Z",
"resolved_at": null,
"resolved_by_user": null,
"reason": null
},
{
"id": 556,
"issue_type": "wrong_product",
"status": "open",
"shipment_data_id": null,
"description": null,
"metadata": {
"file_name": "unit-001-front.jpg",
"annotation": {
"id": 40231,
"image_id": 5678,
"category_id": null,
"identifiers": { "sku": "WDG-B-002" },
"bbox": [0.21, 0.08, 0.19, 0.32],
"area": 0.0608,
"merged": null
}
},
"created_at": "2026-01-20T21:51:33.102Z",
"updated_at": "2026-01-20T21:51:33.102Z",
"resolved_at": null,
"resolved_by_user": null,
"reason": null
}
]
}
Two open issues shown here for illustration — one unidentified_product (nothing matched at
all, identifiers empty) and one wrong_product (a real, recognized product, WDG-B-002, that
just isn't on this order). Both share the exact same envelope and flat metadata shape — only
issue_type, shipment_data_id, and what metadata.annotation.identifiers managed to read
differ. Most calls carry zero or one issue; a unit rarely has both at once.
Fields:
shipment_id: Integer ID of the shipment being inspectedshipment_key: The shipment's reference key, with any internal duplicate-shipment suffix (_1,_2, ...) stripped — this may be a WMS/ERP-provided shipment number or an internally generated ID depending on how the shipment was createdsite_id: Arvist's internal site idwms_site_id: The WMS-side site id mapped to this Arvist site (sites.wms_site_id), ornullif unmappedtype: Shipment type ("inbound"or"outbound")unit_id: String ID of the unit being inspectedunit_session_id: Integer ID of the unit's inspection sessionorder_numbers: Array of order/PO numbers associated with the shipmentidentifiers: Key-value pairs of label fields read from the unit and correlated back to the shipment label's mapped fields. The keys present depend on what fields are configured on the label assigned to the shipment. Possible keys include:order_numbers: Order/PO numbers scanned from the labelpallet_identifier: Pallet identifier valuetotal_pallets: Total pallet countsku: Product SKUitems_quantity: Item quantitycase_quantity: Case quantity- Any other
mapped_fieldvalue defined on the shipment label
increment_by: Unit count delta this call contributed (nullif not applicable, e.g. photo-documentation-only stations)products: This call's own per-product contribution — only the line items this unit touched, each with its new absoluteactual_quantityprogress: The shipment's running progresscurrent_count/total_count: Units processed so far vs. expected totalinspection_state: The station's current inspection state (e.g."STARTED","IMAGES_CAPTURED","AUTO_INSPECTION_STOPPED"), ornullif not tracked- No per-product tally here — that would just restate
productsabove under different key names; see Shipment Canceled for the one event that does carry aprogress.product_counts(it has noproductsarray of its own)
images: This unit session's images —side,media(array, see Media Resolution below),damagesissues: All open session-level issues for the unit — may be empty. Everyissue_typeshares the same top-level shape, with type-specific detail inmetadata. Session-level types only —overage/shortageissues are scoped to a line item, not a unit session, so they never appear here even when open; see Shipment Issue Resolved for how those surface instead.id: Unique issue identifierissue_type: Type of issue ("damage","unidentified_product","wrong_product","wrong_load","no_identifiers")status: Issue status ("open","resolved","canceled","unresolved","false_positive") —"resolved"means the original detection/classification was correct and the action just confirms a real-world outcome;"false_positive"means the classification itself was wrong and had to be corrected;"unresolved"means the shipment completed while the issue was still open and nobody acted on itdescription: Optional issue description (not currently populated)metadata: Type-specific data:damageissues:damage_reports— array of{unit_side, damages, images}unit_side:"front","back","left","right","top", or"all"damages: Array of{damage_type, damage_type_id, damage_description, box_quantity}images: Every image/video sharing thisunit_sidein the session, resolved per Media Resolution below (an array — a side can have more than one image, e.g. multi-layer/pick-pack)
wrong_load/no_identifiersissues:observed_order_numbers,observed_pallet_identifier,expected_location,actual_location(whichever are present)unidentified_product/wrong_productissues: one detected instance per issue row —file_name,annotationdirectly at the root (no wrapper array).annotation.id/annotation.image_idare the instance/image identifiers — not repeated as separateannotation_id/image_idkeys alongsideannotation
created_at/updated_at/resolved_at: ISO 8601 timestampsresolved_by_user: Who resolved this issue —{id, first_name, last_name}, ornullif still open or resolved by something other than a user actionreason: Why the issue was left unresolved — only set whenstatusis"unresolved",nullotherwise
Media Resolution:
A stored image row's media is always an array of 0–2 entries — one for an image capture, one
for a video clip, both if the row has both. Each entry resolves to one of:
- Cloud storage (R2, the common case): a presigned GET URL, valid 30 minutes —
url,expires_at - Local storage (on-prem deployments): an internal
stream_url, addressed bycontent_idvia/storage/media/:contentId(serves both images and videos)
Every entry also carries content_id, filename, content_type, type ("image" or "video"), and side.
When Published:
- Once per
arvist/shipment/unit-completed(internal) message processed, regardless of whether it produced any issues
Integration: Shipment Issue Resolved
Topic: arvist/integration/shipment/issue-resolved
Published whenever an issue's status or metadata changes via a resolution action — damage acknowledged/resolved, a wrong-load or no-identifiers issue resolved, a product identified/corrected, an overage or shortage resolved. Fires once per resolution action, one event per issue.
Message Structure:
{
"shipment_id": 1,
"shipment_key": "SHP-2026-001",
"site_id": 5,
"wms_site_id": 42,
"type": "inbound",
"unit_id": "unit-001",
"unit_session_id": 789,
"order_numbers": ["PO-12345"],
"issue": {
"id": 124,
"issue_type": "wrong_load",
"status": "resolved",
"shipment_data_id": null,
"description": null,
"metadata": {
"observed_order_numbers": ["PO-12345"]
},
"created_at": "2026-01-20T10:30:00.000Z",
"updated_at": "2026-01-20T10:32:00.000Z",
"resolved_at": "2026-01-20T10:32:00.000Z",
"resolved_by_user": { "id": 1, "first_name": "Arvist", "last_name": "Admin" },
"reason": null
}
}
Fields:
shipment_id,shipment_key,site_id,wms_site_id,type,order_numbers: same meaning as in Shipment Unit Completedunit_id,unit_session_id: the unit/session the resolved issue belonged to — present for every issue type exceptoverage/shortage, which are scoped to a line item instead and publish this event with both fields absentissue: The single issue's post-resolution state. Re-fetched fresh right before publish (via a dedicated query, not whatever a given resolve action's own DB call happened to return), so this is always the same envelope regardless of which resolution path fired the event:id,issue_type,status,shipment_data_id,description,metadata,created_at,updated_at,resolved_at,resolved_by_user,reason— same fields as one entry in Shipment Unit Completed'sissues(including the samedamage_reports/image resolution fordamageissues), plusshipment_data_id, which that event's embedded session issues don't carryshipment_data_id: The line item (integer id) this issue resolved to or concerns — set foroverage/shortagefrom the moment the issue is created, and forunidentified_product/wrong_productonce resolved;nullotherwiseresolved_by_user:{id, first_name, last_name}, ornullif resolved by something other than a user action (e.g. an automated corrective flow)reason: Set only whenstatusis"unresolved";nullotherwise
Example — an overage resolved by physically removing the extra unit(s) (unit_id/unit_session_id absent, shipment_data_id set):
{
"shipment_id": 1,
"shipment_key": "SHP-2026-001",
"site_id": 5,
"wms_site_id": 42,
"type": "outbound",
"order_numbers": ["PO-12345"],
"issue": {
"id": 201,
"issue_type": "overage",
"status": "resolved",
"shipment_data_id": 5502,
"description": null,
"metadata": {
"removed_annotation_ids": [40231, 40232],
"removed_annotations": [
{ "annotation_id": 40231, "unit_id": "b3f1...", "file_name": "unit_b3f1_side1.jpg" },
{ "annotation_id": 40232, "unit_id": "b3f1...", "file_name": "unit_b3f1_side2.jpg" }
]
},
"created_at": "2026-01-20T09:15:00.000Z",
"updated_at": "2026-01-20T10:40:00.000Z",
"resolved_at": "2026-01-20T10:40:00.000Z",
"resolved_by_user": { "id": 1, "first_name": "Arvist", "last_name": "Admin" },
"reason": null
}
}
When Published:
- Whenever a
damage/wrong_load/no_identifiersissue's status changes via a resolution action - Whenever an
unidentified_productorwrong_productissue is resolved, via any of: assigning/correcting a product, keeping an off-manifest product on record, or physically removing it - Whenever an
overageis resolved — the extra unit(s) were physically removed, or one detected unit is reassigned to a different product - Whenever a
shortageis resolved — the missing unit(s) were physically found and added, or the expected count itself is corrected
Integration: Shipment Overage-Shortage Detected
Topic: arvist/integration/shipment/overage-shortage-detected
Published the moment an overage/shortage issue is first created — the real-time
counterpart to issue-resolved for these two types, which otherwise have no other way to
surface until they're resolved: they're scoped to a line item rather than a unit/session, so
unlike every other issue type they never appear in Shipment Unit Completed's
issues array. Fires exactly once per issue — a later unit-completed/count-check that finds
the same overage/shortage still open does not re-fire this event.
Message Structure:
{
"shipment_id": 7,
"shipment_key": "SHP-2026-001",
"site_id": 5,
"wms_site_id": 42,
"type": "outbound",
"order_numbers": ["PO-12345"],
"issue": {
"id": 201,
"issue_type": "overage",
"status": "open",
"shipment_data_id": 5502,
"description": null,
"metadata": {
"candidates": [
{
"annotation_id": 40231,
"unit_id": "e2a0ffaf-727b-4dc2-9502-bf22c0d0339f",
"file_name": "unit-001-top.jpg",
"bbox": [0.21, 0.08, 0.19, 0.32],
"identifiers": { "sku": "WDG-A-001" },
"media": [
{
"content_id": 5678,
"filename": "unit-001-top.jpg",
"content_type": "image/jpeg",
"type": "image",
"side": "top",
"url": "https://<bucket>.r2.cloudflarestorage.com/...",
"expires_at": "2026-01-20T11:00:00.000Z"
}
]
}
]
},
"created_at": "2026-01-20T09:15:00.000Z",
"updated_at": "2026-01-20T09:15:00.000Z"
}
}
Fields:
shipment_id,shipment_key,site_id,wms_site_id,type,order_numbers: same meaning as in Shipment Unit Completedissue: The newly-created issue —id,issue_type,status,shipment_data_id,description,metadata,created_at/updated_at. Deliberately a leaner shape than Shipment Issue Resolved'sissue— noresolved_at,resolved_by_user, orreasonhere, since this event fires at creation, before any resolution has happened, and those fields would just always benull.unit_id/unit_session_idare never present at the top level either, sinceoverage/shortageare always line-item scoped, never unit/session scopedshipment_data_id: The line item this issue concerns, set from creationstatus: Always"open"here — this event fires at creation, before any resolution actionmetadata.candidates(overageonly, absent forshortage): every annotation currently counted against this line item, across every unit — the same data the Arvist UI's ownreassignpicker builds from, so an integrator can build an equivalent "pick the specific unit that's actually a different product" screen. Each entry:annotation_id(send this back asreassign'sannotation_id),unit_id,file_name,bbox,identifiers(whatever was read off the label),media(fetchable image, same shape as Shipment Unit Completed'simages[].media). This is a point-in-time snapshot —reassignre-validates theannotation_idagainst live data at call time regardless, so acting on a stale entry just 400s rather than corrupting anything.
When Published:
- Whenever a real line item's live count first goes above its
expected_quantity(anoverage), detected while a unit is completing - Whenever a real line item's count is still below its
expected_quantity(ashortage) at the point shortages are checked — before/finished//submitproceeds, or at any automated completion
Integration: Shipment Completed
Topic: arvist/integration/shipment/completed
Published once a shipment reaches its final completed status — a human's /final
submission, or automated completion when review is skipped (skip_review, or product
counting not enabled for the station). Does not fire for the review transition.
Message Structure:
{
"site_id": 5,
"wms_site_id": 42,
"location_key": null,
"shipment": {
"id": 456,
"shipment_key": "SHP-2026-001",
"type": "inbound",
"status": "completed",
"order_numbers": ["PO-12345", "PO-67890"],
"supplier": "Acme Corp",
"confidence": null,
"location_id": null,
"location_name": null,
"created_at": "2026-01-20T08:00:00.000Z",
"updated_at": "2026-01-20T10:30:00.000Z",
"quality_station": {
"id": 10,
"area_id": 95,
"area_name": "QS Station 1",
"station_configuration": "dual_side_pallet"
},
"units": [
{
"id": "unit-001",
"type": "pallet",
"pallet_identifier": null,
"created_at": "2026-01-20T08:05:00.000Z",
"updated_at": "2026-01-20T08:06:15.000Z",
"quality_sessions": [
{
"id": 789,
"created_at": "2026-01-20T08:05:30.000Z",
"updated_at": "2026-01-20T08:06:15.000Z",
"images": [
{
"side": "front",
"media": [
{
"content_id": 5678,
"filename": "unit-001-front.jpg",
"content_type": "image/jpeg",
"type": "image",
"side": "front",
"url": "https://<bucket>.r2.cloudflarestorage.com/...",
"expires_at": "2026-01-20T11:00:00.000Z"
}
],
"damages": [
{
"id": 101,
"type": "Torn Boxes",
"type_id": 3,
"category": "Packaging",
"category_type": "pallet",
"description": "Multiple boxes show tearing",
"damaged_box_qty": 5,
"created_at": "2026-01-20T08:06:00.000Z"
}
]
}
],
"issues": [
{
"id": 123,
"issue_type": "damage",
"status": "resolved",
"description": null,
"metadata": { "damage_reports": [{ "unit_side": "front", "damages": [ /* ... */ ], "images": [ /* ... */ ] }] },
"created_at": "2026-01-20T08:06:00.000Z",
"updated_at": "2026-01-20T10:30:00.000Z",
"resolved_at": "2026-01-20T10:30:00.000Z",
"resolved_by_user": { "id": 1, "first_name": "Arvist", "last_name": "Admin" },
"reason": null
}
]
}
]
}
],
"line_items": [
{
"id": 4043,
"product_ref_id": 1078,
"product_id": "PROD-123",
"name": "Widget A",
"line_no": null,
"sku": "WDG-A-001",
"is_edited": false,
"expected_quantity": 100,
"actual_quantity": 98,
"additional_data": null,
"created_at": "2026-01-20T08:00:00.000Z",
"updated_at": "2026-01-20T10:30:00.000Z",
"thumbnail_embedding_id": 7613,
"issue": null
}
],
"pallet_identifiers": [],
"additional_data": null
}
}
Fields:
site_id,wms_site_id: same meaning as in Shipment Unit Completedlocation_key: WMS location identifier, only present when a human submitted via the/finalreview page. Optional.shipment: Complete shipment object (statusis always"completed") —id/shipment_keyhere are the shipment's identifiers, not repeated at the top levelid,shipment_key,type,order_numbers,supplier,confidence,location_id,location_name,created_at/updated_atquality_station:id(station id),area_id,area_name(quality_stationshas no name of its own — it's 1:1 with an area, so this is the area's name),station_configuration— curated to identity fields only; camera/zone layout, notification config, and inference/OCR tuning are internal implementation detail, not publishedunits: Array of inspected unitsid,type("pallet"or"product"),pallet_identifier,created_at/updated_atquality_sessions: Array of inspection sessions for this unitid,created_at/updated_atimages: Array of captured imagesside: Image side ("front","back","left","right","top", etc.)media: Array — see Media Resolution under Shipment Unit Completeddamages:id,type,type_id,category,category_type,description,damaged_box_qty
issues: Session-level issues, same envelope as Shipment Unit Completed — all resolved by this point, since a completed shipment has nothing left open. Includesresolved_by_user(id/first_name/last_name, ornull) andreason(only set whenstatuswas left"unresolved")
line_items:id(this line item's own id — theshipment_data_idthatoverage/shortageissues reference),product_ref_id(internal catalog product id, ornullif unlinked),product_id,name,sku(from the catalog product when linked, otherwise the shipment's own record),line_no,is_edited,expected_quantity,actual_quantity,additional_data,created_at/updated_at,thumbnail_embedding_id(opaque internal reference, not independently fetchable),issueissue: This line item's own currently-openoverage/shortageissue — a quick way to tell which line items are miscounted without cross-referencing every unit's session issues, sinceoverage/shortageare the only issue types actually scoped to a line item (unidentified_product/wrong_product/damage/wrong_load/no_identifiersare always unit/session-scoped and never appear here, even once resolved to this line item).id,issue_type,status(always"open"here),shipment_data_id,metadata,created_at/updated_at/resolved_at(alwaysnull, since only open issues are surfaced here) — a separate query path from Shipment Overage-Shortage Detected'sissue, so close but not byte-identical: nodescriptionhere.nullonce resolved, or if the shipment completed with the issue left"unresolved"rather than actively resolved — this field only ever reflects a currently open aggregate issue
pallet_identifiers,additional_data: passthrough shipment-level data, present if set
When Published:
- After a human submits the Final Count Page (
/final), once final line-item counts are written - Or, for automated stations with
skip_review(or without product counting enabled), immediately on device-driven completion
Integration: Shipment Canceled
Topic: arvist/integration/shipment/canceled
Published when a whole shipment is canceled, or a single unit is removed from an in-progress
shipment. Differentiated by unit_id.
Message Structure:
{
"shipment_id": 456,
"shipment_key": "SHP-2026-001",
"site_id": 5,
"wms_site_id": 42,
"type": "inbound",
"status": "pending",
"order_numbers": ["PO-12345"],
"unit_id": "unit-001",
"progress": {
"current_count": 5,
"total_count": 10,
"product_counts": [
{
"product_id": "PROD-123",
"sku": "WDG-A-001",
"name": "Widget A",
"current_quantity": 40
}
]
}
}
Fields:
shipment_id,shipment_key,site_id,wms_site_id,type,order_numbers: same meaning as in Shipment Unit Completedstatus: The shipment's status after this action —- Whole-shipment cancel:
"pending"(reset for re-inspection), or"deleted"(a duplicate shipment created for a repeat inspection is removed entirely) - Unit removal: the shipment's current status, unaffected by removing one unit
- Whole-shipment cancel:
unit_id: The removed unit's id, ornullfor a whole-shipment cancelprogress: Corrected shipment progress after a unit removal, ornullfor a whole-shipment cancelcurrent_count/total_count: Units processed so far vs. expected totalproduct_counts: Running per-product tally for the whole shipment —product_id,sku,name,current_quantity
When Published:
- Whole-shipment cancel: when a user cancels the shipment from the ⋮ menu
- Unit removal: when a user removes a unit from the Summary page
Open issues on a removed unit: removing a unit does not resolve or otherwise touch any of
that unit's own open session issues (wrong_product, unidentified_product, damage, etc.) —
they're left status: "open" in Arvist with no matching issue-resolved ever published for
them. canceled is the authoritative signal here: once you receive it for a unit_id, treat
every other fact you were tracking for that unit (including any still-open issues) as moot —
don't wait on an issue-resolved that isn't coming.
Integration: Shipment Paused
Topic: arvist/integration/shipment/paused
Published when an in-progress shipment inspection is paused.
Message Structure:
{
"shipment_id": 456,
"shipment_key": "SHP-2026-001",
"site_id": 5,
"wms_site_id": 42,
"type": "inbound",
"order_numbers": ["PO-12345"],
"reason": "manual"
}
Fields:
shipment_id,shipment_key,site_id,wms_site_id,type,order_numbers: same meaning as in Shipment Unit Completedreason:"manual"(paused by a user) or"idle_timeout"(auto-paused after no activity)
When Published:
- When a user pauses a shipment, or the idle-timeout sweep auto-pauses one
Integration: Shipment Resumed
Topic: arvist/integration/shipment/resumed
Published when a paused shipment resumes, or a completed shipment is reopened.
Message Structure:
{
"shipment_id": 456,
"shipment_key": "SHP-2026-001",
"site_id": 5,
"wms_site_id": 42,
"type": "inbound",
"order_numbers": ["PO-12345"],
"reason": "resumed",
"progress": {
"current_count": 5,
"total_count": 10
}
}
Fields:
shipment_id,shipment_key,site_id,wms_site_id,type,order_numbers: same meaning as in Shipment Unit Completedreason:"resumed"(a paused shipment continues, existing counts preserved) or"reopened"(a completed shipment is reopened, counts reset to 0 for a fresh recount)progress:current_count/total_countat the moment of resuming, ornull(alwaysnullfor"reopened", since counts are being reset)
When Published:
- When a user resumes a paused shipment, or reopens a completed one
Arvist Notifications
Topic: arvist/notifications/#
The notifications service subscribes to this topic pattern to process various types of notifications. Multiple notification types are supported, including safetyAlert, shippingMismatch, shippingDamage, userActionLink, adminErrorLog, and custom.
Custom Notification Type
Topic: arvist/notifications (or any subtopic under this prefix)
The custom notification type provides flexibility for sending arbitrary notifications with custom subject, content, and attachments.
Message Structure:
{
"notificationType": "custom",
"targets": {
"email": ["user@example.com"],
"sms": ["+1234567890"],
"slack": ["channel-id"]
},
"data": {
"subject": "Daily Report",
"content": "Please find attached the daily report.",
"attachments": [
{
"filename": "report.csv",
"buffer": "base64-encoded-file-content",
"contentType": "text/csv"
}
]
},
"correlationId": "unique-tracking-id",
"metadata": {
"source": "reporting-service",
"priority": "normal"
}
}
Fields:
notificationType: Must be"custom"for custom notificationstargets: Object specifying notification recipientsemail: Array of email addresses (optional)sms: Array of phone numbers in E.164 format (optional)slack: Array of Slack channel IDs (optional)
data: Custom notification contentsubject: Email subject line (optional, defaults to "Custom Notification")content: Notification body content (string or HTML string)attachments: Array of file attachments (optional)filename: Name of the attached file (optional)buffer: Base64-encoded file content or raw Buffer (optional)mediaUrl: URL to remote file instead of buffer (optional)contentType: MIME type of the attachment (e.g.,"text/csv","application/pdf")
correlationId: Optional tracking identifier for logging and correlationmetadata: Optional additional metadata (any key-value pairs)
When Published:
- By external services or custom integrations that need to send notifications
- For scheduled reports, alerts, or custom workflows
- When flexible notification content is required beyond predefined templates
Notes:
- At least one target type must be specified (email, SMS, or Slack)
- Attachments can be provided via
buffer(base64-encoded) ormediaUrl(URL to file) - HTML content is supported in the
contentfield for rich email formatting - The notification service automatically routes messages to the appropriate channels based on targets