Skip to content
Developersskuflo.iov1Changelog

Receive a returned piece by hand, set its condition, mark it repaired, or give it its outcome

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

receive: true with a condition receives an outstanding piece without a scan. condition: new, needs_repair, repaired or unrepairable (repaired is only for a needs repair piece). outcome: back_in_stock (needs location, a stock bay; not for a needs repair or unrepairable piece) or written_off.

Try it now

Path parameters#

NameTypeDescription
idrequiredstring (uuid)·

Body parameters#

NameTypeDescription
receiveoptionalboolean·
conditionoptionalstring·
One of "new", "needs_repair", "repaired", "unrepairable"
condition_noteoptionalstring, max 500·
outcomeoptionalstring·
One of "back_in_stock", "written_off"
locationoptionalstring, max 8·

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.