Skip to main content
POST
Create a shipment
Una vez que hayas comprado un envío e impreso la etiqueta, visita ship.uniuni.com/locations para confirmar tu ubicación de entrega o ship.uniuni.com/pickups para solicitar un servicio de recolección (si está disponible).
shipmentLineItems es obligatorio. Cada envío debe incluir al menos un artículo (arreglo shipmentLineItems con >= 1 elemento). Omitirlo o enviar un arreglo vacío devuelve un error 422 PayloadValidationError.
Envíos transfronterizos (CA → US): Cada artículo en shipmentLineItems también debe incluir hs_code, country_of_origin y una description que identifique al fabricante. Los envíos que falten esta información pueden ser retenidos en la frontera.

Autorizaciones

Authorization
string
header
requerido

API access token generated from the UniUni Platform dashboard.

Cuerpo

application/json
recipient
object
requerido

Recipient details. Provide phone, email, or both.

address
object
requerido
weight
object
requerido
postageType
enum<string>
requerido

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.

Opciones disponibles:
PUBLICATION,
SAME DAY,
NEXT DAY,
STANDARD,
USPS Ground Advantage,
PostNL International Packet Tracked,
OTHER
shipmentLineItems
object[]
requerido

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.

Respuesta

Shipment created or error returned

message
string
requerido

Additional information about the request status.

code
integer
requerido

Status code. 0 indicates success.

data
object