UPS - Tracking by Reference

Carrier: UPS
Action: Tracking by Reference
Description: Example implementation for UPS Tracking by Reference
{
  "carrier": "UPS",
  "action": "Track",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "key": "YOUR_KEY",
    "reference_number": "371296",
    "to_country": "US",
    "to_code": "07094",
    "ship_date_begin": "20160101",
    "ship_date_end": "20180101"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS',
  'action' => 'Track',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'key' => 'YOUR_KEY',
    'reference_number' => '371296',
    'to_country' => 'US',
    'to_code' => '07094',
    'ship_date_begin' => '20160101',
    'ship_date_end' => '20180101',
  ),
)
);

rs.request(
  {'action': 'Track',
 'carrier': 'UPS',
 'params': {'key': 'YOUR_KEY',
            'password': 'YOUR_PASSWORD',
            'reference_number': '371296',
            'ship_date_begin': '20160101',
            'ship_date_end': '20180101',
            'to_code': '07094',
            'to_country': 'US',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"UPS",
 "action"=>"Track",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "key"=>"YOUR_KEY",
   "reference_number"=>"371296",
   "to_country"=>"US",
   "to_code"=>"07094",
   "ship_date_begin"=>"20160101",
   "ship_date_end"=>"20180101"}}

)

rocketshipit.request(
  {
  "carrier": "UPS",
  "action": "Track",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "key": "YOUR_KEY",
    "reference_number": "371296",
    "to_country": "US",
    "to_code": "07094",
    "ship_date_begin": "20160101",
    "ship_date_end": "20180101"
  }
}
)
← Back to All Examples

Other UPS Examples

Address Validation
Example implementation for UPS Address Validation
Download CSV
Example implementation for UPS Download CSV
Freight Rate
Example implementation for UPS Freight Rate
International w/ Com. Inv.
Example implementation for UPS International w/ Com. Inv.
International w/ Com. Inv. with EEI
Example implementation for UPS International w/ Com. Inv. with EEI
International w/ discount, freight charges
Example implementation for UPS International w/ discount, freight charges
Label
Example implementation for UPS Label
Label Additional Handling
Example implementation for UPS Label Additional Handling
Label COD
Example implementation for UPS Label COD
Label DDP/DDU
Example implementation for UPS Label DDP/DDU
Label Direct Signature
Example implementation for UPS Label Direct Signature
Label EU IOSS
Example implementation for UPS Label EU IOSS
Label Email Notifications
Example implementation for UPS Label Email Notifications
Label Ground Freight Pricing
Example implementation for UPS Label Ground Freight Pricing
Label Ground Freight Pricing Third Party Billing
Example implementation for UPS Label Ground Freight Pricing Third Party Billing
Label Insurance
Example implementation for UPS Label Insurance
Label International Bill Receiver
Example implementation for UPS Label International Bill Receiver
Label International Minimal no paperwork
Example implementation for UPS Label International Minimal no paperwork
Label Letter
Example implementation for UPS Label Letter
Label Mail Innovations
Example implementation for UPS Label Mail Innovations
Label Mail Innovations International
Example implementation for UPS Label Mail Innovations International
Label Medical Dry Ice
Example implementation for UPS Label Medical Dry Ice
Label Recovery
Example implementation for UPS Label Recovery
Label Reference Values
Example implementation for UPS Label Reference Values
Label Return
Example implementation for UPS Label Return
Label Return w/ Email Delivery
Example implementation for UPS Label Return w/ Email Delivery
Label SurePost
Example implementation for UPS Label SurePost
Label Third Party Billing
Example implementation for UPS Label Third Party Billing
Label With Promo Discount
Example implementation for UPS Label With Promo Discount
Label w/ Access Point
Example implementation for UPS Label w/ Access Point
Letter International w/ Com. Inv.
Example implementation for UPS Letter International w/ Com. Inv.
Locator
Example implementation for UPS Locator
Pickup Cancel
Example implementation for UPS Pickup Cancel
Pickup Freight
Example implementation for UPS Pickup Freight
Pickup Rate
Example implementation for UPS Pickup Rate
Pickup Schedule
Example implementation for UPS Pickup Schedule
Pickup Schedule Various Services
Example implementation for UPS Pickup Schedule Various Services
Pickup Status
Example implementation for UPS Pickup Status
Rates Additional Handling
Example implementation for UPS Rates Additional Handling
Rates DDP/DDU
Example implementation for UPS Rates DDP/DDU
Rates Daily
Example implementation for UPS Rates Daily
Rates Ground Freight Pricing
Example implementation for UPS Rates Ground Freight Pricing
Rates Insurance
Example implementation for UPS Rates Insurance
Rates International
Example implementation for UPS Rates International
Rates Negotiated
Example implementation for UPS Rates Negotiated
Rates Retail
Example implementation for UPS Rates Retail
Rates Simple Rate
Example implementation for UPS Rates Simple Rate
Rates SurePost
Example implementation for UPS Rates SurePost
Rating w/ Access Point
Example implementation for UPS Rating w/ Access Point
Time in Transit
Example implementation for UPS Time in Transit
Time in Transit International
Example implementation for UPS Time in Transit International
Tracking
Example implementation for UPS Tracking
Tracking Mail Innovations
Example implementation for UPS Tracking Mail Innovations
Upload Customs Document
Example implementation for UPS Upload Customs Document
Upload Link Customs Document
Example implementation for UPS Upload Link Customs Document
Void Package
Example implementation for UPS Void Package
Void Shipment
Example implementation for UPS Void Shipment