FedEx - Label Third Party Billing

Carrier
FedEx
Action
Label Third Party Billing
{
  "carrier": "FedEx",
  "action": "submitshipment",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
	"billing": [
      {
        "type": "transportation",
        "payment_type": "third_party",
        "company": "Acme Inc.",
        "account": "abc123",
        "postal_code": "94608",
        "country_code": "US"
      }
    ],
    "packages": [
      {
        "weight": 15
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "to_name": "John Doe",
    "to_addr1": "123 Main St",
    "to_state": "CA",
    "to_city": "Beverly Hills",
    "to_code": "90210",
    "to_phone": "1231231234",
    "packaging_type": "YOUR_PACKAGING",
    "test": true
  }
}

<?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',
    'billing' => 
    array (
      0 => 
      array (
        'type' => 'transportation',
        'payment_type' => 'third_party',
        'company' => 'Acme Inc.',
        'account' => 'abc123',
        'postal_code' => '94608',
        'country_code' => 'US',
      ),
    ),
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 15,
      ),
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Whitehall',
    'ship_state' => 'MT',
    'ship_code' => '59759',
    'ship_phone' => '1231231234',
    'to_name' => 'John Doe',
    'to_addr1' => '123 Main St',
    'to_state' => 'CA',
    'to_city' => 'Beverly Hills',
    'to_code' => '90210',
    'to_phone' => '1231231234',
    'packaging_type' => 'YOUR_PACKAGING',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'FedEx',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'billing': [{'account': 'abc123',
                         'company': 'Acme Inc.',
                         'country_code': 'US',
                         'payment_type': 'third_party',
                         'postal_code': '94608',
                         'type': 'transportation'}],
            'key': 'YOUR_KEY',
            'meter_number': 'YOUR_METER_NUMBER',
            'packages': [{'weight': 15}],
            'packaging_type': 'YOUR_PACKAGING',
            'password': 'YOUR_PASSWORD',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_phone': '1231231234',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '123 Main St',
            'to_city': 'Beverly Hills',
            'to_code': '90210',
            'to_name': 'John Doe',
            'to_phone': '1231231234',
            'to_state': 'CA'}}

)

rs.request(
  {"carrier"=>"FedEx",
 "action"=>"submitshipment",
 "params"=>
  {"account_number"=>"YOUR_ACCOUNT_NUMBER",
   "meter_number"=>"YOUR_METER_NUMBER",
   "key"=>"YOUR_KEY",
   "password"=>"YOUR_PASSWORD",
   "billing"=>
    [{"type"=>"transportation",
      "payment_type"=>"third_party",
      "company"=>"Acme Inc.",
      "account"=>"abc123",
      "postal_code"=>"94608",
      "country_code"=>"US"}],
   "packages"=>[{"weight"=>15}],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Whitehall",
   "ship_state"=>"MT",
   "ship_code"=>"59759",
   "ship_phone"=>"1231231234",
   "to_name"=>"John Doe",
   "to_addr1"=>"123 Main St",
   "to_state"=>"CA",
   "to_city"=>"Beverly Hills",
   "to_code"=>"90210",
   "to_phone"=>"1231231234",
   "packaging_type"=>"YOUR_PACKAGING",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "FedEx",
  "action": "submitshipment",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
	"billing": [
      {
        "type": "transportation",
        "payment_type": "third_party",
        "company": "Acme Inc.",
        "account": "abc123",
        "postal_code": "94608",
        "country_code": "US"
      }
    ],
    "packages": [
      {
        "weight": 15
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "to_name": "John Doe",
    "to_addr1": "123 Main St",
    "to_state": "CA",
    "to_city": "Beverly Hills",
    "to_code": "90210",
    "to_phone": "1231231234",
    "packaging_type": "YOUR_PACKAGING",
    "test": true
  }
}
)

← All FedEx examples