FedEx-REST - Label International w/ CI and NAFTA

Carrier: FedEx-REST
Action: Label International w/ CI and NAFTA
Description: Example implementation for FedEx-REST Label International w/ CI and NAFTA
{
  "carrier": "FedEx-REST",
  "action": "SubmitShipment",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "generate_docs": [
      "COMMERCIAL_INVOICE",
      "NAFTA_CERTIFICATE_OF_ORIGIN"
    ],
    "currency": "CAD",
    "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",
        "customs_hs_tariff": "2000"
      },
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_line_amount": 50.00,
        "country_of_manufacture": "US",
        "customs_weight": 2.5,
        "customs_description": "My Description",
        "number_of_packages_per_commodity": 2
      }
    ],
    "customs_value": 100.00,
    "customs_misc_charge_type": "OTHER",
    "customs_misc_charge": 10.00,
    "sold_company": "Acme Inc.",
    "sold_name": "John Doe",
    "sold_tax_id": "123abc",
    "sold_phone": "1231231234",
    "sold_addr1": "2000 Meadowvale Rd",
    "sold_city": "Toronto",
    "sold_state": "ON",
    "sold_code": "M1B5K7",
    "sold_country": "CA",
    "service": "INTERNATIONAL_PRIORITY",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_addr1": "2000 Meadowvale Rd",
    "ship_city": "Toronto",
    "ship_state": "ON",
    "ship_code": "M1B5K7",
    "ship_country": "CA",
    "ship_phone": "1231231234",
    "to_attention_name": "John Doe",
    "to_name": "John Doe",
    "to_addr1": "2300 Southern Blvd",
    "to_state": "NY",
    "to_city": "Bronx",
    "to_code": "10460",
    "to_country": "US",
    "to_phone": "1231231234",
    "image_type": "PNG",
    "shipment_description": "xxx",
    "packaging_type": "YOUR_PACKAGING",
    "pickup_type": "02",
    "weight_unit": "LB",
    "length_unit": "IN"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx-REST',
  'action' => 'SubmitShipment',
  'params' => 
  array (
    'test' => true,
    'key' => 'your-key-from-authenticate-request',
    'generate_docs' => 
    array (
      0 => 'COMMERCIAL_INVOICE',
      1 => 'NAFTA_CERTIFICATE_OF_ORIGIN',
    ),
    'currency' => 'CAD',
    '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',
        'customs_hs_tariff' => '2000',
      ),
      1 => 
      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',
        'number_of_packages_per_commodity' => 2,
      ),
    ),
    'customs_value' => 100.0,
    'customs_misc_charge_type' => 'OTHER',
    'customs_misc_charge' => 10.0,
    'sold_company' => 'Acme Inc.',
    'sold_name' => 'John Doe',
    'sold_tax_id' => '123abc',
    'sold_phone' => '1231231234',
    'sold_addr1' => '2000 Meadowvale Rd',
    'sold_city' => 'Toronto',
    'sold_state' => 'ON',
    'sold_code' => 'M1B5K7',
    'sold_country' => 'CA',
    'service' => 'INTERNATIONAL_PRIORITY',
    'shipper' => 'John Doe',
    'ship_contact' => 'John Doe',
    'ship_addr1' => '2000 Meadowvale Rd',
    'ship_city' => 'Toronto',
    'ship_state' => 'ON',
    'ship_code' => 'M1B5K7',
    'ship_country' => 'CA',
    'ship_phone' => '1231231234',
    'to_attention_name' => 'John Doe',
    'to_name' => 'John Doe',
    'to_addr1' => '2300 Southern Blvd',
    'to_state' => 'NY',
    'to_city' => 'Bronx',
    'to_code' => '10460',
    'to_country' => 'US',
    'to_phone' => '1231231234',
    'image_type' => 'PNG',
    'shipment_description' => 'xxx',
    'packaging_type' => 'YOUR_PACKAGING',
    'pickup_type' => '02',
    'weight_unit' => 'LB',
    'length_unit' => 'IN',
  ),
)
);

rs.request(
  {'action': 'SubmitShipment',
 'carrier': 'FedEx-REST',
 'params': {'currency': 'CAD',
            'customs': [{'country_of_manufacture': 'US',
                         'customs_description': 'My Description',
                         'customs_hs_tariff': '2000',
                         'customs_line_amount': 50.0,
                         'customs_quantity': 1,
                         'customs_quantity_units': 'EA',
                         'customs_weight': 2.5},
                        {'country_of_manufacture': 'US',
                         'customs_description': 'My Description',
                         'customs_line_amount': 50.0,
                         'customs_quantity': 1,
                         'customs_quantity_units': 'EA',
                         'customs_weight': 2.5,
                         'number_of_packages_per_commodity': 2}],
            'customs_misc_charge': 10.0,
            'customs_misc_charge_type': 'OTHER',
            'customs_value': 100.0,
            'generate_docs': ['COMMERCIAL_INVOICE',
                              'NAFTA_CERTIFICATE_OF_ORIGIN'],
            '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',
            'pickup_type': '02',
            'service': 'INTERNATIONAL_PRIORITY',
            'ship_addr1': '2000 Meadowvale Rd',
            'ship_city': 'Toronto',
            'ship_code': 'M1B5K7',
            'ship_contact': 'John Doe',
            'ship_country': 'CA',
            'ship_phone': '1231231234',
            'ship_state': 'ON',
            'shipment_description': 'xxx',
            'shipper': 'John Doe',
            'sold_addr1': '2000 Meadowvale Rd',
            'sold_city': 'Toronto',
            'sold_code': 'M1B5K7',
            'sold_company': 'Acme Inc.',
            'sold_country': 'CA',
            'sold_name': 'John Doe',
            'sold_phone': '1231231234',
            'sold_state': 'ON',
            'sold_tax_id': '123abc',
            'test': True,
            'to_addr1': '2300 Southern Blvd',
            'to_attention_name': 'John Doe',
            'to_city': 'Bronx',
            'to_code': '10460',
            'to_country': 'US',
            'to_name': 'John Doe',
            'to_phone': '1231231234',
            'to_state': 'NY',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-REST",
 "action"=>"SubmitShipment",
 "params"=>
  {"test"=>true,
   "key"=>"your-key-from-authenticate-request",
   "generate_docs"=>["COMMERCIAL_INVOICE", "NAFTA_CERTIFICATE_OF_ORIGIN"],
   "currency"=>"CAD",
   "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",
      "customs_hs_tariff"=>"2000"},
     {"customs_quantity_units"=>"EA",
      "customs_quantity"=>1,
      "customs_line_amount"=>50.0,
      "country_of_manufacture"=>"US",
      "customs_weight"=>2.5,
      "customs_description"=>"My Description",
      "number_of_packages_per_commodity"=>2}],
   "customs_value"=>100.0,
   "customs_misc_charge_type"=>"OTHER",
   "customs_misc_charge"=>10.0,
   "sold_company"=>"Acme Inc.",
   "sold_name"=>"John Doe",
   "sold_tax_id"=>"123abc",
   "sold_phone"=>"1231231234",
   "sold_addr1"=>"2000 Meadowvale Rd",
   "sold_city"=>"Toronto",
   "sold_state"=>"ON",
   "sold_code"=>"M1B5K7",
   "sold_country"=>"CA",
   "service"=>"INTERNATIONAL_PRIORITY",
   "shipper"=>"John Doe",
   "ship_contact"=>"John Doe",
   "ship_addr1"=>"2000 Meadowvale Rd",
   "ship_city"=>"Toronto",
   "ship_state"=>"ON",
   "ship_code"=>"M1B5K7",
   "ship_country"=>"CA",
   "ship_phone"=>"1231231234",
   "to_attention_name"=>"John Doe",
   "to_name"=>"John Doe",
   "to_addr1"=>"2300 Southern Blvd",
   "to_state"=>"NY",
   "to_city"=>"Bronx",
   "to_code"=>"10460",
   "to_country"=>"US",
   "to_phone"=>"1231231234",
   "image_type"=>"PNG",
   "shipment_description"=>"xxx",
   "packaging_type"=>"YOUR_PACKAGING",
   "pickup_type"=>"02",
   "weight_unit"=>"LB",
   "length_unit"=>"IN"}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-REST",
  "action": "SubmitShipment",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "generate_docs": [
      "COMMERCIAL_INVOICE",
      "NAFTA_CERTIFICATE_OF_ORIGIN"
    ],
    "currency": "CAD",
    "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",
        "customs_hs_tariff": "2000"
      },
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_line_amount": 50.00,
        "country_of_manufacture": "US",
        "customs_weight": 2.5,
        "customs_description": "My Description",
        "number_of_packages_per_commodity": 2
      }
    ],
    "customs_value": 100.00,
    "customs_misc_charge_type": "OTHER",
    "customs_misc_charge": 10.00,
    "sold_company": "Acme Inc.",
    "sold_name": "John Doe",
    "sold_tax_id": "123abc",
    "sold_phone": "1231231234",
    "sold_addr1": "2000 Meadowvale Rd",
    "sold_city": "Toronto",
    "sold_state": "ON",
    "sold_code": "M1B5K7",
    "sold_country": "CA",
    "service": "INTERNATIONAL_PRIORITY",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_addr1": "2000 Meadowvale Rd",
    "ship_city": "Toronto",
    "ship_state": "ON",
    "ship_code": "M1B5K7",
    "ship_country": "CA",
    "ship_phone": "1231231234",
    "to_attention_name": "John Doe",
    "to_name": "John Doe",
    "to_addr1": "2300 Southern Blvd",
    "to_state": "NY",
    "to_city": "Bronx",
    "to_code": "10460",
    "to_country": "US",
    "to_phone": "1231231234",
    "image_type": "PNG",
    "shipment_description": "xxx",
    "packaging_type": "YOUR_PACKAGING",
    "pickup_type": "02",
    "weight_unit": "LB",
    "length_unit": "IN"
  }
}

)
← Back to All Examples

Other FedEx-REST Examples

Address Validation
Example implementation for FedEx-REST Address Validation
Authenticate
Example implementation for FedEx-REST Authenticate
Freight Rating
Example implementation for FedEx-REST Freight Rating
Label
Example implementation for FedEx-REST Label
Label Additional Handling PAIL
Example implementation for FedEx-REST Label Additional Handling PAIL
Label Alcohol
Example implementation for FedEx-REST Label Alcohol
Label Alcohol to Licensee
Example implementation for FedEx-REST Label Alcohol to Licensee
Label Alternate Return Address
Example implementation for FedEx-REST Label Alternate Return Address
Label Bill Recipient
Example implementation for FedEx-REST Label Bill Recipient
Label Dry Ice
Example implementation for FedEx-REST Label Dry Ice
Label Email Notifications
Example implementation for FedEx-REST Label Email Notifications
Label Ground Collect (Not COD)
Example implementation for FedEx-REST Label Ground Collect (Not COD)
Label Hidden Account Number
Example implementation for FedEx-REST Label Hidden Account Number
Label Hold at Location
Example implementation for FedEx-REST Label Hold at Location
Label Home Delivery No Signature
Example implementation for FedEx-REST Label Home Delivery No Signature
Label International
Example implementation for FedEx-REST Label International
Label International Documents Only
Example implementation for FedEx-REST Label International Documents Only
Label International NO EEI Exemption
Example implementation for FedEx-REST Label International NO EEI Exemption
Label International Paperless Customs (ETD)
Example implementation for FedEx-REST Label International Paperless Customs (ETD)
Label International Sender Pays Duties
Example implementation for FedEx-REST Label International Sender Pays Duties
Label International w/ CI and NAFTA Custom Images
Example implementation for FedEx-REST Label International w/ CI and NAFTA Custom Images
Label Lithium Battery
Example implementation for FedEx-REST Label Lithium Battery
Label Multi-package
Example implementation for FedEx-REST Label Multi-package
Label Multi-package International
Example implementation for FedEx-REST Label Multi-package International
Label OneRate
Example implementation for FedEx-REST Label OneRate
Label Reference Values
Example implementation for FedEx-REST Label Reference Values
Label Residential
Example implementation for FedEx-REST Label Residential
Label Return Email label
Example implementation for FedEx-REST Label Return Email label
Label Return label
Example implementation for FedEx-REST Label Return label
Label SmartPost
Example implementation for FedEx-REST Label SmartPost
Label Third Party Billing
Example implementation for FedEx-REST Label Third Party Billing
Label with Insurance
Example implementation for FedEx-REST Label with Insurance
Locator
Example implementation for FedEx-REST Locator
Pickup Cancel
Example implementation for FedEx-REST Pickup Cancel
Pickup Express
Example implementation for FedEx-REST Pickup Express
Pickup Ground
Example implementation for FedEx-REST Pickup Ground
Rates
Example implementation for FedEx-REST Rates
Rates International
Example implementation for FedEx-REST Rates International
Rates OneRate
Example implementation for FedEx-REST Rates OneRate
Time in Transit
Example implementation for FedEx-REST Time in Transit
Track
Example implementation for FedEx-REST Track
Tracking by Reference without account
Example implementation for FedEx-REST Tracking by Reference without account
Upload Customs Document
Example implementation for FedEx-REST Upload Customs Document
Upload Images
Example implementation for FedEx-REST Upload Images
Void
Example implementation for FedEx-REST Void