UPS-REST - International w/ Empty Declaration Statement

Carrier
UPS-REST
Action
International w/ Empty Declaration Statement
{
  "carrier": "UPS-REST",
  "action": "submitshipment",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "account_number": "YOUR_ACCOUNT",
    "customs_forms": "01",
    "currency": "EUR",
    "invoice_date": "20260309",
    "reason_for_export": "OTHER",
    "invoice_line_total": 550,
    "trade_terms": "DDP",
    "declaration_statement": "",
    "special_instructions": "Temporary export for rental. No transfer of ownership.",
    "packages": [
      {
        "weight": 15,
        "length": 39,
        "width": 69,
        "height": 36
      }
    ],
    "customs": [
      {
        "invoice_line_number": "1",
        "invoice_line_part_number": "FB",
        "invoice_line_description": "Photo booth rental bundle",
        "invoice_line_value": "550",
        "invoice_line_origin_country_code": "DE",
        "commodity_code": "8525.80.30.00",
        "customs_quantity_units": "EA"
      }
    ],
    "sold_company": "Acme Inc.",
    "sold_name": "John Doe",
    "sold_tax_id": "123abc",
    "sold_phone": "1231231234",
    "sold_addr1": "123 Main St",
    "sold_city": "Bern",
    "sold_state": "BE",
    "sold_code": "3012",
    "sold_country": "CH",
    "service": "11",
    "shipper": "My Company",
    "ship_contact": "Shipping Department",
    "ship_addr1": "456 Warehouse St",
    "ship_city": "Heilbronn",
    "ship_state": "",
    "ship_code": "74078",
    "ship_country": "DE",
    "ship_phone": "1231231234",
    "ship_tax_id": "123456789",
    "to_attention_name": "John Doe",
    "to_name": "John Doe",
    "to_addr1": "789 Destination Ave",
    "to_city": "Bern",
    "to_state": "BE",
    "to_code": "3012",
    "to_country": "CH",
    "to_phone": "1231231234",
    "image_type": "ZPL",
    "shipment_description": "Photo booth rental",
    "packaging_type": "02",
    "weight_unit": "KGS",
    "length_unit": "CM"
  }
}

<?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' => '01',
    'currency' => 'EUR',
    'invoice_date' => '20260309',
    'reason_for_export' => 'OTHER',
    'invoice_line_total' => 550,
    'trade_terms' => 'DDP',
    'declaration_statement' => '',
    'special_instructions' => 'Temporary export for rental. No transfer of ownership.',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 15,
        'length' => 39,
        'width' => 69,
        'height' => 36,
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'invoice_line_number' => '1',
        'invoice_line_part_number' => 'FB',
        'invoice_line_description' => 'Photo booth rental bundle',
        'invoice_line_value' => '550',
        'invoice_line_origin_country_code' => 'DE',
        'commodity_code' => '8525.80.30.00',
        'customs_quantity_units' => 'EA',
      ),
    ),
    'sold_company' => 'Acme Inc.',
    'sold_name' => 'John Doe',
    'sold_tax_id' => '123abc',
    'sold_phone' => '1231231234',
    'sold_addr1' => '123 Main St',
    'sold_city' => 'Bern',
    'sold_state' => 'BE',
    'sold_code' => '3012',
    'sold_country' => 'CH',
    'service' => '11',
    'shipper' => 'My Company',
    'ship_contact' => 'Shipping Department',
    'ship_addr1' => '456 Warehouse St',
    'ship_city' => 'Heilbronn',
    'ship_state' => '',
    'ship_code' => '74078',
    'ship_country' => 'DE',
    'ship_phone' => '1231231234',
    'ship_tax_id' => '123456789',
    'to_attention_name' => 'John Doe',
    'to_name' => 'John Doe',
    'to_addr1' => '789 Destination Ave',
    'to_city' => 'Bern',
    'to_state' => 'BE',
    'to_code' => '3012',
    'to_country' => 'CH',
    'to_phone' => '1231231234',
    'image_type' => 'ZPL',
    'shipment_description' => 'Photo booth rental',
    'packaging_type' => '02',
    'weight_unit' => 'KGS',
    'length_unit' => 'CM',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'UPS-REST',
 'params': {'account_number': 'YOUR_ACCOUNT',
            'currency': 'EUR',
            'customs': [{'commodity_code': '8525.80.30.00',
                         'customs_quantity_units': 'EA',
                         'invoice_line_description': 'Photo booth rental '
                                                     'bundle',
                         'invoice_line_number': '1',
                         'invoice_line_origin_country_code': 'DE',
                         'invoice_line_part_number': 'FB',
                         'invoice_line_value': '550'}],
            'customs_forms': '01',
            'declaration_statement': '',
            'image_type': 'ZPL',
            'invoice_date': '20260309',
            'invoice_line_total': 550,
            'key': 'your-key-from-authenticate-request',
            'length_unit': 'CM',
            'packages': [{'height': 36,
                          'length': 39,
                          'weight': 15,
                          'width': 69}],
            'packaging_type': '02',
            'reason_for_export': 'OTHER',
            'service': '11',
            'ship_addr1': '456 Warehouse St',
            'ship_city': 'Heilbronn',
            'ship_code': '74078',
            'ship_contact': 'Shipping Department',
            'ship_country': 'DE',
            'ship_phone': '1231231234',
            'ship_state': '',
            'ship_tax_id': '123456789',
            'shipment_description': 'Photo booth rental',
            'shipper': 'My Company',
            'sold_addr1': '123 Main St',
            'sold_city': 'Bern',
            'sold_code': '3012',
            'sold_company': 'Acme Inc.',
            'sold_country': 'CH',
            'sold_name': 'John Doe',
            'sold_phone': '1231231234',
            'sold_state': 'BE',
            'sold_tax_id': '123abc',
            'special_instructions': 'Temporary export for rental. No transfer '
                                    'of ownership.',
            'test': True,
            'to_addr1': '789 Destination Ave',
            'to_attention_name': 'John Doe',
            'to_city': 'Bern',
            'to_code': '3012',
            'to_country': 'CH',
            'to_name': 'John Doe',
            'to_phone': '1231231234',
            'to_state': 'BE',
            'trade_terms': 'DDP',
            'weight_unit': 'KGS'}}

)

rs.request(
  {"carrier"=>"UPS-REST",
 "action"=>"submitshipment",
 "params"=>
  {"test"=>true,
   "key"=>"your-key-from-authenticate-request",
   "account_number"=>"YOUR_ACCOUNT",
   "customs_forms"=>"01",
   "currency"=>"EUR",
   "invoice_date"=>"20260309",
   "reason_for_export"=>"OTHER",
   "invoice_line_total"=>550,
   "trade_terms"=>"DDP",
   "declaration_statement"=>"",
   "special_instructions"=>
    "Temporary export for rental. No transfer of ownership.",
   "packages"=>[{"weight"=>15, "length"=>39, "width"=>69, "height"=>36}],
   "customs"=>
    [{"invoice_line_number"=>"1",
      "invoice_line_part_number"=>"FB",
      "invoice_line_description"=>"Photo booth rental bundle",
      "invoice_line_value"=>"550",
      "invoice_line_origin_country_code"=>"DE",
      "commodity_code"=>"8525.80.30.00",
      "customs_quantity_units"=>"EA"}],
   "sold_company"=>"Acme Inc.",
   "sold_name"=>"John Doe",
   "sold_tax_id"=>"123abc",
   "sold_phone"=>"1231231234",
   "sold_addr1"=>"123 Main St",
   "sold_city"=>"Bern",
   "sold_state"=>"BE",
   "sold_code"=>"3012",
   "sold_country"=>"CH",
   "service"=>"11",
   "shipper"=>"My Company",
   "ship_contact"=>"Shipping Department",
   "ship_addr1"=>"456 Warehouse St",
   "ship_city"=>"Heilbronn",
   "ship_state"=>"",
   "ship_code"=>"74078",
   "ship_country"=>"DE",
   "ship_phone"=>"1231231234",
   "ship_tax_id"=>"123456789",
   "to_attention_name"=>"John Doe",
   "to_name"=>"John Doe",
   "to_addr1"=>"789 Destination Ave",
   "to_city"=>"Bern",
   "to_state"=>"BE",
   "to_code"=>"3012",
   "to_country"=>"CH",
   "to_phone"=>"1231231234",
   "image_type"=>"ZPL",
   "shipment_description"=>"Photo booth rental",
   "packaging_type"=>"02",
   "weight_unit"=>"KGS",
   "length_unit"=>"CM"}}

)

rocketshipit.request(
  {
  "carrier": "UPS-REST",
  "action": "submitshipment",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "account_number": "YOUR_ACCOUNT",
    "customs_forms": "01",
    "currency": "EUR",
    "invoice_date": "20260309",
    "reason_for_export": "OTHER",
    "invoice_line_total": 550,
    "trade_terms": "DDP",
    "declaration_statement": "",
    "special_instructions": "Temporary export for rental. No transfer of ownership.",
    "packages": [
      {
        "weight": 15,
        "length": 39,
        "width": 69,
        "height": 36
      }
    ],
    "customs": [
      {
        "invoice_line_number": "1",
        "invoice_line_part_number": "FB",
        "invoice_line_description": "Photo booth rental bundle",
        "invoice_line_value": "550",
        "invoice_line_origin_country_code": "DE",
        "commodity_code": "8525.80.30.00",
        "customs_quantity_units": "EA"
      }
    ],
    "sold_company": "Acme Inc.",
    "sold_name": "John Doe",
    "sold_tax_id": "123abc",
    "sold_phone": "1231231234",
    "sold_addr1": "123 Main St",
    "sold_city": "Bern",
    "sold_state": "BE",
    "sold_code": "3012",
    "sold_country": "CH",
    "service": "11",
    "shipper": "My Company",
    "ship_contact": "Shipping Department",
    "ship_addr1": "456 Warehouse St",
    "ship_city": "Heilbronn",
    "ship_state": "",
    "ship_code": "74078",
    "ship_country": "DE",
    "ship_phone": "1231231234",
    "ship_tax_id": "123456789",
    "to_attention_name": "John Doe",
    "to_name": "John Doe",
    "to_addr1": "789 Destination Ave",
    "to_city": "Bern",
    "to_state": "BE",
    "to_code": "3012",
    "to_country": "CH",
    "to_phone": "1231231234",
    "image_type": "ZPL",
    "shipment_description": "Photo booth rental",
    "packaging_type": "02",
    "weight_unit": "KGS",
    "length_unit": "CM"
  }
}
)

← All UPS-REST examples