UPS-REST - Void Shipment

Carrier
UPS-REST
Action
Void Shipment
{
  "carrier": "UPS-REST",
  "action": "voidshipment",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "shipment_id": "1Z2220060294314162"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS-REST',
  'action' => 'voidshipment',
  'params' => 
  array (
    'test' => true,
    'key' => 'your-key-from-authenticate-request',
    'shipment_id' => '1Z2220060294314162',
  ),
)
);

rs.request(
  {'action': 'voidshipment',
 'carrier': 'UPS-REST',
 'params': {'key': 'your-key-from-authenticate-request',
            'shipment_id': '1Z2220060294314162',
            'test': True}}

)

rs.request(
  {"carrier"=>"UPS-REST",
 "action"=>"voidshipment",
 "params"=>
  {"test"=>true,
   "key"=>"your-key-from-authenticate-request",
   "shipment_id"=>"1Z2220060294314162"}}

)

rocketshipit.request(
  {
  "carrier": "UPS-REST",
  "action": "voidshipment",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "shipment_id": "1Z2220060294314162"
  }
}
)

← All UPS-REST examples