FedEx-REST - Label International CPSC eFiling (US import)

Carrier
FedEx-REST
Action
Label International CPSC eFiling (US import)
{
  "carrier": "FedEx-REST",
  "action": "submitshipment",
  "params": {
    "test": true,
    "generate_docs": [
      "COMMERCIAL_INVOICE"
    ],
    "currency": "USD",
    "packages": [
      {
        "weight": 2,
        "length": 20,
        "width": 15,
        "height": 10
      }
    ],
    "customs": [
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_line_amount": 45.00,
        "country_of_manufacture": "CA",
        "customs_weight": 2,
        "customs_description": "Children's building blocks toy set",
        "customs_hs_tariff": "9503.00",
        "regulatory_details": [
          {
            "regulation_code": "CPSC",
            "product_id": "00012345678905",
            "product_id_type": "GTIN"
          }
        ]
      }
    ],
    "customs_value": 45.00,
    "service": "INTERNATIONAL_PRIORITY",
    "shipper": "Toys North Ltd",
    "ship_contact": "Marie Tremblay",
    "ship_addr1": "500 Rue Sainte-Catherine",
    "ship_city": "Montreal",
    "ship_state": "QC",
    "ship_code": "H3B1B8",
    "ship_country": "CA",
    "ship_phone": "5145551234",
    "to_attention_name": "John Buyer",
    "to_name": "John Buyer",
    "to_addr1": "100 Market Street",
    "to_city": "Philadelphia",
    "to_state": "PA",
    "to_code": "19106",
    "to_country": "US",
    "to_phone": "2155551234",
    "shipment_description": "Children's toy set",
    "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 (
    'test' => true,
    'generate_docs' => 
    array (
      0 => 'COMMERCIAL_INVOICE',
    ),
    'currency' => 'USD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 2,
        'length' => 20,
        'width' => 15,
        'height' => 10,
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'customs_quantity_units' => 'EA',
        'customs_quantity' => 1,
        'customs_line_amount' => 45.0,
        'country_of_manufacture' => 'CA',
        'customs_weight' => 2,
        'customs_description' => 'Children\'s building blocks toy set',
        'customs_hs_tariff' => '9503.00',
        'regulatory_details' => 
        array (
          0 => 
          array (
            'regulation_code' => 'CPSC',
            'product_id' => '00012345678905',
            'product_id_type' => 'GTIN',
          ),
        ),
      ),
    ),
    'customs_value' => 45.0,
    'service' => 'INTERNATIONAL_PRIORITY',
    'shipper' => 'Toys North Ltd',
    'ship_contact' => 'Marie Tremblay',
    'ship_addr1' => '500 Rue Sainte-Catherine',
    'ship_city' => 'Montreal',
    'ship_state' => 'QC',
    'ship_code' => 'H3B1B8',
    'ship_country' => 'CA',
    'ship_phone' => '5145551234',
    'to_attention_name' => 'John Buyer',
    'to_name' => 'John Buyer',
    'to_addr1' => '100 Market Street',
    'to_city' => 'Philadelphia',
    'to_state' => 'PA',
    'to_code' => '19106',
    'to_country' => 'US',
    'to_phone' => '2155551234',
    'shipment_description' => 'Children\'s toy set',
    'packaging_type' => 'YOUR_PACKAGING',
    'weight_unit' => 'LB',
    'length_unit' => 'IN',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'FedEx-REST',
 'params': {'currency': 'USD',
            'customs': [{'country_of_manufacture': 'CA',
                         'customs_description': "Children's building blocks "
                                                'toy set',
                         'customs_hs_tariff': '9503.00',
                         'customs_line_amount': 45.0,
                         'customs_quantity': 1,
                         'customs_quantity_units': 'EA',
                         'customs_weight': 2,
                         'regulatory_details': [{'product_id': '00012345678905',
                                                 'product_id_type': 'GTIN',
                                                 'regulation_code': 'CPSC'}]}],
            'customs_value': 45.0,
            'generate_docs': ['COMMERCIAL_INVOICE'],
            'length_unit': 'IN',
            'packages': [{'height': 10,
                          'length': 20,
                          'weight': 2,
                          'width': 15}],
            'packaging_type': 'YOUR_PACKAGING',
            'service': 'INTERNATIONAL_PRIORITY',
            'ship_addr1': '500 Rue Sainte-Catherine',
            'ship_city': 'Montreal',
            'ship_code': 'H3B1B8',
            'ship_contact': 'Marie Tremblay',
            'ship_country': 'CA',
            'ship_phone': '5145551234',
            'ship_state': 'QC',
            'shipment_description': "Children's toy set",
            'shipper': 'Toys North Ltd',
            'test': True,
            'to_addr1': '100 Market Street',
            'to_attention_name': 'John Buyer',
            'to_city': 'Philadelphia',
            'to_code': '19106',
            'to_country': 'US',
            'to_name': 'John Buyer',
            'to_phone': '2155551234',
            'to_state': 'PA',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-REST",
 "action"=>"submitshipment",
 "params"=>
  {"test"=>true,
   "generate_docs"=>["COMMERCIAL_INVOICE"],
   "currency"=>"USD",
   "packages"=>[{"weight"=>2, "length"=>20, "width"=>15, "height"=>10}],
   "customs"=>
    [{"customs_quantity_units"=>"EA",
      "customs_quantity"=>1,
      "customs_line_amount"=>45.0,
      "country_of_manufacture"=>"CA",
      "customs_weight"=>2,
      "customs_description"=>"Children's building blocks toy set",
      "customs_hs_tariff"=>"9503.00",
      "regulatory_details"=>
       [{"regulation_code"=>"CPSC",
         "product_id"=>"00012345678905",
         "product_id_type"=>"GTIN"}]}],
   "customs_value"=>45.0,
   "service"=>"INTERNATIONAL_PRIORITY",
   "shipper"=>"Toys North Ltd",
   "ship_contact"=>"Marie Tremblay",
   "ship_addr1"=>"500 Rue Sainte-Catherine",
   "ship_city"=>"Montreal",
   "ship_state"=>"QC",
   "ship_code"=>"H3B1B8",
   "ship_country"=>"CA",
   "ship_phone"=>"5145551234",
   "to_attention_name"=>"John Buyer",
   "to_name"=>"John Buyer",
   "to_addr1"=>"100 Market Street",
   "to_city"=>"Philadelphia",
   "to_state"=>"PA",
   "to_code"=>"19106",
   "to_country"=>"US",
   "to_phone"=>"2155551234",
   "shipment_description"=>"Children's toy set",
   "packaging_type"=>"YOUR_PACKAGING",
   "weight_unit"=>"LB",
   "length_unit"=>"IN"}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-REST",
  "action": "submitshipment",
  "params": {
    "test": true,
    "generate_docs": [
      "COMMERCIAL_INVOICE"
    ],
    "currency": "USD",
    "packages": [
      {
        "weight": 2,
        "length": 20,
        "width": 15,
        "height": 10
      }
    ],
    "customs": [
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_line_amount": 45.00,
        "country_of_manufacture": "CA",
        "customs_weight": 2,
        "customs_description": "Children's building blocks toy set",
        "customs_hs_tariff": "9503.00",
        "regulatory_details": [
          {
            "regulation_code": "CPSC",
            "product_id": "00012345678905",
            "product_id_type": "GTIN"
          }
        ]
      }
    ],
    "customs_value": 45.00,
    "service": "INTERNATIONAL_PRIORITY",
    "shipper": "Toys North Ltd",
    "ship_contact": "Marie Tremblay",
    "ship_addr1": "500 Rue Sainte-Catherine",
    "ship_city": "Montreal",
    "ship_state": "QC",
    "ship_code": "H3B1B8",
    "ship_country": "CA",
    "ship_phone": "5145551234",
    "to_attention_name": "John Buyer",
    "to_name": "John Buyer",
    "to_addr1": "100 Market Street",
    "to_city": "Philadelphia",
    "to_state": "PA",
    "to_code": "19106",
    "to_country": "US",
    "to_phone": "2155551234",
    "shipment_description": "Children's toy set",
    "packaging_type": "YOUR_PACKAGING",
    "weight_unit": "LB",
    "length_unit": "IN"
  }
}

)

← All FedEx-REST examples