Skip to main content
POST
Create a shipment
购买货件并打印面单后,请访问ship.uniuni.com/locations确认您的投递点,或访问ship.uniuni.com/pickups申请上门取件服务(如可用)。
shipmentLineItems 为必填项。 每个货件必须包含至少一个物品(shipmentLineItems 数组需包含 >= 1 个元素)。省略该字段或发送空数组将返回 422 PayloadValidationError 错误。
跨境货件(加拿大 → 美国):shipmentLineItems中的每个物品还必须包含hs_codecountry_of_origin以及标识制造商的description。缺少此信息的货件可能会在边境被扣留。

授权

Authorization
string
header
必填

API access token generated from the UniUni Platform dashboard.

请求体

application/json
recipient
object
必填

Recipient details. Provide phone, email, or both.

address
object
必填
weight
object
必填
postageType
enum<string>
必填

Preferred postage type. Domestic shipments typically use SAME DAY, NEXT DAY, or STANDARD. Cross-border CA→US shipments use USPS Ground Advantage (DDP) or PostNL International Packet Tracked (DDU). If the requested type is unavailable, an available type is selected automatically.

可用选项:
PUBLICATION,
SAME DAY,
NEXT DAY,
STANDARD,
USPS Ground Advantage,
PostNL International Packet Tracked,
OTHER
shipmentLineItems
object[]
必填

Line items describing the contents. Must contain at least one item.

Minimum array length: 1
dimensions
object

Package dimensions. Provide either dimensions or packagingId, not both. If neither is provided, a saved default packaging preset will be used. If there are no saved packaging presets, dimensions are required.

packagingId
integer

ID of a pre-configured packaging profile. Use instead of dimensions if the package matches a saved profile.

note
string

Optional note, up to 200 characters.

Maximum string length: 200
insuranceRequired
boolean

Whether parcel protection (insurance) is required for this shipment.

orderNumber
string

Optional client-provided order reference.

响应

Shipment created or error returned

message
string
必填

Additional information about the request status.

code
integer
必填

Status code. 0 indicates success.

data
object