{
"carrier": "FedEx-REST",
"action": "CreatePickup",
"params": {
"key": "your-key-from-authenticate-request",
"account_number": "YOUR_ACCOUNT_NUMBER",
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"service": "FEDEX_FREIGHT_PRIORITY",
"pickup_company_name": "Acme Inc",
"pickup_contact_name": "John Doe",
"pickup_addr1": "1202 Chalet Ln",
"pickup_city": "Harrison",
"pickup_state": "AR",
"pickup_code": "72601",
"pickup_country": "US",
"pickup_phone": "8705551234",
"pickup_date": "20261231",
"close_time": "1700",
"ready_time": "0800",
"packages": [
{
"description": "Furniture",
"weight": 200.00,
"sub_packaging_type": "PALLET",
"pieces": 1
}
],
"to_addr1": "1234 Main St",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"to_country": "US",
"weight_unit": "LB",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx-REST',
'action' => 'CreatePickup',
'params' =>
array (
'key' => 'your-key-from-authenticate-request',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'freight_account_number' => 'YOUR_FREIGHT_ACCOUNT_NUMBER',
'service' => 'FEDEX_FREIGHT_PRIORITY',
'pickup_company_name' => 'Acme Inc',
'pickup_contact_name' => 'John Doe',
'pickup_addr1' => '1202 Chalet Ln',
'pickup_city' => 'Harrison',
'pickup_state' => 'AR',
'pickup_code' => '72601',
'pickup_country' => 'US',
'pickup_phone' => '8705551234',
'pickup_date' => '20261231',
'close_time' => '1700',
'ready_time' => '0800',
'packages' =>
array (
0 =>
array (
'description' => 'Furniture',
'weight' => 200.0,
'sub_packaging_type' => 'PALLET',
'pieces' => 1,
),
),
'to_addr1' => '1234 Main St',
'to_city' => 'Akron',
'to_state' => 'OH',
'to_code' => '44333',
'to_country' => 'US',
'weight_unit' => 'LB',
'test' => true,
),
)
);
rs.request(
{'action': 'CreatePickup',
'carrier': 'FedEx-REST',
'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
'close_time': '1700',
'freight_account_number': 'YOUR_FREIGHT_ACCOUNT_NUMBER',
'key': 'your-key-from-authenticate-request',
'packages': [{'description': 'Furniture',
'pieces': 1,
'sub_packaging_type': 'PALLET',
'weight': 200.0}],
'pickup_addr1': '1202 Chalet Ln',
'pickup_city': 'Harrison',
'pickup_code': '72601',
'pickup_company_name': 'Acme Inc',
'pickup_contact_name': 'John Doe',
'pickup_country': 'US',
'pickup_date': '20261231',
'pickup_phone': '8705551234',
'pickup_state': 'AR',
'ready_time': '0800',
'service': 'FEDEX_FREIGHT_PRIORITY',
'test': True,
'to_addr1': '1234 Main St',
'to_city': 'Akron',
'to_code': '44333',
'to_country': 'US',
'to_state': 'OH',
'weight_unit': 'LB'}}
)
rs.request(
{"carrier"=>"FedEx-REST",
"action"=>"CreatePickup",
"params"=>
{"key"=>"your-key-from-authenticate-request",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"freight_account_number"=>"YOUR_FREIGHT_ACCOUNT_NUMBER",
"service"=>"FEDEX_FREIGHT_PRIORITY",
"pickup_company_name"=>"Acme Inc",
"pickup_contact_name"=>"John Doe",
"pickup_addr1"=>"1202 Chalet Ln",
"pickup_city"=>"Harrison",
"pickup_state"=>"AR",
"pickup_code"=>"72601",
"pickup_country"=>"US",
"pickup_phone"=>"8705551234",
"pickup_date"=>"20261231",
"close_time"=>"1700",
"ready_time"=>"0800",
"packages"=>
[{"description"=>"Furniture",
"weight"=>200.0,
"sub_packaging_type"=>"PALLET",
"pieces"=>1}],
"to_addr1"=>"1234 Main St",
"to_city"=>"Akron",
"to_state"=>"OH",
"to_code"=>"44333",
"to_country"=>"US",
"weight_unit"=>"LB",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx-REST",
"action": "CreatePickup",
"params": {
"key": "your-key-from-authenticate-request",
"account_number": "YOUR_ACCOUNT_NUMBER",
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"service": "FEDEX_FREIGHT_PRIORITY",
"pickup_company_name": "Acme Inc",
"pickup_contact_name": "John Doe",
"pickup_addr1": "1202 Chalet Ln",
"pickup_city": "Harrison",
"pickup_state": "AR",
"pickup_code": "72601",
"pickup_country": "US",
"pickup_phone": "8705551234",
"pickup_date": "20261231",
"close_time": "1700",
"ready_time": "0800",
"packages": [
{
"description": "Furniture",
"weight": 200.00,
"sub_packaging_type": "PALLET",
"pieces": 1
}
],
"to_addr1": "1234 Main St",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"to_country": "US",
"weight_unit": "LB",
"test": true
}
}
)