---
title: "Create a serial number"
method: POST
path: "/serialnumbers"
tags: ["Serial Numbers"]
---

# Create a serial number

`POST /serialnumbers`

## Request

- Base URL: `https://example.retail.lightspeed.app/api/2026-10`
- URL: `https://example.retail.lightspeed.app/api/2026-10/serialnumbers`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lightspeedhq/apis/lightspeedhq/docs/serialnumbers/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a serial number.

🔒 Requires: `serial_numbers:write` scope

## Request body

- SerialNumberRequest
  - `code` string, required: The actual serial number value.
  - `outlet_id` string, uuid, required: The ID of the outlet where the serial number is located.
  - `product_id` string, uuid, required: The ID of the product associated with the serial number.

## Response `201`

The serial number

- SerialNumberResponse
  - `data` SerialNumber
    - `code` string: The actual serial number value.
    - `id` string: Auto-generated object ID.
    - `line_item_id` string, uuid, nullable: The ID of the sale line item where this serial number was sold, or null.
    - `outlet_id` string, uuid: The ID of the outlet where the serial number is located.
    - `product_id` string, uuid: The ID of the product associated with the serial number.
    - `sale_id` string, uuid, nullable: The ID of the sale where this serial number was sold, or null.
    - `version` integer: Auto-incrementing object version number.

---

[API](https://skmtc.dev/lightspeedhq/apis/lightspeedhq.md) - [All operations](https://skmtc.dev/lightspeedhq/apis/lightspeedhq/llms.txt) - [OpenAPI document](https://skmtc.dev/lightspeedhq/apis/lightspeedhq/revisions/463fb1f94056?raw)
