{
"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": "20260204",
"reason_for_export": "RETURN",
"invoice_line_total": 550,
"trade_terms": "EXW",
"declaration_statement": "",
"import_control_code": "05",
"special_instructions": "Return of rented goods. No sale. Return to owner.",
"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": "530",
"invoice_line_origin_country_code": "DE",
"commodity_code": "8525.80.30.00",
"customs_quantity_units": "EA"
}
],
"sold_company": "My Company",
"sold_name": "John Doe",
"sold_tax_id": "123456789",
"sold_phone": "1231231234",
"sold_addr1": "456 Warehouse St",
"sold_city": "Bad Friedrichshall",
"sold_state": "",
"sold_code": "74177",
"sold_country": "DE",
"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",
"to_attention_name": "My Company",
"to_name": "My Company",
"to_addr1": "456 Warehouse St",
"to_city": "Heilbronn",
"to_state": "",
"to_code": "74078",
"to_country": "DE",
"to_phone": "1231231234",
"from_company": "My Company c/o Partner AG",
"from_name": "My Company c/o Partner AG",
"from_addr1": "123 Swiss St",
"from_city": "St.Gallen",
"from_state": "SG",
"from_code": "9004",
"from_country": "CH",
"image_type": "ZPL",
"shipment_description": "Photo booth return",
"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' => '20260204',
'reason_for_export' => 'RETURN',
'invoice_line_total' => 550,
'trade_terms' => 'EXW',
'declaration_statement' => '',
'import_control_code' => '05',
'special_instructions' => 'Return of rented goods. No sale. Return to owner.',
'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' => '530',
'invoice_line_origin_country_code' => 'DE',
'commodity_code' => '8525.80.30.00',
'customs_quantity_units' => 'EA',
),
),
'sold_company' => 'My Company',
'sold_name' => 'John Doe',
'sold_tax_id' => '123456789',
'sold_phone' => '1231231234',
'sold_addr1' => '456 Warehouse St',
'sold_city' => 'Bad Friedrichshall',
'sold_state' => '',
'sold_code' => '74177',
'sold_country' => 'DE',
'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',
'to_attention_name' => 'My Company',
'to_name' => 'My Company',
'to_addr1' => '456 Warehouse St',
'to_city' => 'Heilbronn',
'to_state' => '',
'to_code' => '74078',
'to_country' => 'DE',
'to_phone' => '1231231234',
'from_company' => 'My Company c/o Partner AG',
'from_name' => 'My Company c/o Partner AG',
'from_addr1' => '123 Swiss St',
'from_city' => 'St.Gallen',
'from_state' => 'SG',
'from_code' => '9004',
'from_country' => 'CH',
'image_type' => 'ZPL',
'shipment_description' => 'Photo booth return',
'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': '530'}],
'customs_forms': '01',
'declaration_statement': '',
'from_addr1': '123 Swiss St',
'from_city': 'St.Gallen',
'from_code': '9004',
'from_company': 'My Company c/o Partner AG',
'from_country': 'CH',
'from_name': 'My Company c/o Partner AG',
'from_state': 'SG',
'image_type': 'ZPL',
'import_control_code': '05',
'invoice_date': '20260204',
'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': 'RETURN',
'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': '',
'shipment_description': 'Photo booth return',
'shipper': 'My Company',
'sold_addr1': '456 Warehouse St',
'sold_city': 'Bad Friedrichshall',
'sold_code': '74177',
'sold_company': 'My Company',
'sold_country': 'DE',
'sold_name': 'John Doe',
'sold_phone': '1231231234',
'sold_state': '',
'sold_tax_id': '123456789',
'special_instructions': 'Return of rented goods. No sale. Return '
'to owner.',
'test': True,
'to_addr1': '456 Warehouse St',
'to_attention_name': 'My Company',
'to_city': 'Heilbronn',
'to_code': '74078',
'to_country': 'DE',
'to_name': 'My Company',
'to_phone': '1231231234',
'to_state': '',
'trade_terms': 'EXW',
'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"=>"20260204",
"reason_for_export"=>"RETURN",
"invoice_line_total"=>550,
"trade_terms"=>"EXW",
"declaration_statement"=>"",
"import_control_code"=>"05",
"special_instructions"=>"Return of rented goods. No sale. Return to owner.",
"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"=>"530",
"invoice_line_origin_country_code"=>"DE",
"commodity_code"=>"8525.80.30.00",
"customs_quantity_units"=>"EA"}],
"sold_company"=>"My Company",
"sold_name"=>"John Doe",
"sold_tax_id"=>"123456789",
"sold_phone"=>"1231231234",
"sold_addr1"=>"456 Warehouse St",
"sold_city"=>"Bad Friedrichshall",
"sold_state"=>"",
"sold_code"=>"74177",
"sold_country"=>"DE",
"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",
"to_attention_name"=>"My Company",
"to_name"=>"My Company",
"to_addr1"=>"456 Warehouse St",
"to_city"=>"Heilbronn",
"to_state"=>"",
"to_code"=>"74078",
"to_country"=>"DE",
"to_phone"=>"1231231234",
"from_company"=>"My Company c/o Partner AG",
"from_name"=>"My Company c/o Partner AG",
"from_addr1"=>"123 Swiss St",
"from_city"=>"St.Gallen",
"from_state"=>"SG",
"from_code"=>"9004",
"from_country"=>"CH",
"image_type"=>"ZPL",
"shipment_description"=>"Photo booth return",
"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": "20260204",
"reason_for_export": "RETURN",
"invoice_line_total": 550,
"trade_terms": "EXW",
"declaration_statement": "",
"import_control_code": "05",
"special_instructions": "Return of rented goods. No sale. Return to owner.",
"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": "530",
"invoice_line_origin_country_code": "DE",
"commodity_code": "8525.80.30.00",
"customs_quantity_units": "EA"
}
],
"sold_company": "My Company",
"sold_name": "John Doe",
"sold_tax_id": "123456789",
"sold_phone": "1231231234",
"sold_addr1": "456 Warehouse St",
"sold_city": "Bad Friedrichshall",
"sold_state": "",
"sold_code": "74177",
"sold_country": "DE",
"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",
"to_attention_name": "My Company",
"to_name": "My Company",
"to_addr1": "456 Warehouse St",
"to_city": "Heilbronn",
"to_state": "",
"to_code": "74078",
"to_country": "DE",
"to_phone": "1231231234",
"from_company": "My Company c/o Partner AG",
"from_name": "My Company c/o Partner AG",
"from_addr1": "123 Swiss St",
"from_city": "St.Gallen",
"from_state": "SG",
"from_code": "9004",
"from_country": "CH",
"image_type": "ZPL",
"shipment_description": "Photo booth return",
"packaging_type": "02",
"weight_unit": "KGS",
"length_unit": "CM"
}
}
)