FedEx - Label IN -> IN with COD

Carrier
FedEx
Action
Label IN -> IN with COD
{
  "carrier": "FedEx",
  "action": "submitshipment",
  "params": {
	"account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
    "test": true,
    "purpose": "SOLD",
    "currency": "INR",
    "cod_amount": 100,
    "cod_fund_type": "CASH",
    "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"
      }
    ],
    "service": "STANDARD_OVERNIGHT",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_addr1": "2000 Meadowvale Rd",
    "ship_city": "mumbai",
    "ship_state": "MH",
    "ship_code": "400037",
    "ship_country": "IN",
    "ship_phone": "1231231234",
    "to_attention_name": "John Doe",
    "to_name": "John Doe",
    "to_addr1": "2300 Southern Blvd",
    "to_state": "MH",
    "to_city": "Mumbai",
    "to_code": "400037",
    "to_country": "IN",
    "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',
  'action' => 'submitshipment',
  'params' => 
  array (
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'meter_number' => 'YOUR_METER_NUMBER',
    'key' => 'YOUR_KEY',
    'password' => 'YOUR_PASSWORD',
    'test' => true,
    'purpose' => 'SOLD',
    'currency' => 'INR',
    'cod_amount' => 100,
    'cod_fund_type' => 'CASH',
    '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',
      ),
    ),
    'service' => 'STANDARD_OVERNIGHT',
    'shipper' => 'John Doe',
    'ship_contact' => 'John Doe',
    'ship_addr1' => '2000 Meadowvale Rd',
    'ship_city' => 'mumbai',
    'ship_state' => 'MH',
    'ship_code' => '400037',
    'ship_country' => 'IN',
    'ship_phone' => '1231231234',
    'to_attention_name' => 'John Doe',
    'to_name' => 'John Doe',
    'to_addr1' => '2300 Southern Blvd',
    'to_state' => 'MH',
    'to_city' => 'Mumbai',
    'to_code' => '400037',
    'to_country' => 'IN',
    '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',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'cod_amount': 100,
            'cod_fund_type': 'CASH',
            'currency': 'INR',
            '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}],
            'image_type': 'PNG',
            'key': 'YOUR_KEY',
            'length_unit': 'IN',
            'meter_number': 'YOUR_METER_NUMBER',
            'packages': [{'height': 1, 'length': 1, 'weight': 5, 'width': 1}],
            'packaging_type': 'YOUR_PACKAGING',
            'password': 'YOUR_PASSWORD',
            'pickup_type': '02',
            'purpose': 'SOLD',
            'service': 'STANDARD_OVERNIGHT',
            'ship_addr1': '2000 Meadowvale Rd',
            'ship_city': 'mumbai',
            'ship_code': '400037',
            'ship_contact': 'John Doe',
            'ship_country': 'IN',
            'ship_phone': '1231231234',
            'ship_state': 'MH',
            'shipment_description': 'xxx',
            'shipper': 'John Doe',
            'test': True,
            'to_addr1': '2300 Southern Blvd',
            'to_attention_name': 'John Doe',
            'to_city': 'Mumbai',
            'to_code': '400037',
            'to_country': 'IN',
            'to_name': 'John Doe',
            'to_phone': '1231231234',
            'to_state': 'MH',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx",
 "action"=>"submitshipment",
 "params"=>
  {"account_number"=>"YOUR_ACCOUNT_NUMBER",
   "meter_number"=>"YOUR_METER_NUMBER",
   "key"=>"YOUR_KEY",
   "password"=>"YOUR_PASSWORD",
   "test"=>true,
   "purpose"=>"SOLD",
   "currency"=>"INR",
   "cod_amount"=>100,
   "cod_fund_type"=>"CASH",
   "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"}],
   "service"=>"STANDARD_OVERNIGHT",
   "shipper"=>"John Doe",
   "ship_contact"=>"John Doe",
   "ship_addr1"=>"2000 Meadowvale Rd",
   "ship_city"=>"mumbai",
   "ship_state"=>"MH",
   "ship_code"=>"400037",
   "ship_country"=>"IN",
   "ship_phone"=>"1231231234",
   "to_attention_name"=>"John Doe",
   "to_name"=>"John Doe",
   "to_addr1"=>"2300 Southern Blvd",
   "to_state"=>"MH",
   "to_city"=>"Mumbai",
   "to_code"=>"400037",
   "to_country"=>"IN",
   "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",
  "action": "submitshipment",
  "params": {
	"account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
    "test": true,
    "purpose": "SOLD",
    "currency": "INR",
    "cod_amount": 100,
    "cod_fund_type": "CASH",
    "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"
      }
    ],
    "service": "STANDARD_OVERNIGHT",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_addr1": "2000 Meadowvale Rd",
    "ship_city": "mumbai",
    "ship_state": "MH",
    "ship_code": "400037",
    "ship_country": "IN",
    "ship_phone": "1231231234",
    "to_attention_name": "John Doe",
    "to_name": "John Doe",
    "to_addr1": "2300 Southern Blvd",
    "to_state": "MH",
    "to_city": "Mumbai",
    "to_code": "400037",
    "to_country": "IN",
    "to_phone": "1231231234",
    "image_type": "PNG",
    "shipment_description": "xxx",
    "packaging_type": "YOUR_PACKAGING",
    "pickup_type": "02",
    "weight_unit": "LB",
    "length_unit": "IN"
  }
}
)

← All FedEx examples