UPS - Label Ground Freight Pricing Third Party Billing

Carrier
UPS
Action
Label Ground Freight Pricing Third Party Billing
{
    "carrier": "UPS",
    "action": "submitshipment",
    "params": {
      "username": "YOUR_USERNAME",
      "password": "YOUR_PASSWORD",
      "key": "YOUR_KEY",
      "test": true,
      "service": "03",
      "billing": [
        {
          "type": "transportation",
          "payment_type": "third_party",
          "company": "Acme Inc",
          "account": "ABC123",
          "postal_code": "14609",
          "country_code": "US"
        }
      ],
      "image_type": "PNG",
      "frs_shipment": true,
      "customs": [],
      "weight_unit": "LBS",
      "length_unit": "IN",
      "pickup_type": "01",
      "packaging_type": "02",
      "customer_classification": "01",
      "ground_freight": true,
      "country_code": "US",
      "shipper": "kkk",
      "ship_phone": "13800138000",
      "ship_addr1": "4969 sereno dr",
      "ship_city": "Temple City",
      "ship_state": "CA",
      "ship_code": "91780",
      "to_country": "US",
      "to_name": "kkk",
      "to_phone": "13800138000",
      "to_addr1": "4969 sereno dr",
      "to_addr2": "",
      "to_city": "Temple City",
      "to_state": "CA",
      "to_code": "91780",
      "packages": [
        {
          "weight": 11.0,
          "length": 11.0,
          "width": 11.0,
          "height": 11.0,
          "freight_class": "50",
          "reference_value": "ID:11525",
          "reference_value2": "",
          "reference_value3": ""
        }
      ]
    }
  }

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS',
  'action' => 'submitshipment',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'key' => 'YOUR_KEY',
    'test' => true,
    'service' => '03',
    'billing' => 
    array (
      0 => 
      array (
        'type' => 'transportation',
        'payment_type' => 'third_party',
        'company' => 'Acme Inc',
        'account' => 'ABC123',
        'postal_code' => '14609',
        'country_code' => 'US',
      ),
    ),
    'image_type' => 'PNG',
    'frs_shipment' => true,
    'customs' => 
    array (
    ),
    'weight_unit' => 'LBS',
    'length_unit' => 'IN',
    'pickup_type' => '01',
    'packaging_type' => '02',
    'customer_classification' => '01',
    'ground_freight' => true,
    'country_code' => 'US',
    'shipper' => 'kkk',
    'ship_phone' => '13800138000',
    'ship_addr1' => '4969 sereno dr',
    'ship_city' => 'Temple City',
    'ship_state' => 'CA',
    'ship_code' => '91780',
    'to_country' => 'US',
    'to_name' => 'kkk',
    'to_phone' => '13800138000',
    'to_addr1' => '4969 sereno dr',
    'to_addr2' => '',
    'to_city' => 'Temple City',
    'to_state' => 'CA',
    'to_code' => '91780',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 11.0,
        'length' => 11.0,
        'width' => 11.0,
        'height' => 11.0,
        'freight_class' => '50',
        'reference_value' => 'ID:11525',
        'reference_value2' => '',
        'reference_value3' => '',
      ),
    ),
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'UPS',
 'params': {'billing': [{'account': 'ABC123',
                         'company': 'Acme Inc',
                         'country_code': 'US',
                         'payment_type': 'third_party',
                         'postal_code': '14609',
                         'type': 'transportation'}],
            'country_code': 'US',
            'customer_classification': '01',
            'customs': [],
            'frs_shipment': True,
            'ground_freight': True,
            'image_type': 'PNG',
            'key': 'YOUR_KEY',
            'length_unit': 'IN',
            'packages': [{'freight_class': '50',
                          'height': 11.0,
                          'length': 11.0,
                          'reference_value': 'ID:11525',
                          'reference_value2': '',
                          'reference_value3': '',
                          'weight': 11.0,
                          'width': 11.0}],
            'packaging_type': '02',
            'password': 'YOUR_PASSWORD',
            'pickup_type': '01',
            'service': '03',
            'ship_addr1': '4969 sereno dr',
            'ship_city': 'Temple City',
            'ship_code': '91780',
            'ship_phone': '13800138000',
            'ship_state': 'CA',
            'shipper': 'kkk',
            'test': True,
            'to_addr1': '4969 sereno dr',
            'to_addr2': '',
            'to_city': 'Temple City',
            'to_code': '91780',
            'to_country': 'US',
            'to_name': 'kkk',
            'to_phone': '13800138000',
            'to_state': 'CA',
            'username': 'YOUR_USERNAME',
            'weight_unit': 'LBS'}}

)

rs.request(
  {"carrier"=>"UPS",
 "action"=>"submitshipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "key"=>"YOUR_KEY",
   "test"=>true,
   "service"=>"03",
   "billing"=>
    [{"type"=>"transportation",
      "payment_type"=>"third_party",
      "company"=>"Acme Inc",
      "account"=>"ABC123",
      "postal_code"=>"14609",
      "country_code"=>"US"}],
   "image_type"=>"PNG",
   "frs_shipment"=>true,
   "customs"=>[],
   "weight_unit"=>"LBS",
   "length_unit"=>"IN",
   "pickup_type"=>"01",
   "packaging_type"=>"02",
   "customer_classification"=>"01",
   "ground_freight"=>true,
   "country_code"=>"US",
   "shipper"=>"kkk",
   "ship_phone"=>"13800138000",
   "ship_addr1"=>"4969 sereno dr",
   "ship_city"=>"Temple City",
   "ship_state"=>"CA",
   "ship_code"=>"91780",
   "to_country"=>"US",
   "to_name"=>"kkk",
   "to_phone"=>"13800138000",
   "to_addr1"=>"4969 sereno dr",
   "to_addr2"=>"",
   "to_city"=>"Temple City",
   "to_state"=>"CA",
   "to_code"=>"91780",
   "packages"=>
    [{"weight"=>11.0,
      "length"=>11.0,
      "width"=>11.0,
      "height"=>11.0,
      "freight_class"=>"50",
      "reference_value"=>"ID:11525",
      "reference_value2"=>"",
      "reference_value3"=>""}]}}

)

rocketshipit.request(
  {
    "carrier": "UPS",
    "action": "submitshipment",
    "params": {
      "username": "YOUR_USERNAME",
      "password": "YOUR_PASSWORD",
      "key": "YOUR_KEY",
      "test": true,
      "service": "03",
      "billing": [
        {
          "type": "transportation",
          "payment_type": "third_party",
          "company": "Acme Inc",
          "account": "ABC123",
          "postal_code": "14609",
          "country_code": "US"
        }
      ],
      "image_type": "PNG",
      "frs_shipment": true,
      "customs": [],
      "weight_unit": "LBS",
      "length_unit": "IN",
      "pickup_type": "01",
      "packaging_type": "02",
      "customer_classification": "01",
      "ground_freight": true,
      "country_code": "US",
      "shipper": "kkk",
      "ship_phone": "13800138000",
      "ship_addr1": "4969 sereno dr",
      "ship_city": "Temple City",
      "ship_state": "CA",
      "ship_code": "91780",
      "to_country": "US",
      "to_name": "kkk",
      "to_phone": "13800138000",
      "to_addr1": "4969 sereno dr",
      "to_addr2": "",
      "to_city": "Temple City",
      "to_state": "CA",
      "to_code": "91780",
      "packages": [
        {
          "weight": 11.0,
          "length": 11.0,
          "width": 11.0,
          "height": 11.0,
          "freight_class": "50",
          "reference_value": "ID:11525",
          "reference_value2": "",
          "reference_value3": ""
        }
      ]
    }
  }
)

← All UPS examples