FedEx-REST - Rates International

Carrier: FedEx-REST
Action: Rates International
Description: Example implementation for FedEx-REST Rates International
{
  "carrier": "FedEx-REST",
  "action": "GetAllRates",
  "params": {
    "account_number": "your-account-number",
    "key": "your-key-from-authenticate-request",
    "packages": [
      {
        "weight": 2.5
      }
    ],
    "customs": [
      {
        "customs_value": 10.00,
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "country_of_manufacture": "US",
        "customs_weight": 2.5,
        "customs_description": "Brass Trumpet in Case"
      }
    ],
    "weight_unit": "LB",
    "packaging_type": "YOUR_PACKAGING",
    "dropoff_type": "USE_SCHEDULED_PICKUP",
    "negotiated_rates": true,
    "ship_addr1": "123 Main St",
    "ship_city": "Burnsville",
    "ship_code": "55337",
    "ship_country": "US",
    "ship_phone": "123-123-1234",
    "ship_state": "MN",
    "to_city": "New Glasgow",
    "to_code": "B2H3Y5",
    "to_country": "CA",
    "to_state": "NS"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx-REST',
  'action' => 'GetAllRates',
  'params' => 
  array (
    'account_number' => 'your-account-number',
    'key' => 'your-key-from-authenticate-request',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 2.5,
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'customs_value' => 10.0,
        'customs_quantity_units' => 'EA',
        'customs_quantity' => 1,
        'country_of_manufacture' => 'US',
        'customs_weight' => 2.5,
        'customs_description' => 'Brass Trumpet in Case',
      ),
    ),
    'weight_unit' => 'LB',
    'packaging_type' => 'YOUR_PACKAGING',
    'dropoff_type' => 'USE_SCHEDULED_PICKUP',
    'negotiated_rates' => true,
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Burnsville',
    'ship_code' => '55337',
    'ship_country' => 'US',
    'ship_phone' => '123-123-1234',
    'ship_state' => 'MN',
    'to_city' => 'New Glasgow',
    'to_code' => 'B2H3Y5',
    'to_country' => 'CA',
    'to_state' => 'NS',
  ),
)
);

rs.request(
  {'action': 'GetAllRates',
 'carrier': 'FedEx-REST',
 'params': {'account_number': 'your-account-number',
            'customs': [{'country_of_manufacture': 'US',
                         'customs_description': 'Brass Trumpet in Case',
                         'customs_quantity': 1,
                         'customs_quantity_units': 'EA',
                         'customs_value': 10.0,
                         'customs_weight': 2.5}],
            'dropoff_type': 'USE_SCHEDULED_PICKUP',
            'key': 'your-key-from-authenticate-request',
            'negotiated_rates': True,
            'packages': [{'weight': 2.5}],
            'packaging_type': 'YOUR_PACKAGING',
            'ship_addr1': '123 Main St',
            'ship_city': 'Burnsville',
            'ship_code': '55337',
            'ship_country': 'US',
            'ship_phone': '123-123-1234',
            'ship_state': 'MN',
            'to_city': 'New Glasgow',
            'to_code': 'B2H3Y5',
            'to_country': 'CA',
            'to_state': 'NS',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-REST",
 "action"=>"GetAllRates",
 "params"=>
  {"account_number"=>"your-account-number",
   "key"=>"your-key-from-authenticate-request",
   "packages"=>[{"weight"=>2.5}],
   "customs"=>
    [{"customs_value"=>10.0,
      "customs_quantity_units"=>"EA",
      "customs_quantity"=>1,
      "country_of_manufacture"=>"US",
      "customs_weight"=>2.5,
      "customs_description"=>"Brass Trumpet in Case"}],
   "weight_unit"=>"LB",
   "packaging_type"=>"YOUR_PACKAGING",
   "dropoff_type"=>"USE_SCHEDULED_PICKUP",
   "negotiated_rates"=>true,
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Burnsville",
   "ship_code"=>"55337",
   "ship_country"=>"US",
   "ship_phone"=>"123-123-1234",
   "ship_state"=>"MN",
   "to_city"=>"New Glasgow",
   "to_code"=>"B2H3Y5",
   "to_country"=>"CA",
   "to_state"=>"NS"}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-REST",
  "action": "GetAllRates",
  "params": {
    "account_number": "your-account-number",
    "key": "your-key-from-authenticate-request",
    "packages": [
      {
        "weight": 2.5
      }
    ],
    "customs": [
      {
        "customs_value": 10.00,
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "country_of_manufacture": "US",
        "customs_weight": 2.5,
        "customs_description": "Brass Trumpet in Case"
      }
    ],
    "weight_unit": "LB",
    "packaging_type": "YOUR_PACKAGING",
    "dropoff_type": "USE_SCHEDULED_PICKUP",
    "negotiated_rates": true,
    "ship_addr1": "123 Main St",
    "ship_city": "Burnsville",
    "ship_code": "55337",
    "ship_country": "US",
    "ship_phone": "123-123-1234",
    "ship_state": "MN",
    "to_city": "New Glasgow",
    "to_code": "B2H3Y5",
    "to_country": "CA",
    "to_state": "NS"
  }
}
)
← 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
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 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 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