# Ship Application

**URL:** <https://discuss.tryton.org/t/ship-application/291>\
**Category:** Feature\
**Tags:** stock\
**Created:** [February 8, 2017, 1:44pm UTC](https://discuss.tryton.org/t/ship-application/291 "2017-02-08T13:44:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 8, 2017, 1:44pm UTC](https://discuss.tryton.org/t/ship-application/291/1 "2017-02-08T13:44:45Z")

</div>

Continuing the discussion from [Pack Application](https://discuss.tryton.org/t/pack-application/273/4):

## Rational

Once a shipment is packed, we need to ship it (mark as done). At this state, there is the need to print the shipping label from the module `stock_package_shipping`.

## Proposal

The SPA could be extended to have a _Ship_ menu entry.

## Scenario

- The user enters the shipment _Number_ (or pick one if many matches). The available shipments are those in _packed_ state and that are not assigned to any other employee.
- The user requests the creation of the label using a button on the shipment.
- The user fetch the label for each root packages.
- The user set the shipment to done.

## Implementation

We must create some API’s:

- `POST /stock_package_shipping/shipments/out/search`  
To search shipments:
  - by number and warehouse
  - by warehouse and assigned to employee

- `GET /stock_package_shipping/shipment/out/<int:shipment>`  
To retrieve the data of a shipment. It should contain everything needed for the application.
- `PUT /stock_package_shipping/shipment/out/<int:shipment>`  
To send the modification done on the shipment:
  - It should allow to assign it to the employee
  - It should allow to ship (do) the shipment.

- `POST /stock_package_shipping/shipment/out/<int:shipment>/create_shipping`  
To run the create shipping wizard on the shipment.
- `GET /stock_package_shipping/package/<int:package>/label`  
To retrieve the label data.

> **[Ship Application (#6254) · Issues · Tryton / Tryton · GitLab](https://foss.heptapod.net/tryton/tryton/-/issues/6254)**
>
> Following: https://discuss.tryton.org/t/ship-application/291
