post
https://api.katanamrp.com/v1/serial_numbers
Partly deprecated. Assigning serial numbers to a resource (body withresource_type) will be removed in May 2027. Create serial numbers withvariant_id, then link them to the document with itstraceability.
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_EXISTSwhen any of the numbers already exists for the variant.detailslists
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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…