Create Shipment
create_shipmentCreate a UPS shipment and generate a shipping label with tracking number and charges for domestic and international services.
Instructions
Create a UPS shipment and generate a shipping label. Supports all UPS domestic and international services. Returns tracking number, charges, and label image (base64-encoded GIF by default). Common service codes: 03=Ground, 02=2nd Day Air, 01=Next Day Air, 13=Next Day Air Saver, 12=3 Day Select, 07=Express (intl), 11=Standard (intl).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | No | UPS service code (e.g. "03" for Ground, "01" for Next Day Air) | 03 |
| shipFrom | Yes | Origin/sender address | |
| shipTo | Yes | Destination/recipient address | |
| packages | Yes | Array of packages (1-200) | |
| description | No | Shipment description | |
| referenceNumber | No | Your reference number for this shipment | |
| labelFormat | No | Label image format | GIF |