GLS (Formerly GSO) - Label

Carrier: GLS (Formerly GSO)
Action: Label
Description: Example implementation for GLS (Formerly GSO) 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
  }
}
)
← Back to All Examples

Other GLS (Formerly GSO) Examples

Label Void
Example implementation for GLS (Formerly GSO) Label Void
Rates
Example implementation for GLS (Formerly GSO) Rates
Track
Example implementation for GLS (Formerly GSO) Track