Update Pick Line
Beta/v1/operations/picks/{pick_id}/lines/{id}Idempotent with Idempotency-Key header. Learn more
Updates a pick line's picked quantity.
Use this to record a short or partial pick; Pick Pick Line fills in the full outstanding quantity instead.
pick_idstringPick ID.
idstringPick line ID.
include[]optional arrayenumValues:sales_order_linesales_order_line.productquantitySub-objects to expand in the response. When omitted, sub-objects are returned as null.
quantity_valueoptional string (decimal)New picked quantity for the line, as a decimal string read in the unit the sales order line was sold in, stored as given and not capped at the ordered quantity.
Must not be negative. Pulling more than was ordered is a real floor event and is kept as recorded; pulling a negative amount is not.
idstringPick line ID.
objectstringenumValues:pick_lineResource type identifier.
The item this line picks, named by the originating sales order line and returned as it stands now rather than as it was when the order was placed.
quantityquantityExpandablenullableQuantity actually picked for this line. A value of 0 means nothing has been picked yet.
idstringQuantity ID.
objectstringenumValues:quantityResource type identifier.
valuestring (decimal)Raw decimal value of the quantity, as a string to preserve precision.
This is the unformatted machine value; see display_value for the human-readable rendering with unit and thousands separators.
display_valuestringFormatted value with unit abbreviation (e.g. "$1,234.56" or "100 kg").
Unit of measure for this value (e.g. a currency, mass, or count unit).
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:currencyquantitytimeThe dimension this 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)Numerator of the ratio that converts a quantity in this unit into the dimension's base unit.
A quantity is converted with value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator), so a kilogram in a gram-based dimension has a numerator of 1000 and a denominator of 1.
ratio_denominatorstring (decimal)Denominator of the ratio that converts a quantity in this unit into the dimension's base unit.
Cannot be zero.
offset_numeratorstring (decimal)Numerator of the conversion offset, applied after the ratio for scales that do not share a zero point, such as temperature.
Zero for units that convert by ratio alone.
offset_denominatorstring (decimal)Denominator of the conversion offset applied after the ratio.
Never zero; a unit with no offset carries a numerator of 0 over a denominator of 1.
is_base_unitbooleanWhether this is the base unit for its dimension.
Every other unit's conversion ratio is expressed relative to the base unit. Base units are platform-defined; units created through the API are never base units.
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.
ordered_quantityquantityExpandablenullableQuantity requested by the originating sales order line for this pick line.
idstringQuantity ID.
objectstringenumValues:quantityResource type identifier.
valuestring (decimal)Raw decimal value of the quantity, as a string to preserve precision.
This is the unformatted machine value; see display_value for the human-readable rendering with unit and thousands separators.
display_valuestringFormatted value with unit abbreviation (e.g. "$1,234.56" or "100 kg").
Unit of measure for this value (e.g. a currency, mass, or count unit).
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:currencyquantitytimeThe dimension this 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)Numerator of the ratio that converts a quantity in this unit into the dimension's base unit.
A quantity is converted with value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator), so a kilogram in a gram-based dimension has a numerator of 1000 and a denominator of 1.
ratio_denominatorstring (decimal)Denominator of the ratio that converts a quantity in this unit into the dimension's base unit.
Cannot be zero.
offset_numeratorstring (decimal)Numerator of the conversion offset, applied after the ratio for scales that do not share a zero point, such as temperature.
Zero for units that convert by ratio alone.
offset_denominatorstring (decimal)Denominator of the conversion offset applied after the ratio.
Never zero; a unit with no offset carries a numerator of 0 over a denominator of 1.
is_base_unitbooleanWhether this is the base unit for its dimension.
Every other unit's conversion ratio is expressed relative to the base unit. Base units are platform-defined; units created through the API are never base units.
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.
sales_order_linesales_order_lineExpandablenullableThe sales order line this pick line fulfills.
idstringSales order line ID.
objectstringenumValues:sales_order_lineResource type identifier.
line_item_numberintegerPosition of the line on the order.
Assigned automatically in sequence, starting at 1. Product lines are numbered first and the automatically generated freight and discount lines always sit at the bottom; removing a line renumbers the rest so the sequence stays contiguous.
product_skustringSKU recorded on this line.
Taken from the product unless the line supplies its own, and editable afterwards, so it preserves what was sold even if the product's SKU later changes.
product_descriptionstringnullableDescription recorded on this line, taken from the product unless the line supplies its own.
The item this line sells, identified by the SKU recorded when the line was created.
null in this endpoint.The product being sold on this line.
The product's type tells you what kind of line this is: the freight and discount lines an order generates for itself reference the account's built-in shipping and credit products, so their type is shipping or credit rather than sale.
idstringProduct ID.
objectstringenumValues:productResource type identifier.
typestringenumValues:saleserviceshippingProduct type code, which determines how the product behaves on orders and invoices.
sale: a standard sellable product.service: a non-physical service line, such as labor or installation.shipping: a shipping charge applied to an order.credit: a credit applied against an order or invoice.return: a returned product (RMA).tax: a tax line.
portal_visibilitystringenumValues:visiblehiddenWhether the product is shown to buyers in the customer portal.
visible: buyers can see and order the product in the portal.hidden: the product is concealed from the portal but remains usable internally.
Visibility alone is not enough to expose a product: a buyer only sees it if their account has also been granted access to the product's product line.
The product line this product is assigned to, if any.
Customer accounts are granted access to whole product lines, so this assignment is what decides which buyers can see and order the product. A product with no product line is never visible in the customer portal. The line also supplies the default commission and freight policies for the product.
null in this endpoint.The inventory item backing this product, which holds its SKU, description, pricing, and attributes.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
quantity_orderedquantitynullableQuantity ordered.
null in this endpoint.unit_priceratenullablePrice charged per unit.
null in this endpoint.unit_costratenullableInternal cost per unit.
Reflects what the business pays for the item, not what the customer is charged, and is used to derive line profitability.
null in this endpoint.totalssales_order_totalsnullableDerived monetary totals for this line.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
packed_atstring (date-time)nullableTimestamp when the line was packed.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Update Pick Line