object Lot

Fields

FieldTypeDescription
idString

Public API ID for this identifiable.

legacy_idBigInt

Numeric legacy ID for this identifiable; use only where legacy IDs are required.

account_idString

Public API account ID that identifies the related record.

po_idStringDEPRECATED An expiration lot could have more than one purchase order associated. Check purchase_orders field.

Public API PO ID that identifies the related record. Deprecated; see the deprecation reason for current behavior.

nameString

Human-readable name for this lot.

skuString

SKU. SKU matching is case-insensitive and ignores surrounding whitespace.

created_atISODateTime

Created at as an ISO-8601 datetime, returned in UTC unless otherwise noted.

updated_atISODateTime

Updated at as an ISO-8601 datetime, returned in UTC unless otherwise noted.

expires_atISODateTime

Expires at as an ISO-8601 datetime, returned in UTC unless otherwise noted.

received_atISODateTime

Received at as an ISO-8601 datetime, returned in UTC unless otherwise noted.

is_activeBoolean

Whether this lot is active.

locationsLocationConnection

List of locations associated with this lot.

ArgumentTypeRequiredDefaultDescription
sortStringNo
beforeStringNo
afterStringNo
firstIntNo
lastIntNo
purchase_ordersPurchaseOrderConnection

List of purchase orders associated with this lot.

ArgumentTypeRequiredDefaultDescription
sortStringNo
beforeStringNo
afterStringNo
firstIntNo
lastIntNo

Referenced By

Example

{
  "id": "UmVjb3JkOjEyMzQ=",
  "legacy_id": 1234,
  "account_id": "QWNjb3VudDoxMjM0",
  "po_id": "TG90OjEyMzQ=",
  "name": "LOT-2026-001",
  "sku": "BLUE-TEE-M",
  "created_at": "2026-07-09T15:30:00Z",
  "updated_at": "2026-07-09T15:30:00Z",
  "expires_at": "2026-07-09T15:30:00Z",
  "received_at": "2026-07-09T15:30:00Z",
  "is_active": true,
  "locations": [{id: "TG9jYXRpb246MTIzNA==", name: "A01-01-01"}],
  "purchase_orders": [{id: "T3JkZXI6MTIzNA==", order_number: "SO-100045"}]
}