Perform Pick Verification
POST /api/v2/orders/{orderIdentifier}/pick
This endpoint is used to perform lens and/or frame pick verification for a particular order
Accepts
An order identifier, which can be the order number, tray number, or purchase order number
This order can be retrieved using
72544
,337178
, orExample
Tray numbers can only be used to look up active orders
If lookup is done by po number then you must be using unique values in this field
A JSON object representing the pick information. If Partial Picking is turned off then all lens data must be provided in the same call, and all frame data must be present in the same call (so rtOPC and ltOPC must be sent at the same time, and framePartSKU and frameSideShieldSKU must be sent at the same time, but rtOPC/ltOPC do not need to be sent at the same time as the frame info)
Property | Description |
rtOPC | string |
ltOPC | string |
frameUPC | string |
frameSKU | string |
framePartSKU | string |
frameSideShieldSKU | string |
misc1SKU | string |
misc2SKU | string |
Returns
Success
On a successful request the new pick state for the order will be returned
{
"orderNumber": "228844",
"trayNumber": "45478",
"poNumber": "XYZ123",
"rtLensPicked": true,
"ltLensPicked": true,
"framePicked": false,
"framePartPicked": false,
"frameSideShieldPicked": false,
"misc1Picked": false,
"misc2Picked": false,
"warehouse": "DEFAULT"
}
Property | Description |
orderNumber | string The identifier for the order |
trayNumber | string The tray number the order is attached to |
poNumber | string Job reference (PO NUM field) |
rtLensPicked | boolean True if lens pick verification has been performed for the right lens for this order |
ltLensPicked | boolean True if lens pick verification has been performed for the left lens for this order |
framePicked | boolean True if frame pick verification has been performed for the frame for this order |
framePartPicked | boolean True if frame pick verification has been performed for the frame part for this order |
frameSideShieldPicked | boolean True if frame pick verification has been performed for the side shield for this order |
misc1Picked | boolean True if frame pick verification has been performed for the first miscellaneous item for this order |
misc2Picked | boolean True if frame pick verification has been performed for the second miscellaneous itefor this order |
warehouse | string The warehouse the order is associated with. Currently always “DEFAULT”. |
Error
If the order number does not exist in Rx-Universe an HTTP 404 code will be returned with an error
{ "error": "No record found", "details": [ "Provided: bad order" ]
If the order is completed an HTTP 400 code will be returned with an error
{ "error": "Pick Rejected", "details": [ "Order already completed" ] }
If the order is not valid an HTTP 400 code will be returned with an error
If the order is pending completion an HTTP 400 code will be returned with an error
If the order is flagged for deletion an HTTP 400 code will be returned with an error
If the order is on hold an HTTP 400 code will be returned with an error
If the order is a stock order an HTTP 400 code will be returned with an error
If no pick information is provided an HTTP 400 code will be returned with an error
If pick information is provided for an item the order does not require an HTTP 400 code will be returned with an error (the details will have all that apply)
If partial picking is turned off and required pick information is missing an HTTP 400 code will be returned with an error (the details will have all that apply)
If one or more provided pick items are incorrect an HTTP 400 code will be returned with an error (the details will have all that apply)