Register a tote by its license plate
PUT/totes/:lpn
Commission a reusable tote (ADR 0054): its license plate is its permanent label, printed once (pre-printed by the tote supplier, or by the floor client from the LPN as CODE128); this service mints no LPN and prints no label. Idempotent by method: the first call creates the tote in no bin and answers 201, a repeat answers 200 with the tote as it is now. One license-plate namespace with the sealed cases (ADR 0045): a plate that already names a sealed case is 409 license-plate-taken. Raises ToteRegistered when the tote is created.
Request
Responses
- 200
- 201
- 400
- 404
- 409
- 500
The tote already existed; it is answered as it is now.
The tote was registered.
The lpn is longer than 64 characters (invalid-lpn).
No route matches: the lpn holds a character outside [A-Za-z0-9._-] (route-not-found). No tote is created.
The license plate already names a sealed case (license-plate-taken).
An unexpected internal error occurred.