Pick Service Request ******************** This type of service request is used for picking inventory out of the butler system. Pick Request Lifecycle ====================== .. todo:: Have to write this. Create a Pick Request ===================== .. todo:: Write about expectation format .. http:post:: /api-gateway/sr-service/platform-srms/service-request To create a new pick service request, a :ref:`Service Request Object` should be sent in a HTTP POST request to the above endpoint. The newly created or modified object will be returned in the response if the request is successful. Pick requests should have the :js:data:`type` parameter set to ``PICK``. :reqheader Content-Type: the request's content-type has to be passed in this header :reqheader Accept: the response content type depends on :mailheader:`Accept` header :reqheader Authorization: OAuth token to authenticate :statuscode 200: No error :statuscode 400: Bad data .. container:: toggle .. container:: header **Example request**: .. sourcecode:: http POST /api-gateway/sr-service/platform-srms/service-request HTTP/1.1 Host: example.com Content-Type: application/json Accept: application/json, text/javascript .. literalinclude:: pick/create_pick_request.json :language: JSON .. container:: toggle .. container:: header **Example Response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 .. literalinclude:: pick/create_pick_response.json :language: JSON Cancel a Pick Request ===================== .. http:post:: /api-gateway/sr-service/platform-srms/service-request/cancel A Pick request can only be modified or cancelled before the ``cancellation_locked`` state. Please consult the :ref:`Pick Request Lifecycle` for details. .. todo:: Find out more details about partial cancellation :reqheader Content-Type: the request's content-type has to be passed in this header :reqheader Accept: the response content type depends on :mailheader:`Accept` header :reqheader Authorization: OAuth token to authenticate :