Skip to main content
POST
Link a serial to a lot for traceability

Authorizations

Authorization
string
header
required

API key issued per entity via Settings > Developers > API Keys. Each key carries scopes (e.g. orders:read, products:write). Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.

Path Parameters

id
string<uuid>
required

Body

application/json
lot_id
string<uuid>
required

Response

Linked serial

A serial-tracked unit of a product. Created in bulk by generateSerials at purchase-order receipt (status available) and walks the lifecycle available -> allocated -> sold -> returned -> dispositioned. The disposition action records a terminal outcome (restock, write_off, return_to_vendor) and the link-lot action attaches the serial to a lot for traceability. Scope: serials:read / serials:write / serials:delete. Rule 23 SSOT: status is written only by canonical generateSerials / allocateSerial / consumeSerial / receiveSerialReturn / dispositionSerial.

id
string<uuid>
read-only
object
string
Example:

"serial"

entity_id
string<uuid>
read-only
product_id
string<uuid>
serial_number
string

Unique-per-product serial value. 1..255 chars.

status
enum<string>

Lifecycle state. See enum serial_status.

Available options:
available,
allocated,
sold,
returned,
dispositioned
Example:

"available"

location_id
string<uuid> | null

Layer 4 location scope; serials are warehouse-bound.

order_id
string<uuid> | null

Current allocation/sale order, if any.

order_item_id
string<uuid> | null
package_id
string<uuid> | null

Current outbound package, if any.

package_item_id
string<uuid> | null
lot_id
string<uuid> | null

Linked lot for traceability; null if not lot-tracked.

lot_number
string | null

Convenience copy of lots.lot_code at link time; lot_id is the FK.

expiry_date
string<date> | null
warranty_start_date
string<date-time> | null
warranty_end_date
string<date-time> | null
extended_warranty_end_date
string<date-time> | null
warranty_status
string | null

active, expired, voided.

received_at
string<date-time> | null
read-only
sold_at
string<date-time> | null
read-only
returned_at
string<date-time> | null
read-only
last_scanned_at
string<date-time> | null
read-only
last_order_id
string<uuid> | null
read-only

Previous allocation; preserved through return cycles.

last_order_item_id
string<uuid> | null
read-only
last_package_id
string<uuid> | null
read-only
last_package_item_id
string<uuid> | null
read-only
notes
string | null
created_at
string<date-time>
read-only