USPS-eVS - Label

Carrier: USPS-eVS
Action: Label
Description: Example implementation for USPS-eVS Label
{
  "carrier": "USPS-eVS",
  "action": "SubmitShipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 4.3,
        "length": 7,
        "width": 7,
        "height": 8
      }
    ],
    "service": "PRIORITY",
    "shipper": "RocketShipIt",
    "ship_contact": "John Doe",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "ship_country": "US",
    "to_name": "John Doe",
    "to_addr1": "940 Presidio Ave",
    "to_addr2": "#103",
    "to_state": "CA",
    "to_city": "San Francisco",
    "to_code": "94115",
    "to_country": "US",
    "image_type": "PDF",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'USPS-eVS',
  'action' => 'SubmitShipment',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 4.3,
        'length' => 7,
        'width' => 7,
        'height' => 8,
      ),
    ),
    'service' => 'PRIORITY',
    'shipper' => 'RocketShipIt',
    'ship_contact' => 'John Doe',
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Whitehall',
    'ship_state' => 'MT',
    'ship_code' => '59759',
    'ship_phone' => '1231231234',
    'ship_country' => 'US',
    'to_name' => 'John Doe',
    'to_addr1' => '940 Presidio Ave',
    'to_addr2' => '#103',
    'to_state' => 'CA',
    'to_city' => 'San Francisco',
    'to_code' => '94115',
    'to_country' => 'US',
    'image_type' => 'PDF',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'SubmitShipment',
 'carrier': 'USPS-eVS',
 'params': {'image_type': 'PDF',
            'packages': [{'height': 8, 'length': 7, 'weight': 4.3, 'width': 7}],
            'password': 'YOUR_PASSWORD',
            'service': 'PRIORITY',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_contact': 'John Doe',
            'ship_country': 'US',
            'ship_phone': '1231231234',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '940 Presidio Ave',
            'to_addr2': '#103',
            'to_city': 'San Francisco',
            'to_code': '94115',
            'to_country': 'US',
            'to_name': 'John Doe',
            'to_state': 'CA',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"USPS-eVS",
 "action"=>"SubmitShipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "packages"=>[{"weight"=>4.3, "length"=>7, "width"=>7, "height"=>8}],
   "service"=>"PRIORITY",
   "shipper"=>"RocketShipIt",
   "ship_contact"=>"John Doe",
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Whitehall",
   "ship_state"=>"MT",
   "ship_code"=>"59759",
   "ship_phone"=>"1231231234",
   "ship_country"=>"US",
   "to_name"=>"John Doe",
   "to_addr1"=>"940 Presidio Ave",
   "to_addr2"=>"#103",
   "to_state"=>"CA",
   "to_city"=>"San Francisco",
   "to_code"=>"94115",
   "to_country"=>"US",
   "image_type"=>"PDF",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "USPS-eVS",
  "action": "SubmitShipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 4.3,
        "length": 7,
        "width": 7,
        "height": 8
      }
    ],
    "service": "PRIORITY",
    "shipper": "RocketShipIt",
    "ship_contact": "John Doe",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "ship_country": "US",
    "to_name": "John Doe",
    "to_addr1": "940 Presidio Ave",
    "to_addr2": "#103",
    "to_state": "CA",
    "to_city": "San Francisco",
    "to_code": "94115",
    "to_country": "US",
    "image_type": "PDF",
    "test": true
  }
}
)
← Back to All Examples

Other USPS-eVS Examples

Label APO
Example implementation for USPS-eVS Label APO
Label Express Mail International
Example implementation for USPS-eVS Label Express Mail International
Label First Class Mail International
Example implementation for USPS-eVS Label First Class Mail International
Label Priority Mail International
Example implementation for USPS-eVS Label Priority Mail International
Void
Example implementation for USPS-eVS Void