GLS (Formerly GSO) - Label

Carrier
GLS (Formerly GSO)
Action
Label
{
  "carrier": "GLS",
  "action": "submitshipment",
  "params": {
    "account_number": "YOUR_ACCOUNT",
    "username": "YOUR_USER",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 15
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "1401 Park Ave",
    "ship_city": "Emeryville",
    "ship_state": "CA",
    "ship_code": "94608",
    "ship_phone": "1231231234",
    "to_name": "John Doe",
    "to_addr1": "123 Main St",
    "to_state": "CA",
    "to_city": "Beverly Hills",
    "to_code": "90210",
    "to_phone": "1231231234",
    "service": "PDS",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'GLS',
  'action' => 'submitshipment',
  'params' => 
  array (
    'account_number' => 'YOUR_ACCOUNT',
    'username' => 'YOUR_USER',
    'password' => 'YOUR_PASSWORD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 15,
      ),
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '1401 Park Ave',
    'ship_city' => 'Emeryville',
    'ship_state' => 'CA',
    'ship_code' => '94608',
    'ship_phone' => '1231231234',
    'to_name' => 'John Doe',
    'to_addr1' => '123 Main St',
    'to_state' => 'CA',
    'to_city' => 'Beverly Hills',
    'to_code' => '90210',
    'to_phone' => '1231231234',
    'service' => 'PDS',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'GLS',
 'params': {'account_number': 'YOUR_ACCOUNT',
            'packages': [{'weight': 15}],
            'password': 'YOUR_PASSWORD',
            'service': 'PDS',
            'ship_addr1': '1401 Park Ave',
            'ship_city': 'Emeryville',
            'ship_code': '94608',
            'ship_phone': '1231231234',
            'ship_state': 'CA',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '123 Main St',
            'to_city': 'Beverly Hills',
            'to_code': '90210',
            'to_name': 'John Doe',
            'to_phone': '1231231234',
            'to_state': 'CA',
            'username': 'YOUR_USER'}}

)

rs.request(
  {"carrier"=>"GLS",
 "action"=>"submitshipment",
 "params"=>
  {"account_number"=>"YOUR_ACCOUNT",
   "username"=>"YOUR_USER",
   "password"=>"YOUR_PASSWORD",
   "packages"=>[{"weight"=>15}],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"1401 Park Ave",
   "ship_city"=>"Emeryville",
   "ship_state"=>"CA",
   "ship_code"=>"94608",
   "ship_phone"=>"1231231234",
   "to_name"=>"John Doe",
   "to_addr1"=>"123 Main St",
   "to_state"=>"CA",
   "to_city"=>"Beverly Hills",
   "to_code"=>"90210",
   "to_phone"=>"1231231234",
   "service"=>"PDS",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "GLS",
  "action": "submitshipment",
  "params": {
    "account_number": "YOUR_ACCOUNT",
    "username": "YOUR_USER",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 15
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "1401 Park Ave",
    "ship_city": "Emeryville",
    "ship_state": "CA",
    "ship_code": "94608",
    "ship_phone": "1231231234",
    "to_name": "John Doe",
    "to_addr1": "123 Main St",
    "to_state": "CA",
    "to_city": "Beverly Hills",
    "to_code": "90210",
    "to_phone": "1231231234",
    "service": "PDS",
    "test": true
  }
}
)

← All GLS (Formerly GSO) examples