UPS-REST - International w/ Multiple Paperless Documents

Carrier
UPS-REST
Action
International w/ Multiple Paperless Documents
{
  "carrier": "UPS-REST",
  "action": "submitshipment",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "account_number": "YOUR_ACCOUNT",
    "customs_forms": "07",
    "document_ids": [
      "2024-06-15-09.30.45.123456",
      "2024-06-15-09.31.02.654321"
    ],
    "currency": "USD",
    "reason_for_export": "SALE",
    "packages": [
      {
        "weight": 1
      }
    ],
    "customs": [
      {
        "invoice_line_description": "My Description",
        "invoice_line_value": "100",
        "invoice_line_origin_country_code": "US",
        "customs_quantity_units": "EA"
      }
    ],
    "service": "11",
    "to_name": "John Doe",
    "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",
    "ship_contact": "John Doe",
    "shipper": "John Doe",
    "ship_addr1": "2300 Southern Blvd",
    "ship_state": "NY",
    "ship_city": "Bronx",
    "ship_code": "10460",
    "ship_country": "US",
    "ship_phone": "1231231234",
    "image_type": "PNG",
    "shipment_description": "Books",
    "packaging_type": "02",
    "pickup_type": "02",
    "weight_unit": "LBS",
    "length_unit": "IN"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS-REST',
  'action' => 'submitshipment',
  'params' => 
  array (
    'test' => true,
    'key' => 'your-key-from-authenticate-request',
    'account_number' => 'YOUR_ACCOUNT',
    'customs_forms' => '07',
    'document_ids' => 
    array (
      0 => '2024-06-15-09.30.45.123456',
      1 => '2024-06-15-09.31.02.654321',
    ),
    'currency' => 'USD',
    'reason_for_export' => 'SALE',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 1,
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'invoice_line_description' => 'My Description',
        'invoice_line_value' => '100',
        'invoice_line_origin_country_code' => 'US',
        'customs_quantity_units' => 'EA',
      ),
    ),
    'service' => '11',
    'to_name' => 'John Doe',
    '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',
    'ship_contact' => 'John Doe',
    'shipper' => 'John Doe',
    'ship_addr1' => '2300 Southern Blvd',
    'ship_state' => 'NY',
    'ship_city' => 'Bronx',
    'ship_code' => '10460',
    'ship_country' => 'US',
    'ship_phone' => '1231231234',
    'image_type' => 'PNG',
    'shipment_description' => 'Books',
    'packaging_type' => '02',
    'pickup_type' => '02',
    'weight_unit' => 'LBS',
    'length_unit' => 'IN',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'UPS-REST',
 'params': {'account_number': 'YOUR_ACCOUNT',
            'currency': 'USD',
            'customs': [{'customs_quantity_units': 'EA',
                         'invoice_line_description': 'My Description',
                         'invoice_line_origin_country_code': 'US',
                         'invoice_line_value': '100'}],
            'customs_forms': '07',
            'document_ids': ['2024-06-15-09.30.45.123456',
                             '2024-06-15-09.31.02.654321'],
            'image_type': 'PNG',
            'key': 'your-key-from-authenticate-request',
            'length_unit': 'IN',
            'packages': [{'weight': 1}],
            'packaging_type': '02',
            'pickup_type': '02',
            'reason_for_export': 'SALE',
            'service': '11',
            'ship_addr1': '2300 Southern Blvd',
            'ship_city': 'Bronx',
            'ship_code': '10460',
            'ship_contact': 'John Doe',
            'ship_country': 'US',
            'ship_phone': '1231231234',
            'ship_state': 'NY',
            'shipment_description': 'Books',
            'shipper': 'John Doe',
            'test': True,
            'to_addr1': '2000 Meadowvale Rd',
            'to_attention_name': 'John Doe',
            'to_city': 'Toronto',
            'to_code': 'M1B5K7',
            'to_country': 'CA',
            'to_name': 'John Doe',
            'to_phone': '1231231234',
            'to_state': 'ON',
            'weight_unit': 'LBS'}}

)

rs.request(
  {"carrier"=>"UPS-REST",
 "action"=>"submitshipment",
 "params"=>
  {"test"=>true,
   "key"=>"your-key-from-authenticate-request",
   "account_number"=>"YOUR_ACCOUNT",
   "customs_forms"=>"07",
   "document_ids"=>
    ["2024-06-15-09.30.45.123456", "2024-06-15-09.31.02.654321"],
   "currency"=>"USD",
   "reason_for_export"=>"SALE",
   "packages"=>[{"weight"=>1}],
   "customs"=>
    [{"invoice_line_description"=>"My Description",
      "invoice_line_value"=>"100",
      "invoice_line_origin_country_code"=>"US",
      "customs_quantity_units"=>"EA"}],
   "service"=>"11",
   "to_name"=>"John Doe",
   "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",
   "ship_contact"=>"John Doe",
   "shipper"=>"John Doe",
   "ship_addr1"=>"2300 Southern Blvd",
   "ship_state"=>"NY",
   "ship_city"=>"Bronx",
   "ship_code"=>"10460",
   "ship_country"=>"US",
   "ship_phone"=>"1231231234",
   "image_type"=>"PNG",
   "shipment_description"=>"Books",
   "packaging_type"=>"02",
   "pickup_type"=>"02",
   "weight_unit"=>"LBS",
   "length_unit"=>"IN"}}

)

rocketshipit.request(
  {
  "carrier": "UPS-REST",
  "action": "submitshipment",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "account_number": "YOUR_ACCOUNT",
    "customs_forms": "07",
    "document_ids": [
      "2024-06-15-09.30.45.123456",
      "2024-06-15-09.31.02.654321"
    ],
    "currency": "USD",
    "reason_for_export": "SALE",
    "packages": [
      {
        "weight": 1
      }
    ],
    "customs": [
      {
        "invoice_line_description": "My Description",
        "invoice_line_value": "100",
        "invoice_line_origin_country_code": "US",
        "customs_quantity_units": "EA"
      }
    ],
    "service": "11",
    "to_name": "John Doe",
    "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",
    "ship_contact": "John Doe",
    "shipper": "John Doe",
    "ship_addr1": "2300 Southern Blvd",
    "ship_state": "NY",
    "ship_city": "Bronx",
    "ship_code": "10460",
    "ship_country": "US",
    "ship_phone": "1231231234",
    "image_type": "PNG",
    "shipment_description": "Books",
    "packaging_type": "02",
    "pickup_type": "02",
    "weight_unit": "LBS",
    "length_unit": "IN"
  }
}
)

← All UPS-REST examples