DataMagik icon

DataMagik

DataMagik Manufacturing & Document Automation API

Traceability → Preview Serial

AI-generated

Summary

Previews the next serial number for a traceability series.

Inputs

  • seriesId (required) — The ID of the traceability series
  • contextData — Additional context data for serial generation (accepted but not used by this operation)

Output shape

API response from the DataMagik traceability preview endpoint (typically includes the previewed serial number and related metadata)

Returns the JSON response from a GET request to /api/traceability/series/{seriesId}/preview

Examples

Example 1: Preview next serial for series 'SERIES-123' with part number context

Set seriesId to 'SERIES-123' and contextData to {'part_number': 'ABC-456'} (contextData is ignored but can be provided)

Discussion