Skip to content
Developersskuflo.iov1Changelog

Change an order: its numbers, dates and note, and its lines

PATCH/v1/orders/{id}Factory API keyBase URL api.skuflo.io

lines, when sent, is the whole new list: send a line's id to keep or change it, leave id out to add one, and leave a line out to remove it. A line with a scanned piece keeps its SKU, colour and quantity. A line whose SKU, colour or quantity changes gets new pieces and barcodes, so print its labels again (labels_replaced says how many printed labels were replaced).

Try it now

Path parameters#

NameTypeDescription
idrequiredstring (uuid)·

Body parameters#

NameTypeDescription
order_nooptionalstring, max 60·
po_numberoptionalstring, max 60, nullable·
postcodeoptionalstring, max 12, nullable·
needed_byoptionalstring, nullable·
noteoptionalstring, max 500, nullable·
production_dateoptionalstring·
linesoptionalobject[]·
idoptionalstring (uuid)An existing line to keep or change; leave out for a new line
skurequiredstring·
qtyrequiredinteger·
colouroptionalstring, nullable·
descriptionoptionalstring, nullable·
product_typeoptionalstring, nullable·
piecesoptionalinteger, nullableRetailers: how many pieces one unit is, for a SKU not on the manufacturer's product list

Responses#

StatusMeaning
200Success. An example body is in the column on the right.

Other errors#

StatusMeaning
401No key, or the key is not recognised.
402billing_required. Reading always works, but this is a write and stops once a trial ends or a plan is cancelled.
403The key is valid but its role cannot do this.
404Nothing with that id in your factory.
422The body failed validation. The response lists every problem at once.
429More than 600 requests a minute. Wait retry-after seconds.