{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"b13a_filing_option": "NOT_REQUIRED",
"export_compliance_statement": "NO EEI 30.37(f)",
"packages": [
{
"weight": 12,
"length": 0,
"width": 0,
"height": 0,
"reference_code": "INVOICE_NUMBER",
"reference_value": "79631"
}
],
"shipper": "Acme, Inc.",
"ship_addr1": "273 Cahaba Valley Pkwy",
"ship_city": "Pelham",
"ship_state": "AL",
"ship_code": "35124",
"ship_country": "US",
"ship_phone": "(123) 123.6183",
"to_name": "John Doe",
"to_company": "Bogota DC",
"to_addr1": "Calle 151",
"to_attention_name": "John Doe",
"to_phone": "1113444356",
"to_country": "CO",
"to_city": "Bogota",
"to_state": null,
"to_code": "110131",
"weight_unit": "LBS",
"length_unit": "IN",
"packaging_type": "YOUR_PACKAGING",
"fedex_one_rate": false,
"service": "INTERNATIONAL_PRIORITY",
"negotiated_rates": true,
"currency": "USD",
"sold_company": "Acme, Inc.",
"sold_name": "John Doe",
"sold_tax_id": "",
"sold_phone": "1113444356",
"sold_addr1": "Calle 151",
"sold_city": "Bogota",
"sold_state": null,
"sold_code": "110131",
"sold_country": "CO",
"customs_value": 262.89,
"customs": [
{
"customs_quantity_units": "EA",
"customs_quantity": 500,
"customs_line_amount": 55,
"country_of_manufacture": "US",
"customs_weight": 10,
"customs_description": "Cards"
}
],
"ship_contact": "Sales Person2",
"shipment_description": "PRINTED MATERIALS",
"generate_docs": [
"COMMERCIAL_INVOICE"
]
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'b13a_filing_option' => 'NOT_REQUIRED',
'export_compliance_statement' => 'NO EEI 30.37(f)',
'packages' =>
array (
0 =>
array (
'weight' => 12,
'length' => 0,
'width' => 0,
'height' => 0,
'reference_code' => 'INVOICE_NUMBER',
'reference_value' => '79631',
),
),
'shipper' => 'Acme, Inc.',
'ship_addr1' => '273 Cahaba Valley Pkwy',
'ship_city' => 'Pelham',
'ship_state' => 'AL',
'ship_code' => '35124',
'ship_country' => 'US',
'ship_phone' => '(123) 123.6183',
'to_name' => 'John Doe',
'to_company' => 'Bogota DC',
'to_addr1' => 'Calle 151',
'to_attention_name' => 'John Doe',
'to_phone' => '1113444356',
'to_country' => 'CO',
'to_city' => 'Bogota',
'to_state' => NULL,
'to_code' => '110131',
'weight_unit' => 'LBS',
'length_unit' => 'IN',
'packaging_type' => 'YOUR_PACKAGING',
'fedex_one_rate' => false,
'service' => 'INTERNATIONAL_PRIORITY',
'negotiated_rates' => true,
'currency' => 'USD',
'sold_company' => 'Acme, Inc.',
'sold_name' => 'John Doe',
'sold_tax_id' => '',
'sold_phone' => '1113444356',
'sold_addr1' => 'Calle 151',
'sold_city' => 'Bogota',
'sold_state' => NULL,
'sold_code' => '110131',
'sold_country' => 'CO',
'customs_value' => 262.89,
'customs' =>
array (
0 =>
array (
'customs_quantity_units' => 'EA',
'customs_quantity' => 500,
'customs_line_amount' => 55,
'country_of_manufacture' => 'US',
'customs_weight' => 10,
'customs_description' => 'Cards',
),
),
'ship_contact' => 'Sales Person2',
'shipment_description' => 'PRINTED MATERIALS',
'generate_docs' =>
array (
0 => 'COMMERCIAL_INVOICE',
),
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'FedEx',
'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
'b13a_filing_option': 'NOT_REQUIRED',
'currency': 'USD',
'customs': [{'country_of_manufacture': 'US',
'customs_description': 'Cards',
'customs_line_amount': 55,
'customs_quantity': 500,
'customs_quantity_units': 'EA',
'customs_weight': 10}],
'customs_value': 262.89,
'export_compliance_statement': 'NO EEI 30.37(f)',
'fedex_one_rate': False,
'generate_docs': ['COMMERCIAL_INVOICE'],
'key': 'YOUR_KEY',
'length_unit': 'IN',
'meter_number': 'YOUR_METER_NUMBER',
'negotiated_rates': True,
'packages': [{'height': 0,
'length': 0,
'reference_code': 'INVOICE_NUMBER',
'reference_value': '79631',
'weight': 12,
'width': 0}],
'packaging_type': 'YOUR_PACKAGING',
'password': 'YOUR_PASSWORD',
'service': 'INTERNATIONAL_PRIORITY',
'ship_addr1': '273 Cahaba Valley Pkwy',
'ship_city': 'Pelham',
'ship_code': '35124',
'ship_contact': 'Sales Person2',
'ship_country': 'US',
'ship_phone': '(123) 123.6183',
'ship_state': 'AL',
'shipment_description': 'PRINTED MATERIALS',
'shipper': 'Acme, Inc.',
'sold_addr1': 'Calle 151',
'sold_city': 'Bogota',
'sold_code': '110131',
'sold_company': 'Acme, Inc.',
'sold_country': 'CO',
'sold_name': 'John Doe',
'sold_phone': '1113444356',
'sold_state': None,
'sold_tax_id': '',
'to_addr1': 'Calle 151',
'to_attention_name': 'John Doe',
'to_city': 'Bogota',
'to_code': '110131',
'to_company': 'Bogota DC',
'to_country': 'CO',
'to_name': 'John Doe',
'to_phone': '1113444356',
'to_state': None,
'weight_unit': 'LBS'}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"SubmitShipment",
"params"=>
{"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"b13a_filing_option"=>"NOT_REQUIRED",
"export_compliance_statement"=>"NO EEI 30.37(f)",
"packages"=>
[{"weight"=>12,
"length"=>0,
"width"=>0,
"height"=>0,
"reference_code"=>"INVOICE_NUMBER",
"reference_value"=>"79631"}],
"shipper"=>"Acme, Inc.",
"ship_addr1"=>"273 Cahaba Valley Pkwy",
"ship_city"=>"Pelham",
"ship_state"=>"AL",
"ship_code"=>"35124",
"ship_country"=>"US",
"ship_phone"=>"(123) 123.6183",
"to_name"=>"John Doe",
"to_company"=>"Bogota DC",
"to_addr1"=>"Calle 151",
"to_attention_name"=>"John Doe",
"to_phone"=>"1113444356",
"to_country"=>"CO",
"to_city"=>"Bogota",
"to_state"=>nil,
"to_code"=>"110131",
"weight_unit"=>"LBS",
"length_unit"=>"IN",
"packaging_type"=>"YOUR_PACKAGING",
"fedex_one_rate"=>false,
"service"=>"INTERNATIONAL_PRIORITY",
"negotiated_rates"=>true,
"currency"=>"USD",
"sold_company"=>"Acme, Inc.",
"sold_name"=>"John Doe",
"sold_tax_id"=>"",
"sold_phone"=>"1113444356",
"sold_addr1"=>"Calle 151",
"sold_city"=>"Bogota",
"sold_state"=>nil,
"sold_code"=>"110131",
"sold_country"=>"CO",
"customs_value"=>262.89,
"customs"=>
[{"customs_quantity_units"=>"EA",
"customs_quantity"=>500,
"customs_line_amount"=>55,
"country_of_manufacture"=>"US",
"customs_weight"=>10,
"customs_description"=>"Cards"}],
"ship_contact"=>"Sales Person2",
"shipment_description"=>"PRINTED MATERIALS",
"generate_docs"=>["COMMERCIAL_INVOICE"]}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"b13a_filing_option": "NOT_REQUIRED",
"export_compliance_statement": "NO EEI 30.37(f)",
"packages": [
{
"weight": 12,
"length": 0,
"width": 0,
"height": 0,
"reference_code": "INVOICE_NUMBER",
"reference_value": "79631"
}
],
"shipper": "Acme, Inc.",
"ship_addr1": "273 Cahaba Valley Pkwy",
"ship_city": "Pelham",
"ship_state": "AL",
"ship_code": "35124",
"ship_country": "US",
"ship_phone": "(123) 123.6183",
"to_name": "John Doe",
"to_company": "Bogota DC",
"to_addr1": "Calle 151",
"to_attention_name": "John Doe",
"to_phone": "1113444356",
"to_country": "CO",
"to_city": "Bogota",
"to_state": null,
"to_code": "110131",
"weight_unit": "LBS",
"length_unit": "IN",
"packaging_type": "YOUR_PACKAGING",
"fedex_one_rate": false,
"service": "INTERNATIONAL_PRIORITY",
"negotiated_rates": true,
"currency": "USD",
"sold_company": "Acme, Inc.",
"sold_name": "John Doe",
"sold_tax_id": "",
"sold_phone": "1113444356",
"sold_addr1": "Calle 151",
"sold_city": "Bogota",
"sold_state": null,
"sold_code": "110131",
"sold_country": "CO",
"customs_value": 262.89,
"customs": [
{
"customs_quantity_units": "EA",
"customs_quantity": 500,
"customs_line_amount": 55,
"country_of_manufacture": "US",
"customs_weight": 10,
"customs_description": "Cards"
}
],
"ship_contact": "Sales Person2",
"shipment_description": "PRINTED MATERIALS",
"generate_docs": [
"COMMERCIAL_INVOICE"
]
}
}
)