UPS - Label Mail Innovations International

Carrier
UPS
Action
Label Mail Innovations International
{
  "carrier": "UPS",
  "action": "submitshipment",
  "params": {
    "test": true,
    "key": "YOUR_UPS_API_KEY",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "customs_forms": "09",
    "currency": "USD",
    "invoice_date": "20190423",
    "reason_for_export": "SALE",
    "invoice_line_total": 100,
    "packages": [
      {
        "weight": 1
      }
    ],
    "customs": [
      {
        "invoice_line_number": "1",
        "invoice_line_part_number": "123",
        "invoice_line_description": "My Description",
        "invoice_line_value": "1",
        "invoice_line_origin_country_code": "CA",
        "customs_quantity_units": "EA",
        "commodity_code": "240110"
      }
    ],
    "service": "M6",
    "packaging_type": "57",
    "customs_content_type": "Merchandise",
    "usps_endorsement": "5",
    "cost_center": "5",
    "package_id": "5",
    "invoice": "12345",
    "sold_company": "Acme Inc.",
    "sold_name": "John Doe",
    "sold_tax_id": "123abc",
    "sold_phone": "1231231234",
    "sold_addr1": "2000 Meadowvale Rd",
    "sold_city": "Toronto",
    "sold_state": "ON",
    "sold_code": "M1B5K7",
    "sold_country": "CA",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_name": "John Doe",
    "ship_addr1": "2300 Southern Blvd",
    "ship_state": "NY",
    "ship_city": "Bronx",
    "ship_code": "10460",
    "ship_country": "US",
    "ship_phone": "1231231234",
    "to_company": "Acme Inc.",
    "to_attention_name": "John Doe",
    "to_addr1": "2000 Meadowvale Rd",
    "to_city": "Toronto",
    "to_state": "ON",
    "to_code": "M1B5K7",
    "to_country": "CA",
    "to_phone": "1231231234",
    "image_type": "GIF",
    "shipment_description": "xxx",
    "pickup_type": "02",
    "weight_unit": "LBS"
  }
} 

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS',
  'action' => 'submitshipment',
  'params' => 
  array (
    'test' => true,
    'key' => 'YOUR_UPS_API_KEY',
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'customs_forms' => '09',
    'currency' => 'USD',
    'invoice_date' => '20190423',
    'reason_for_export' => 'SALE',
    'invoice_line_total' => 100,
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 1,
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'invoice_line_number' => '1',
        'invoice_line_part_number' => '123',
        'invoice_line_description' => 'My Description',
        'invoice_line_value' => '1',
        'invoice_line_origin_country_code' => 'CA',
        'customs_quantity_units' => 'EA',
        'commodity_code' => '240110',
      ),
    ),
    'service' => 'M6',
    'packaging_type' => '57',
    'customs_content_type' => 'Merchandise',
    'usps_endorsement' => '5',
    'cost_center' => '5',
    'package_id' => '5',
    'invoice' => '12345',
    'sold_company' => 'Acme Inc.',
    'sold_name' => 'John Doe',
    'sold_tax_id' => '123abc',
    'sold_phone' => '1231231234',
    'sold_addr1' => '2000 Meadowvale Rd',
    'sold_city' => 'Toronto',
    'sold_state' => 'ON',
    'sold_code' => 'M1B5K7',
    'sold_country' => 'CA',
    'shipper' => 'John Doe',
    'ship_contact' => 'John Doe',
    'ship_name' => 'John Doe',
    'ship_addr1' => '2300 Southern Blvd',
    'ship_state' => 'NY',
    'ship_city' => 'Bronx',
    'ship_code' => '10460',
    'ship_country' => 'US',
    'ship_phone' => '1231231234',
    'to_company' => 'Acme Inc.',
    'to_attention_name' => 'John Doe',
    'to_addr1' => '2000 Meadowvale Rd',
    'to_city' => 'Toronto',
    'to_state' => 'ON',
    'to_code' => 'M1B5K7',
    'to_country' => 'CA',
    'to_phone' => '1231231234',
    'image_type' => 'GIF',
    'shipment_description' => 'xxx',
    'pickup_type' => '02',
    'weight_unit' => 'LBS',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'UPS',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'cost_center': '5',
            'currency': 'USD',
            'customs': [{'commodity_code': '240110',
                         'customs_quantity_units': 'EA',
                         'invoice_line_description': 'My Description',
                         'invoice_line_number': '1',
                         'invoice_line_origin_country_code': 'CA',
                         'invoice_line_part_number': '123',
                         'invoice_line_value': '1'}],
            'customs_content_type': 'Merchandise',
            'customs_forms': '09',
            'image_type': 'GIF',
            'invoice': '12345',
            'invoice_date': '20190423',
            'invoice_line_total': 100,
            'key': 'YOUR_UPS_API_KEY',
            'package_id': '5',
            'packages': [{'weight': 1}],
            'packaging_type': '57',
            'password': 'YOUR_PASSWORD',
            'pickup_type': '02',
            'reason_for_export': 'SALE',
            'service': 'M6',
            'ship_addr1': '2300 Southern Blvd',
            'ship_city': 'Bronx',
            'ship_code': '10460',
            'ship_contact': 'John Doe',
            'ship_country': 'US',
            'ship_name': 'John Doe',
            'ship_phone': '1231231234',
            'ship_state': 'NY',
            'shipment_description': 'xxx',
            'shipper': 'John Doe',
            'sold_addr1': '2000 Meadowvale Rd',
            'sold_city': 'Toronto',
            'sold_code': 'M1B5K7',
            'sold_company': 'Acme Inc.',
            'sold_country': 'CA',
            'sold_name': 'John Doe',
            'sold_phone': '1231231234',
            'sold_state': 'ON',
            'sold_tax_id': '123abc',
            'test': True,
            'to_addr1': '2000 Meadowvale Rd',
            'to_attention_name': 'John Doe',
            'to_city': 'Toronto',
            'to_code': 'M1B5K7',
            'to_company': 'Acme Inc.',
            'to_country': 'CA',
            'to_phone': '1231231234',
            'to_state': 'ON',
            'username': 'YOUR_USERNAME',
            'usps_endorsement': '5',
            'weight_unit': 'LBS'}}

)

rs.request(
  {"carrier"=>"UPS",
 "action"=>"submitshipment",
 "params"=>
  {"test"=>true,
   "key"=>"YOUR_UPS_API_KEY",
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "customs_forms"=>"09",
   "currency"=>"USD",
   "invoice_date"=>"20190423",
   "reason_for_export"=>"SALE",
   "invoice_line_total"=>100,
   "packages"=>[{"weight"=>1}],
   "customs"=>
    [{"invoice_line_number"=>"1",
      "invoice_line_part_number"=>"123",
      "invoice_line_description"=>"My Description",
      "invoice_line_value"=>"1",
      "invoice_line_origin_country_code"=>"CA",
      "customs_quantity_units"=>"EA",
      "commodity_code"=>"240110"}],
   "service"=>"M6",
   "packaging_type"=>"57",
   "customs_content_type"=>"Merchandise",
   "usps_endorsement"=>"5",
   "cost_center"=>"5",
   "package_id"=>"5",
   "invoice"=>"12345",
   "sold_company"=>"Acme Inc.",
   "sold_name"=>"John Doe",
   "sold_tax_id"=>"123abc",
   "sold_phone"=>"1231231234",
   "sold_addr1"=>"2000 Meadowvale Rd",
   "sold_city"=>"Toronto",
   "sold_state"=>"ON",
   "sold_code"=>"M1B5K7",
   "sold_country"=>"CA",
   "shipper"=>"John Doe",
   "ship_contact"=>"John Doe",
   "ship_name"=>"John Doe",
   "ship_addr1"=>"2300 Southern Blvd",
   "ship_state"=>"NY",
   "ship_city"=>"Bronx",
   "ship_code"=>"10460",
   "ship_country"=>"US",
   "ship_phone"=>"1231231234",
   "to_company"=>"Acme Inc.",
   "to_attention_name"=>"John Doe",
   "to_addr1"=>"2000 Meadowvale Rd",
   "to_city"=>"Toronto",
   "to_state"=>"ON",
   "to_code"=>"M1B5K7",
   "to_country"=>"CA",
   "to_phone"=>"1231231234",
   "image_type"=>"GIF",
   "shipment_description"=>"xxx",
   "pickup_type"=>"02",
   "weight_unit"=>"LBS"}}

)

rocketshipit.request(
  {
  "carrier": "UPS",
  "action": "submitshipment",
  "params": {
    "test": true,
    "key": "YOUR_UPS_API_KEY",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "customs_forms": "09",
    "currency": "USD",
    "invoice_date": "20190423",
    "reason_for_export": "SALE",
    "invoice_line_total": 100,
    "packages": [
      {
        "weight": 1
      }
    ],
    "customs": [
      {
        "invoice_line_number": "1",
        "invoice_line_part_number": "123",
        "invoice_line_description": "My Description",
        "invoice_line_value": "1",
        "invoice_line_origin_country_code": "CA",
        "customs_quantity_units": "EA",
        "commodity_code": "240110"
      }
    ],
    "service": "M6",
    "packaging_type": "57",
    "customs_content_type": "Merchandise",
    "usps_endorsement": "5",
    "cost_center": "5",
    "package_id": "5",
    "invoice": "12345",
    "sold_company": "Acme Inc.",
    "sold_name": "John Doe",
    "sold_tax_id": "123abc",
    "sold_phone": "1231231234",
    "sold_addr1": "2000 Meadowvale Rd",
    "sold_city": "Toronto",
    "sold_state": "ON",
    "sold_code": "M1B5K7",
    "sold_country": "CA",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_name": "John Doe",
    "ship_addr1": "2300 Southern Blvd",
    "ship_state": "NY",
    "ship_city": "Bronx",
    "ship_code": "10460",
    "ship_country": "US",
    "ship_phone": "1231231234",
    "to_company": "Acme Inc.",
    "to_attention_name": "John Doe",
    "to_addr1": "2000 Meadowvale Rd",
    "to_city": "Toronto",
    "to_state": "ON",
    "to_code": "M1B5K7",
    "to_country": "CA",
    "to_phone": "1231231234",
    "image_type": "GIF",
    "shipment_description": "xxx",
    "pickup_type": "02",
    "weight_unit": "LBS"
  }
} 

)

← All UPS examples