FedEx-REST - Label International w/ Sold-To Importer on CI

Carrier
FedEx-REST
Action
Label International w/ Sold-To Importer on CI
{
  "carrier": "FedEx-REST",
  "action": "submitshipment",
  "params": {
    "key": "your-key-from-authenticate-request",
    "test": true,
    "customs_value": 50,
    "currency": "USD",
    "export_compliance_statement": "NO_EEI 30.37(a)",
    "generate_docs": [
      "COMMERCIAL_INVOICE"
    ],
    "packages": [
      {
        "weight": 5,
        "length": 1,
        "width": 1,
        "height": 1
      }
    ],
    "customs": [
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_line_amount": 50.00,
        "country_of_manufacture": "US",
        "customs_weight": 2.5,
        "customs_description": "My Description"
      }
    ],
    "sold_is_importer": true,
    "sold_company": "Acme Imports GmbH",
    "sold_name": "Hans Muster",
    "sold_email": "[email protected]",
    "sold_phone": "4312345678",
    "sold_tax_id": "ATU12345678",
    "sold_tax_id_type": "VAT",
    "sold_addr1": "Kaerntner Ring 1",
    "sold_city": "Vienna",
    "sold_code": "1010",
    "sold_country": "AT",
    "service": "INTERNATIONAL_PRIORITY",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_addr1": "2300 Southern Blvd",
    "ship_city": "Bronx",
    "ship_state": "NY",
    "ship_code": "10460",
    "ship_country": "US",
    "ship_phone": "1231231234",
    "to_name": "Wei Chen",
    "to_company": "Shanghai Trading Co.",
    "to_addr1": "1000 Nanjing Rd",
    "to_city": "Shanghai",
    "to_code": "200001",
    "to_country": "CN",
    "to_phone": "8612345678",
    "image_type": "PNG",
    "shipment_description": "xxx",
    "packaging_type": "YOUR_PACKAGING",
    "weight_unit": "LB",
    "length_unit": "IN"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx-REST',
  'action' => 'submitshipment',
  'params' => 
  array (
    'key' => 'your-key-from-authenticate-request',
    'test' => true,
    'customs_value' => 50,
    'currency' => 'USD',
    'export_compliance_statement' => 'NO_EEI 30.37(a)',
    'generate_docs' => 
    array (
      0 => 'COMMERCIAL_INVOICE',
    ),
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 5,
        'length' => 1,
        'width' => 1,
        'height' => 1,
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'customs_quantity_units' => 'EA',
        'customs_quantity' => 1,
        'customs_line_amount' => 50.0,
        'country_of_manufacture' => 'US',
        'customs_weight' => 2.5,
        'customs_description' => 'My Description',
      ),
    ),
    'sold_is_importer' => true,
    'sold_company' => 'Acme Imports GmbH',
    'sold_name' => 'Hans Muster',
    'sold_email' => '[email protected]',
    'sold_phone' => '4312345678',
    'sold_tax_id' => 'ATU12345678',
    'sold_tax_id_type' => 'VAT',
    'sold_addr1' => 'Kaerntner Ring 1',
    'sold_city' => 'Vienna',
    'sold_code' => '1010',
    'sold_country' => 'AT',
    'service' => 'INTERNATIONAL_PRIORITY',
    'shipper' => 'John Doe',
    'ship_contact' => 'John Doe',
    'ship_addr1' => '2300 Southern Blvd',
    'ship_city' => 'Bronx',
    'ship_state' => 'NY',
    'ship_code' => '10460',
    'ship_country' => 'US',
    'ship_phone' => '1231231234',
    'to_name' => 'Wei Chen',
    'to_company' => 'Shanghai Trading Co.',
    'to_addr1' => '1000 Nanjing Rd',
    'to_city' => 'Shanghai',
    'to_code' => '200001',
    'to_country' => 'CN',
    'to_phone' => '8612345678',
    'image_type' => 'PNG',
    'shipment_description' => 'xxx',
    'packaging_type' => 'YOUR_PACKAGING',
    'weight_unit' => 'LB',
    'length_unit' => 'IN',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'FedEx-REST',
 'params': {'currency': 'USD',
            'customs': [{'country_of_manufacture': 'US',
                         'customs_description': 'My Description',
                         'customs_line_amount': 50.0,
                         'customs_quantity': 1,
                         'customs_quantity_units': 'EA',
                         'customs_weight': 2.5}],
            'customs_value': 50,
            'export_compliance_statement': 'NO_EEI 30.37(a)',
            'generate_docs': ['COMMERCIAL_INVOICE'],
            'image_type': 'PNG',
            'key': 'your-key-from-authenticate-request',
            'length_unit': 'IN',
            'packages': [{'height': 1, 'length': 1, 'weight': 5, 'width': 1}],
            'packaging_type': 'YOUR_PACKAGING',
            'service': 'INTERNATIONAL_PRIORITY',
            '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': 'xxx',
            'shipper': 'John Doe',
            'sold_addr1': 'Kaerntner Ring 1',
            'sold_city': 'Vienna',
            'sold_code': '1010',
            'sold_company': 'Acme Imports GmbH',
            'sold_country': 'AT',
            'sold_email': '[email protected]',
            'sold_is_importer': True,
            'sold_name': 'Hans Muster',
            'sold_phone': '4312345678',
            'sold_tax_id': 'ATU12345678',
            'sold_tax_id_type': 'VAT',
            'test': True,
            'to_addr1': '1000 Nanjing Rd',
            'to_city': 'Shanghai',
            'to_code': '200001',
            'to_company': 'Shanghai Trading Co.',
            'to_country': 'CN',
            'to_name': 'Wei Chen',
            'to_phone': '8612345678',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-REST",
 "action"=>"submitshipment",
 "params"=>
  {"key"=>"your-key-from-authenticate-request",
   "test"=>true,
   "customs_value"=>50,
   "currency"=>"USD",
   "export_compliance_statement"=>"NO_EEI 30.37(a)",
   "generate_docs"=>["COMMERCIAL_INVOICE"],
   "packages"=>[{"weight"=>5, "length"=>1, "width"=>1, "height"=>1}],
   "customs"=>
    [{"customs_quantity_units"=>"EA",
      "customs_quantity"=>1,
      "customs_line_amount"=>50.0,
      "country_of_manufacture"=>"US",
      "customs_weight"=>2.5,
      "customs_description"=>"My Description"}],
   "sold_is_importer"=>true,
   "sold_company"=>"Acme Imports GmbH",
   "sold_name"=>"Hans Muster",
   "sold_email"=>"[email protected]",
   "sold_phone"=>"4312345678",
   "sold_tax_id"=>"ATU12345678",
   "sold_tax_id_type"=>"VAT",
   "sold_addr1"=>"Kaerntner Ring 1",
   "sold_city"=>"Vienna",
   "sold_code"=>"1010",
   "sold_country"=>"AT",
   "service"=>"INTERNATIONAL_PRIORITY",
   "shipper"=>"John Doe",
   "ship_contact"=>"John Doe",
   "ship_addr1"=>"2300 Southern Blvd",
   "ship_city"=>"Bronx",
   "ship_state"=>"NY",
   "ship_code"=>"10460",
   "ship_country"=>"US",
   "ship_phone"=>"1231231234",
   "to_name"=>"Wei Chen",
   "to_company"=>"Shanghai Trading Co.",
   "to_addr1"=>"1000 Nanjing Rd",
   "to_city"=>"Shanghai",
   "to_code"=>"200001",
   "to_country"=>"CN",
   "to_phone"=>"8612345678",
   "image_type"=>"PNG",
   "shipment_description"=>"xxx",
   "packaging_type"=>"YOUR_PACKAGING",
   "weight_unit"=>"LB",
   "length_unit"=>"IN"}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-REST",
  "action": "submitshipment",
  "params": {
    "key": "your-key-from-authenticate-request",
    "test": true,
    "customs_value": 50,
    "currency": "USD",
    "export_compliance_statement": "NO_EEI 30.37(a)",
    "generate_docs": [
      "COMMERCIAL_INVOICE"
    ],
    "packages": [
      {
        "weight": 5,
        "length": 1,
        "width": 1,
        "height": 1
      }
    ],
    "customs": [
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_line_amount": 50.00,
        "country_of_manufacture": "US",
        "customs_weight": 2.5,
        "customs_description": "My Description"
      }
    ],
    "sold_is_importer": true,
    "sold_company": "Acme Imports GmbH",
    "sold_name": "Hans Muster",
    "sold_email": "[email protected]",
    "sold_phone": "4312345678",
    "sold_tax_id": "ATU12345678",
    "sold_tax_id_type": "VAT",
    "sold_addr1": "Kaerntner Ring 1",
    "sold_city": "Vienna",
    "sold_code": "1010",
    "sold_country": "AT",
    "service": "INTERNATIONAL_PRIORITY",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_addr1": "2300 Southern Blvd",
    "ship_city": "Bronx",
    "ship_state": "NY",
    "ship_code": "10460",
    "ship_country": "US",
    "ship_phone": "1231231234",
    "to_name": "Wei Chen",
    "to_company": "Shanghai Trading Co.",
    "to_addr1": "1000 Nanjing Rd",
    "to_city": "Shanghai",
    "to_code": "200001",
    "to_country": "CN",
    "to_phone": "8612345678",
    "image_type": "PNG",
    "shipment_description": "xxx",
    "packaging_type": "YOUR_PACKAGING",
    "weight_unit": "LB",
    "length_unit": "IN"
  }
}

)

← All FedEx-REST examples