Skip to main content

LineItem

Version: v6.0.0

Supporting model

A request/response or nested model — not a stored DynamoDB entity.

Overview

LineItem

Fields

FieldTypeRequiredDefaultDescription
line_item_idstr
part_idstr
tag_idstr
stock_idstr
vehicle_idstr
part_typestr
part_type_idstr
descriptionstr
quantityint
unit_pricefloat
statusStatusEnum (DRAFT, TODO, IN_PROGRESS, BLOCKED, COMPLETED, CANCELLED)DRAFTStatus
departmentstr
department_idstr
locationstr
location_idstr
usersList[User]
notestr
blocked_reasonstr
blocked_reason_idstr
blocked_reason_commentstr
item_typeItemTypeEnum (PART, OTHER)ItemType

Embedded models

Models embedded in the fields above — shown inline; they have no separate page.

User — v2.0.0
FieldTypeRequiredDefaultDescription
userstr
user_idstr
departmentstr
department_idstr

Change history

  • v2.0.0 · 2025-07-12 · Cian (shared account) · Removed field stage (breaking).; Removed field stage_id (breaking).; Added required field department.; Added required field department_id. (3713e7962)
  • v1.0.0 · 2025-07-11 · Cian (shared account) · Initial version. (abd0d451a)

APIs / Triggers

TriggerEndpoint / SourceDetailHandler
APIPOST /newworkOrder/pinnaclesrc/pinnacle/work_order_handle_create.py
APIPUT /newworkOrder/updateStatussrc/work_order_status_update.py
APIPUT /newworkOrder/lineItemReplacesrc/work_order_replace_line_item.py
APIPUT /newworkOrder/src/work_order_update.py
EventEventBridgeContactCreatedFromWebShop, ContactCreatedFromTradeMe, ContactCreatedFromEbay, ContactCreatedFromTuiPart, ContactCreatedFromWallabyPartsrc/handle/work_order_handle_sales_channel_webhook.py

Change history

v6.0.0 · 2025-07-12 · Cian (shared account) · 3713e7962

fx

  • Removed field stage (breaking).
  • Removed field stage_id (breaking).
  • Added required field department.
  • Added required field department_id.
v5.0.0 · 2025-07-11 · Cian (shared account) · abd0d451a

fx

  • Removed field item_name (breaking).
  • Removed field location_name (breaking).
  • Added optional field blocked_reason.
  • Added optional field blocked_reason_comment.
  • Added optional field blocked_reason_id.
  • Added optional field location.
  • Added optional field note.
  • Added optional field part_type.
  • Added optional field part_type_id.
  • Added required field stage.
  • Added required field stage_id.
  • Added optional field status.
  • Added optional field stock_id.
  • Added optional field users.
  • Added optional field vehicle_id.
  • Field description type changed: Optional[str] → str (breaking).
  • Field description became required (breaking).
  • Field item_type type changed: str → ItemTypeEnum (breaking).
  • Field item_type enum value OTHER added.
  • Field item_type enum value PART added.
  • Field quantity default changed: 1 → None.
v4.2.0 · 2025-05-05 · Cian (shared account) · 8b78eddb7

fx

  • Added required field item_type.
v4.1.0 · 2025-04-11 · Cian (shared account) · 706dfc159

migration scripts

  • Added optional field location_id.
  • Added optional field location_name.
v4.0.0 · 2025-04-03 · Olaniyi Ajayi · 8889db892

ebay fx

  • Field part_id type changed: str → Optional[str] (breaking).
  • Field part_id became optional.
  • Field tag_id type changed: str → Optional[str] (breaking).
  • Field tag_id became optional.
  • Field unit_price type changed: float → Optional[float] (breaking).
  • Field unit_price became optional.
v3.0.0 · 2025-03-29 · Olaniyi Ajayi · f703b906b

quote fx

  • Field part_id type changed: Optional[str] → str (breaking).
  • Field part_id became required (breaking).
  • Field tag_id type changed: Optional[str] → str (breaking).
  • Field tag_id became required (breaking).
  • Field unit_price type changed: Optional[float] → float (breaking).
  • Field unit_price became required (breaking).
v2.0.0 · 2025-03-29 · Cian (shared account) · fd4f0f8b9

wo

  • Field part_id type changed: str → Optional[str] (breaking).
  • Field part_id became optional.
  • Field tag_id type changed: str → Optional[str] (breaking).
  • Field tag_id became optional.
  • Field unit_price type changed: float → Optional[float] (breaking).
  • Field unit_price became optional.
v1.0.0 · 2025-03-17 · Olaniyi Ajayi · 0beb2163a

updated wo and qs

  • Initial version.

Generated from dismantly-backend/Microservices/WorkOrder/dependencies/models.py. Do not edit by hand.

Models last synced: 2026-06-23 13:21 UTC