# Returns

Path: `/guide/returns`

Returns run in two directions: goods coming back **from a customer**, and goods going back
**to a supplier**.

## From client / customer

The process starts with a **Purchase Order** (`type = return`) received in a specific
warehouse, referencing the original Sales Order (`sales_order_id`). A spontaneous return
(without an incoming PO) is also possible directly in the warehouse app — the outgoing
customer (`type = C`) is used as the supplier of the incoming replenishment.

**Flow**

1. **Return from customer** — Goods come back referencing the original sales order.

2. **PO (type=return)** — Create a return purchase order. Endpoint: `POST /reception/bulk/purchase_orders`

## To supplier

The process starts with a **Sales Order** (`type = return`) received in a specific
warehouse, where the defined supplier for that product becomes the Third Party
(`type = C`). Most customers reject the material in the incoming process within the app and
readjust stock with a counting task, or send it to a cross-docking / return location and
take it out following the normal Sales Order process.

**Flow**

1. **Return to supplier** — Goods leave the warehouse back to the supplier.

2. **SO (type=return)** — Create a return sales order. Endpoint: `POST /sales/bulk/orders`

## Endpoints & events

**Endpoint: Create purchase orders in bulk** — `POST /reception/bulk/purchase_orders` (operationId: bulkCreatePurchaseOrders)Return from customer — `type = return`.
**Endpoint: Create sales orders in bulk** — `POST /sales/bulk/orders` (operationId: bulkCreateSalesOrders)Return to supplier — `type = return`.

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

> **TIP: Label providers**
>
> For the detailed return recipe with field-level requirements and batch resolution, see the
> [Shipping Label Provider · Returns](/label-provider/returns) page.

---

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