buy_label_from_order
Buy a shipping label for an existing order using a rate ID from get_shipping_rates. Provide sender and recipient addresses, package details, and ship date.
Instructions
通过已有订单打单(购买面单)。当用户要对订单打单时,必须使用此工具,不得使用 create_draft_shipment + pay_shipment 流程。需要先通过 get_shipping_rates 获取 rate_id。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | 订单ID | |
| rate_id | Yes | 报价ID,从 get_shipping_rates 获取 | |
| from_address_data | Yes | 寄件地址 | |
| to_address_data | Yes | 收件地址 | |
| package_data | Yes | 包裹信息 | |
| ship_date | No | 发货日期,ISO 8601 格式,如 2026-03-31T13:37:24+08:00 | |
| label_print_type | No | 面单打印格式 | common |
| international | No | 是否为国际件 | |
| option_data | No | 运单附加选项 |