Create serial numbers, or assign serial numbers to a resource

❗

Partly deprecated. Assigning serial numbers to a resource (body with resource_type) will be removed in May 2027. Create serial numbers with variant_id, then link them to the document with its traceability.

The body shape decides what the call does.

Create serial numbers (body with variant_id): creates 1 to 1000 serial numbers for one serial-tracked
variant and returns them as { data: SerialNumber[] }. Use the returned ids in traceability on documents.
The create is all or nothing:

  • 422 SERIAL_NUMBER_ALREADY_EXISTS when any of the numbers already exists for the variant. details lists
    each existing number and its id: [{ serial_number, existing_serial_number_id }]. Nothing is created.
  • 422 when a number breaks the format, a number is in the request twice, the variant is unknown,
    or the variant is not serial tracked. Nothing is created.

Assign serial numbers to a resource (deprecated) (body with resource_type): assigns the provided list of serial numbers
to the specified resource.
For ManufacturingOrder, PurchaseOrderRow
and StockAdjustmentRow, serial numbers that don't exist yet are created.
For SalesOrderRow and StockTransferRow,
the serial numbers must already exist.
For Production, the serial numbers must already be assigned to the production's
manufacturing order.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Serial numbers to create, or serial numbers to assign to a resource

integer
required

The serial-tracked product variant the serial numbers belong to.

serial_numbers
array of strings
required
length between 1 and 1000

The serial numbers to create. Each may appear once.

serial_numbers*

Uppercase letters, digits and the characters -, _ and /, at most 32 characters (^[A-Z0-9-_/]+$). Lowercase is refused, not converted.

date-time | null

Expiration date set on every created serial number.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Choose an example:
application/json