UPS - Label Email Notifications

Carrier
UPS
Action
Label Email Notifications
{
  "carrier": "UPS",
  "action": "submitshipment",
  "params": {
    "key": "YOUR_UPS_API_KEY",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "notify": [
      {
        "email": "[email protected]",
        "type": "6"
      }
    ],
    "packages": [
      {
        "weight": 4,
        "length": 7
      }
    ],
    "service": "03",
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "ship_country": "US",
    "to_name": "John Doe",
    "to_addr1": "940 Presidio Ave",
    "to_addr2": "#103",
    "to_state": "CA",
    "to_city": "San Francisco",
    "to_code": "94115",
    "to_country": "US",
    "image_type": "GIF",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS',
  'action' => 'submitshipment',
  'params' => 
  array (
    'key' => 'YOUR_UPS_API_KEY',
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'notify' => 
    array (
      0 => 
      array (
        'email' => '[email protected]',
        'type' => '6',
      ),
    ),
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 4,
        'length' => 7,
      ),
    ),
    'service' => '03',
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Whitehall',
    'ship_state' => 'MT',
    'ship_code' => '59759',
    'ship_phone' => '1231231234',
    'ship_country' => 'US',
    'to_name' => 'John Doe',
    'to_addr1' => '940 Presidio Ave',
    'to_addr2' => '#103',
    'to_state' => 'CA',
    'to_city' => 'San Francisco',
    'to_code' => '94115',
    'to_country' => 'US',
    'image_type' => 'GIF',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'UPS',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'image_type': 'GIF',
            'key': 'YOUR_UPS_API_KEY',
            'notify': [{'email': '[email protected]', 'type': '6'}],
            'packages': [{'length': 7, 'weight': 4}],
            'password': 'YOUR_PASSWORD',
            'service': '03',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_country': 'US',
            'ship_phone': '1231231234',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '940 Presidio Ave',
            'to_addr2': '#103',
            'to_city': 'San Francisco',
            'to_code': '94115',
            'to_country': 'US',
            'to_name': 'John Doe',
            'to_state': 'CA',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"UPS",
 "action"=>"submitshipment",
 "params"=>
  {"key"=>"YOUR_UPS_API_KEY",
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "notify"=>[{"email"=>"[email protected]", "type"=>"6"}],
   "packages"=>[{"weight"=>4, "length"=>7}],
   "service"=>"03",
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Whitehall",
   "ship_state"=>"MT",
   "ship_code"=>"59759",
   "ship_phone"=>"1231231234",
   "ship_country"=>"US",
   "to_name"=>"John Doe",
   "to_addr1"=>"940 Presidio Ave",
   "to_addr2"=>"#103",
   "to_state"=>"CA",
   "to_city"=>"San Francisco",
   "to_code"=>"94115",
   "to_country"=>"US",
   "image_type"=>"GIF",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "UPS",
  "action": "submitshipment",
  "params": {
    "key": "YOUR_UPS_API_KEY",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "notify": [
      {
        "email": "[email protected]",
        "type": "6"
      }
    ],
    "packages": [
      {
        "weight": 4,
        "length": 7
      }
    ],
    "service": "03",
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "ship_country": "US",
    "to_name": "John Doe",
    "to_addr1": "940 Presidio Ave",
    "to_addr2": "#103",
    "to_state": "CA",
    "to_city": "San Francisco",
    "to_code": "94115",
    "to_country": "US",
    "image_type": "GIF",
    "test": true
  }
}
)

← All UPS examples