UPS-REST - Pickup Rate

Carrier
UPS-REST
Action
Pickup Rate
{
  "carrier": "UPS-REST",
  "action": "pickuprate",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "pickup_addr1": "940 Presidio Ave",
    "pickup_city": "San Francisco",
    "pickup_state": "CA",
    "pickup_code": "94115",
    "pickup_country": "US",
    "to_name": "John Doe",
    "to_addr1": "2920 Zoo Drive",
    "to_state": "CA",
    "to_city": "San Diego",
    "to_code": "92112",
    "to_country": "US"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS-REST',
  'action' => 'pickuprate',
  'params' => 
  array (
    'test' => true,
    'key' => 'your-key-from-authenticate-request',
    'pickup_addr1' => '940 Presidio Ave',
    'pickup_city' => 'San Francisco',
    'pickup_state' => 'CA',
    'pickup_code' => '94115',
    'pickup_country' => 'US',
    'to_name' => 'John Doe',
    'to_addr1' => '2920 Zoo Drive',
    'to_state' => 'CA',
    'to_city' => 'San Diego',
    'to_code' => '92112',
    'to_country' => 'US',
  ),
)
);

rs.request(
  {'action': 'pickuprate',
 'carrier': 'UPS-REST',
 'params': {'key': 'your-key-from-authenticate-request',
            'pickup_addr1': '940 Presidio Ave',
            'pickup_city': 'San Francisco',
            'pickup_code': '94115',
            'pickup_country': 'US',
            'pickup_state': 'CA',
            'test': True,
            'to_addr1': '2920 Zoo Drive',
            'to_city': 'San Diego',
            'to_code': '92112',
            'to_country': 'US',
            'to_name': 'John Doe',
            'to_state': 'CA'}}

)

rs.request(
  {"carrier"=>"UPS-REST",
 "action"=>"pickuprate",
 "params"=>
  {"test"=>true,
   "key"=>"your-key-from-authenticate-request",
   "pickup_addr1"=>"940 Presidio Ave",
   "pickup_city"=>"San Francisco",
   "pickup_state"=>"CA",
   "pickup_code"=>"94115",
   "pickup_country"=>"US",
   "to_name"=>"John Doe",
   "to_addr1"=>"2920 Zoo Drive",
   "to_state"=>"CA",
   "to_city"=>"San Diego",
   "to_code"=>"92112",
   "to_country"=>"US"}}

)

rocketshipit.request(
  {
  "carrier": "UPS-REST",
  "action": "pickuprate",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "pickup_addr1": "940 Presidio Ave",
    "pickup_city": "San Francisco",
    "pickup_state": "CA",
    "pickup_code": "94115",
    "pickup_country": "US",
    "to_name": "John Doe",
    "to_addr1": "2920 Zoo Drive",
    "to_state": "CA",
    "to_city": "San Diego",
    "to_code": "92112",
    "to_country": "US"
  }
}
)

← All UPS-REST examples