FedEx-REST - Label International with Broker

Carrier: FedEx-REST
Action: Label International with Broker
Description: Example implementation for FedEx-REST Label International with Broker
{
  "carrier": "FedEx-REST",
  "action": "SubmitShipment",
  "params": {
    "test": true,
    "generate_docs": [
      "COMMERCIAL_INVOICE"
    ],
    "currency": "USD",
    "packages": [
      {
        "weight": 10,
        "length": 12,
        "width": 8,
        "height": 6
      }
    ],
    "customs": [
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 5,
        "customs_line_amount": 250.00,
        "country_of_manufacture": "US",
        "customs_weight": 10,
        "customs_description": "Electronic Components",
        "customs_hs_tariff": "8542.31"
      }
    ],
    "customs_value": 250.00,
    "service": "INTERNATIONAL_PRIORITY",
    "shipper": "Electronics Inc.",
    "ship_contact": "Jane Smith",
    "ship_addr1": "100 Main Street",
    "ship_city": "New York",
    "ship_state": "NY",
    "ship_code": "10001",
    "ship_country": "US",
    "ship_phone": "2125551234",
    "to_attention_name": "Carlos Rodriguez",
    "to_name": "Import Company Ltd.",
    "to_addr1": "Av. Insurgentes Sur 1234",
    "to_city": "Mexico City",
    "to_state": "CDMX",
    "to_code": "03900",
    "to_country": "MX",
    "to_phone": "5255551234",
    "broker_company": "International Customs Brokers Inc.",
    "broker_attention_name": "Maria Garcia",
    "broker_addr1": "Paseo de la Reforma 500",
    "broker_addr2": "Suite 200",
    "broker_city": "Mexico City",
    "broker_state": "CDMX",
    "broker_code": "06600",
    "broker_country": "MX",
    "broker_phone": "5255559876",
    "broker_phone_ext": 101,
    "broker_email": "maria.garcia@custombrokermx.com",
    "broker_account_number": "BRK123456",
    "image_type": "PNG",
    "shipment_description": "Electronic components",
    "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,
    'generate_docs' => 
    array (
      0 => 'COMMERCIAL_INVOICE',
    ),
    'currency' => 'USD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 10,
        'length' => 12,
        'width' => 8,
        'height' => 6,
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'customs_quantity_units' => 'EA',
        'customs_quantity' => 5,
        'customs_line_amount' => 250.0,
        'country_of_manufacture' => 'US',
        'customs_weight' => 10,
        'customs_description' => 'Electronic Components',
        'customs_hs_tariff' => '8542.31',
      ),
    ),
    'customs_value' => 250.0,
    'service' => 'INTERNATIONAL_PRIORITY',
    'shipper' => 'Electronics Inc.',
    'ship_contact' => 'Jane Smith',
    'ship_addr1' => '100 Main Street',
    'ship_city' => 'New York',
    'ship_state' => 'NY',
    'ship_code' => '10001',
    'ship_country' => 'US',
    'ship_phone' => '2125551234',
    'to_attention_name' => 'Carlos Rodriguez',
    'to_name' => 'Import Company Ltd.',
    'to_addr1' => 'Av. Insurgentes Sur 1234',
    'to_city' => 'Mexico City',
    'to_state' => 'CDMX',
    'to_code' => '03900',
    'to_country' => 'MX',
    'to_phone' => '5255551234',
    'broker_company' => 'International Customs Brokers Inc.',
    'broker_attention_name' => 'Maria Garcia',
    'broker_addr1' => 'Paseo de la Reforma 500',
    'broker_addr2' => 'Suite 200',
    'broker_city' => 'Mexico City',
    'broker_state' => 'CDMX',
    'broker_code' => '06600',
    'broker_country' => 'MX',
    'broker_phone' => '5255559876',
    'broker_phone_ext' => 101,
    'broker_email' => 'maria.garcia@custombrokermx.com',
    'broker_account_number' => 'BRK123456',
    'image_type' => 'PNG',
    'shipment_description' => 'Electronic components',
    'packaging_type' => 'YOUR_PACKAGING',
    'pickup_type' => '02',
    'weight_unit' => 'LB',
    'length_unit' => 'IN',
  ),
)
);

rs.request(
  {'action': 'SubmitShipment',
 'carrier': 'FedEx-REST',
 'params': {'broker_account_number': 'BRK123456',
            'broker_addr1': 'Paseo de la Reforma 500',
            'broker_addr2': 'Suite 200',
            'broker_attention_name': 'Maria Garcia',
            'broker_city': 'Mexico City',
            'broker_code': '06600',
            'broker_company': 'International Customs Brokers Inc.',
            'broker_country': 'MX',
            'broker_email': 'maria.garcia@custombrokermx.com',
            'broker_phone': '5255559876',
            'broker_phone_ext': 101,
            'broker_state': 'CDMX',
            'currency': 'USD',
            'customs': [{'country_of_manufacture': 'US',
                         'customs_description': 'Electronic Components',
                         'customs_hs_tariff': '8542.31',
                         'customs_line_amount': 250.0,
                         'customs_quantity': 5,
                         'customs_quantity_units': 'EA',
                         'customs_weight': 10}],
            'customs_value': 250.0,
            'generate_docs': ['COMMERCIAL_INVOICE'],
            'image_type': 'PNG',
            'length_unit': 'IN',
            'packages': [{'height': 6, 'length': 12, 'weight': 10, 'width': 8}],
            'packaging_type': 'YOUR_PACKAGING',
            'pickup_type': '02',
            'service': 'INTERNATIONAL_PRIORITY',
            'ship_addr1': '100 Main Street',
            'ship_city': 'New York',
            'ship_code': '10001',
            'ship_contact': 'Jane Smith',
            'ship_country': 'US',
            'ship_phone': '2125551234',
            'ship_state': 'NY',
            'shipment_description': 'Electronic components',
            'shipper': 'Electronics Inc.',
            'test': True,
            'to_addr1': 'Av. Insurgentes Sur 1234',
            'to_attention_name': 'Carlos Rodriguez',
            'to_city': 'Mexico City',
            'to_code': '03900',
            'to_country': 'MX',
            'to_name': 'Import Company Ltd.',
            'to_phone': '5255551234',
            'to_state': 'CDMX',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-REST",
 "action"=>"SubmitShipment",
 "params"=>
  {"test"=>true,
   "generate_docs"=>["COMMERCIAL_INVOICE"],
   "currency"=>"USD",
   "packages"=>[{"weight"=>10, "length"=>12, "width"=>8, "height"=>6}],
   "customs"=>
    [{"customs_quantity_units"=>"EA",
      "customs_quantity"=>5,
      "customs_line_amount"=>250.0,
      "country_of_manufacture"=>"US",
      "customs_weight"=>10,
      "customs_description"=>"Electronic Components",
      "customs_hs_tariff"=>"8542.31"}],
   "customs_value"=>250.0,
   "service"=>"INTERNATIONAL_PRIORITY",
   "shipper"=>"Electronics Inc.",
   "ship_contact"=>"Jane Smith",
   "ship_addr1"=>"100 Main Street",
   "ship_city"=>"New York",
   "ship_state"=>"NY",
   "ship_code"=>"10001",
   "ship_country"=>"US",
   "ship_phone"=>"2125551234",
   "to_attention_name"=>"Carlos Rodriguez",
   "to_name"=>"Import Company Ltd.",
   "to_addr1"=>"Av. Insurgentes Sur 1234",
   "to_city"=>"Mexico City",
   "to_state"=>"CDMX",
   "to_code"=>"03900",
   "to_country"=>"MX",
   "to_phone"=>"5255551234",
   "broker_company"=>"International Customs Brokers Inc.",
   "broker_attention_name"=>"Maria Garcia",
   "broker_addr1"=>"Paseo de la Reforma 500",
   "broker_addr2"=>"Suite 200",
   "broker_city"=>"Mexico City",
   "broker_state"=>"CDMX",
   "broker_code"=>"06600",
   "broker_country"=>"MX",
   "broker_phone"=>"5255559876",
   "broker_phone_ext"=>101,
   "broker_email"=>"maria.garcia@custombrokermx.com",
   "broker_account_number"=>"BRK123456",
   "image_type"=>"PNG",
   "shipment_description"=>"Electronic components",
   "packaging_type"=>"YOUR_PACKAGING",
   "pickup_type"=>"02",
   "weight_unit"=>"LB",
   "length_unit"=>"IN"}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-REST",
  "action": "SubmitShipment",
  "params": {
    "test": true,
    "generate_docs": [
      "COMMERCIAL_INVOICE"
    ],
    "currency": "USD",
    "packages": [
      {
        "weight": 10,
        "length": 12,
        "width": 8,
        "height": 6
      }
    ],
    "customs": [
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 5,
        "customs_line_amount": 250.00,
        "country_of_manufacture": "US",
        "customs_weight": 10,
        "customs_description": "Electronic Components",
        "customs_hs_tariff": "8542.31"
      }
    ],
    "customs_value": 250.00,
    "service": "INTERNATIONAL_PRIORITY",
    "shipper": "Electronics Inc.",
    "ship_contact": "Jane Smith",
    "ship_addr1": "100 Main Street",
    "ship_city": "New York",
    "ship_state": "NY",
    "ship_code": "10001",
    "ship_country": "US",
    "ship_phone": "2125551234",
    "to_attention_name": "Carlos Rodriguez",
    "to_name": "Import Company Ltd.",
    "to_addr1": "Av. Insurgentes Sur 1234",
    "to_city": "Mexico City",
    "to_state": "CDMX",
    "to_code": "03900",
    "to_country": "MX",
    "to_phone": "5255551234",
    "broker_company": "International Customs Brokers Inc.",
    "broker_attention_name": "Maria Garcia",
    "broker_addr1": "Paseo de la Reforma 500",
    "broker_addr2": "Suite 200",
    "broker_city": "Mexico City",
    "broker_state": "CDMX",
    "broker_code": "06600",
    "broker_country": "MX",
    "broker_phone": "5255559876",
    "broker_phone_ext": 101,
    "broker_email": "maria.garcia@custombrokermx.com",
    "broker_account_number": "BRK123456",
    "image_type": "PNG",
    "shipment_description": "Electronic components",
    "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 Duty to Recipient
Example implementation for FedEx-REST Label Bill Duty to Recipient
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
Example implementation for FedEx-REST Label International w/ CI and NAFTA
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 User Uploaded Customs Documents
Example implementation for FedEx-REST Label User Uploaded Customs Documents
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
Void all packages
Example implementation for FedEx-REST Void all packages