Retrieve Item Lot Default
Beta/v1/catalog/items/{id}/lot-defaultThis endpoint is idempotent. Learn more
Returns the lot this item is made in — how many, counted in what.
A lot is a doff, a pallet, a batch: the quantity production is issued in. The unit is what makes it meaningful, since 60 pairs and 60 eaches are different lots, so quantity should never be read without unit.
Resolved through the same chain the production schedule uses, most specific first: a per-item override, then the item's own product line, then the product lines of the finished goods it becomes, then the account-wide default. source names which rule applied. Intermediate items like greige are not sold and have no product line of their own, which is why they inherit from what they become.
quantity is 0 when nothing in the chain supplies a lot. That means the item has no lot convention, not that its lot is zero.
idstringItem ID.
include[]optional arrayenumValues:unitSub-objects to expand in the response. When omitted, sub-objects are returned as null.
objectstringenumValues:item_lot_defaultResource type identifier.
itementitynullableThe item the lot was resolved for.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
quantitynumberUnits in one lot.
0 means the item has no lot convention, not that its lot is zero.
The unit the lot is counted in. Expandable.
idstringUnit ID.
objectstringenumValues:unitResource type identifier.
namestringDisplay name of the unit (e.g. "Gram", "Kilogram").
abbreviationstringShort abbreviation for the unit (e.g. "g", "kg").
typestringenumValues:currencyquantitytimePhysical dimension the unit measures, such as mass, volume, or currency.
A unit can only be converted to another unit of the same dimension. The quantity dimension is for discrete countable items rather than a physical measure.
ratio_numeratorstring (decimal)Conversion ratio numerator relative to the base unit in the same dimension.
ratio_denominatorstring (decimal)Conversion ratio denominator relative to the base unit in the same dimension.
Cannot be zero.
offset_numeratorstring (decimal)Conversion offset numerator, used for temperature-like conversions.
Zero for most unit types.
offset_denominatorstring (decimal)Conversion offset denominator.
Typically 1. Cannot be zero.
is_base_unitbooleanWhether this is the base unit for its dimension.
Conversion ratios are relative to this unit. Base units are platform-defined; account-created units always have this set to false.
ownerownernullableOwner of this resource.
null in this endpoint.created_atstring (date-time)When this unit was created.
updated_atstring (date-time)When this unit was last updated.
sourcestringenumValues:item_overrideproduct_linedownstream_product_lineWhich rule in the chain produced this lot.
item_override: a lot size set on the item itself.product_line: the convention of the line the item sells under.downstream_product_line: inherited from the finished goods this item becomes, for intermediates that are not themselves sold.account_default: the account-wide fallback.
product_lineentitynullableThe product line the convention came from.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
Responses
Successful response for Retrieve Item Lot Default