> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.returnhelper.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Consolidate Shipping 流程

> Consolidate Shipping Order 如何在您与仓库之间推进

> [!WARNING]
>
> 此页面由 AI 自动翻译。如有任何疑问或不一致之处，请以英文版本为准。

Consolidate Shipping Order 把库存从一个 Return Helper 仓库运往一个目的地。您创建并提交订单，仓库打包并寄出，每一步都会通过 webhook 通知您。

| `destinationType` | 目的地 | 运费 |
| - | - | - |
| `CUSTOM_ADDRESS` | 您在 `shipTo` 中填写的地址 | 由仓库报价，您在出货前接受报价。 |
| `RH_WAREHOUSE` | 在 [Get all warehouses](/zh-Hans/api-reference/warehouse/get-all-warehouses-accessible-to-user) 中 `isConsolidateShippingDestination` 为 `true` 的 Return Helper 仓库 | 没有报价。每个 Shipment 到达时按其计费重量收费。 |

> [!NOTE]
>
> 目前香港仓库是唯一的 `RH_WAREHOUSE` 目的地。

## 自定义地址（`CUSTOM_ADDRESS`）

| # | 执行方 | 操作 | 操作后的订单状态 | Webhook |
| - | - | - | - | - |
| 1 | 您 | [创建订单](/zh-Hans/api-reference/consolidateshippingorder/create-consolidate-shipping-order) | `CREATED` | — |
| 2 | 您 | [加入库存](/zh-Hans/api-reference/consolidateshippinginventory/add-inventory-to-consolidate-shipping-order)：RMA 按 `returnInventoryId`，FBA 库存按 FNSKU | `CREATED` | — |
| 3 | 您 | [确认订单](/zh-Hans/api-reference/consolidateshippingorder/confirm-consolidate-shipping-order) | `CONFIRMED` | — |
| 4 | 仓库 | 将所有明细打包到 Shipment 和箱子中 | `CONFIRMED` | [All packed](/zh-Hans/webhooks#consolidate-shipping-all-packed) |
| 5 | 仓库 | 报运费 | `CONFIRMED` | [Cost updated](/zh-Hans/webhooks#consolidate-shipping-cost-updated) |
| 6 | 您 | [确认运费报价](/zh-Hans/api-reference/consolidateshippingorder/confirm-consolidate-shipping-quote) | `CONFIRMED_QUOTE` | — |
| 7 | 您 | [标记为可出货](/zh-Hans/api-reference/consolidateshippingorder/mark-consolidate-shipping-order-ready-to-ship) | `READY_TO_SHIP` | — |
| 8 | 仓库 | 寄出 Shipment 并记录 AWB | 仍有其他明细时为 `PARTIALLY_SHIPPED`；所有明细寄出后为 `SHIPPED` | [AWB updated](/zh-Hans/webhooks#consolidate-shipping-awb-updated)；订单变为 `SHIPPED` 时还有 [Order completed](/zh-Hans/webhooks#consolidate-order-completed) |

Shipment 状态：`CREATED` → `SHIPPED`。

## Return Helper 仓库（`RH_WAREHOUSE`）

| # | 执行方 | 操作 | 操作后的订单状态 | Webhook |
| - | - | - | - | - |
| 1–3 | 您 | 与上方相同：创建、加入库存、确认 | `CONFIRMED` | — |
| 4 | 仓库 | 将每个 Shipment 打包成一个箱子 | `CONFIRMED` | [All packed](/zh-Hans/webhooks#consolidate-shipping-all-packed) |
| 5 | 仓库 | 寄出 Shipment 并记录 AWB | `PARTIALLY_SHIPPED` | [AWB updated](/zh-Hans/webhooks#consolidate-shipping-awb-updated)，Shipment 为 `IN_TRANSIT` |
| 6 | Return Helper | Shipment 到达，记录其计费重量并收费 | 其他 Shipment 仍在途时为 `PARTIALLY_SHIPPED`；所有含明细的 Shipment 都到达后为 `SHIPPED` | [Shipment arrived](/zh-Hans/webhooks#consolidate-shipment-arrived)；订单变为 `SHIPPED` 时还有 [Order completed](/zh-Hans/webhooks#consolidate-order-completed) |

Shipment 状态：`CREATED` → `IN_TRANSIT` → `READY_TO_PICKUP`。

订单的 `shipTo` 为目的地仓库地址。[确认运费报价](/zh-Hans/api-reference/consolidateshippingorder/confirm-consolidate-shipping-quote)、[标记为可出货](/zh-Hans/api-reference/consolidateshippingorder/mark-consolidate-shipping-order-ready-to-ship)、[更新收件信息](/zh-Hans/api-reference/consolidateshippingorder/update-ship-to-information-of-consolidate-shipping-order) 和 [更新包装类型](/zh-Hans/api-reference/consolidateshippingorder/update-packaging-type-of-consolidate-shipping-order) 会拒绝 `RH_WAREHOUSE` 订单。

## 明细与箱子

| 对象 | 状态流转 |
| - | - |
| 明细（订单上的 RMA 或 FNSKU） | `PENDING` → `IN_PROGRESS`（部分打包） → `PACKED` → `SHIPPED` |
| 箱子 | `IN_PROGRESS` → `SHIPPED` |

在 [获取 Consolidate Shipping Order](/zh-Hans/api-reference/consolidateshippingorder/get-consolidate-shipping-order) 中，未打包的明细位于 `pendingInventoryList` 和 `inProgressInventoryList`；已打包的明细列在 `shipmentList[].boxList[]` 的对应箱子中。

## 修改或取消订单

| 修改 | 允许的状态 | 影响 |
| - | - | - |
| 加入或移除库存 | `CREATED` | — |
| 更新收件信息或包装类型（`CUSTOM_ADDRESS`） | `CREATED`、`CONFIRMED` | 订单和每个 Shipment 的运费重置为 `0`；`CONFIRMED` 的订单会重新报价 |
| [取消](/zh-Hans/api-reference/consolidateshippingorder/cancel-consolidate-shipping-order) | `CREATED` | 订单变为 `CANCELED`；FNSKU 件数退回库存 |

确认后只有仓库可以取消订单，您会收到 [Order cancelled](/zh-Hans/webhooks#consolidate-order-cancelled)。

## 分批寄出

仓库可能把一个订单分成多个 Shipment 寄出。在所有明细寄出、且（`RH_WAREHOUSE` 时）所有含明细的 Shipment 都到达之前，订单保持 `PARTIALLY_SHIPPED`。请用上述 webhook 跟踪进度；如需单次查询，可使用 [获取 Consolidate Shipping Order](/zh-Hans/api-reference/consolidateshippingorder/get-consolidate-shipping-order)。

## 费用

订单的 `shippingFee` 为各 Shipment 运费之和。每笔费用会作为一笔 Transaction 记录在您的账户中。对于合箱费 Transaction，可用其 `apiTransactionId` [列出每个箱子中的 FNSKU](/zh-Hans/api-reference/apitransaction/get-fnskus-of-consolidate-shipping-merge-fee-transaction)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.