# Stock transfer between warehouses

Path: `/guide/stock-transfer`

A stock transfer starts with a **Sales Order** (`type = warehouse_movement`) in the source
warehouse. Pulpo automatically creates a matching **Purchase Order**
(`type = warehouse_movement`) in the destination warehouse (`destination_warehouse_id` on
the Sales Order), carrying the information needed for the incoming process there.

**Flow: One transfer = an outgoing SO in the source + an auto-created incoming PO in the destination.**

1. **SO (warehouse_movement)** — Created in the source warehouse. Endpoint: `POST /sales/bulk/orders`

2. **Picking → Packing → Shipping** — Standard outgoing flow in the source.

3. **PGI** — Goods leave the source warehouse.

4. **PO (warehouse_movement)** — Auto-created in the destination warehouse.

5. **Incoming → GR** — Received into the destination.

## Endpoints & events

**Endpoint: Create sales orders in bulk** — `POST /sales/bulk/orders` (operationId: bulkCreateSalesOrders)

Create the transfer with `type = warehouse_movement` and a `destination_warehouse_id`.

Subscribe to `sales_order_created` (`type = warehouse_movement`).

---

Website version: https://connect.pulpo.co/guide/stock-transfer
Whole guide in one file: https://connect.pulpo.co/llms-full.txt
Index of all pages: https://connect.pulpo.co/llms.txt
