{
"carrier": "UPS",
"action": "CreatePickup",
"params": {
"packaging_type": "PLT",
"packages": [
{
"weight": 100
}
],
"weight": 100,
"ground_freight": true,
"pickup_company_name": "Acme Inc",
"pickup_contact_name": "Mark Sanborn",
"pickup_addr1": "940 Presidio Ave",
"pickup_city": "San Francisco",
"pickup_state": "CA",
"pickup_code": "94115",
"pickup_country": "US",
"pickup_phone": "123-123-1234",
"pickup_email": "john@company.com",
"to_name": "John Doe",
"to_addr1": "2920 Zoo Drive",
"to_state": "CA",
"to_city": "San Diego",
"to_code": "92112",
"to_country": "US",
"pickup_date": "20190212",
"close_time": "1600",
"ready_time": "0800",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'UPS',
'action' => 'CreatePickup',
'params' =>
array (
'packaging_type' => 'PLT',
'packages' =>
array (
0 =>
array (
'weight' => 100,
),
),
'weight' => 100,
'ground_freight' => true,
'pickup_company_name' => 'Acme Inc',
'pickup_contact_name' => 'Mark Sanborn',
'pickup_addr1' => '940 Presidio Ave',
'pickup_city' => 'San Francisco',
'pickup_state' => 'CA',
'pickup_code' => '94115',
'pickup_country' => 'US',
'pickup_phone' => '123-123-1234',
'pickup_email' => 'john@company.com',
'to_name' => 'John Doe',
'to_addr1' => '2920 Zoo Drive',
'to_state' => 'CA',
'to_city' => 'San Diego',
'to_code' => '92112',
'to_country' => 'US',
'pickup_date' => '20190212',
'close_time' => '1600',
'ready_time' => '0800',
'test' => true,
),
)
);
rs.request(
{'action': 'CreatePickup',
'carrier': 'UPS',
'params': {'close_time': '1600',
'ground_freight': True,
'packages': [{'weight': 100}],
'packaging_type': 'PLT',
'pickup_addr1': '940 Presidio Ave',
'pickup_city': 'San Francisco',
'pickup_code': '94115',
'pickup_company_name': 'Acme Inc',
'pickup_contact_name': 'Mark Sanborn',
'pickup_country': 'US',
'pickup_date': '20190212',
'pickup_email': 'john@company.com',
'pickup_phone': '123-123-1234',
'pickup_state': 'CA',
'ready_time': '0800',
'test': True,
'to_addr1': '2920 Zoo Drive',
'to_city': 'San Diego',
'to_code': '92112',
'to_country': 'US',
'to_name': 'John Doe',
'to_state': 'CA',
'weight': 100}}
)
rs.request(
{"carrier"=>"UPS",
"action"=>"CreatePickup",
"params"=>
{"packaging_type"=>"PLT",
"packages"=>[{"weight"=>100}],
"weight"=>100,
"ground_freight"=>true,
"pickup_company_name"=>"Acme Inc",
"pickup_contact_name"=>"Mark Sanborn",
"pickup_addr1"=>"940 Presidio Ave",
"pickup_city"=>"San Francisco",
"pickup_state"=>"CA",
"pickup_code"=>"94115",
"pickup_country"=>"US",
"pickup_phone"=>"123-123-1234",
"pickup_email"=>"john@company.com",
"to_name"=>"John Doe",
"to_addr1"=>"2920 Zoo Drive",
"to_state"=>"CA",
"to_city"=>"San Diego",
"to_code"=>"92112",
"to_country"=>"US",
"pickup_date"=>"20190212",
"close_time"=>"1600",
"ready_time"=>"0800",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "UPS",
"action": "CreatePickup",
"params": {
"packaging_type": "PLT",
"packages": [
{
"weight": 100
}
],
"weight": 100,
"ground_freight": true,
"pickup_company_name": "Acme Inc",
"pickup_contact_name": "Mark Sanborn",
"pickup_addr1": "940 Presidio Ave",
"pickup_city": "San Francisco",
"pickup_state": "CA",
"pickup_code": "94115",
"pickup_country": "US",
"pickup_phone": "123-123-1234",
"pickup_email": "john@company.com",
"to_name": "John Doe",
"to_addr1": "2920 Zoo Drive",
"to_state": "CA",
"to_city": "San Diego",
"to_code": "92112",
"to_country": "US",
"pickup_date": "20190212",
"close_time": "1600",
"ready_time": "0800",
"test": true
}
}
)