{
"carrier": "USPS-REST",
"action": "CreateManifest",
"params": {
"key": "your-key-from-authenticate-request",
"shipment_ids": [
"420941159205590202518101026815"
],
"shipper": "Acme Inc",
"ship_addr1": "5333 Zoo Dr",
"ship_city": "Los Angeles",
"ship_state": "CA",
"ship_code": "90027",
"ship_phone": "1231231234",
"image_type": "PDF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'USPS-REST',
'action' => 'CreateManifest',
'params' =>
array (
'key' => 'your-key-from-authenticate-request',
'shipment_ids' =>
array (
0 => '420941159205590202518101026815',
),
'shipper' => 'Acme Inc',
'ship_addr1' => '5333 Zoo Dr',
'ship_city' => 'Los Angeles',
'ship_state' => 'CA',
'ship_code' => '90027',
'ship_phone' => '1231231234',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{'action': 'CreateManifest',
'carrier': 'USPS-REST',
'params': {'image_type': 'PDF',
'key': 'your-key-from-authenticate-request',
'ship_addr1': '5333 Zoo Dr',
'ship_city': 'Los Angeles',
'ship_code': '90027',
'ship_phone': '1231231234',
'ship_state': 'CA',
'shipment_ids': ['420941159205590202518101026815'],
'shipper': 'Acme Inc',
'test': True}}
)
rs.request(
{"carrier"=>"USPS-REST",
"action"=>"CreateManifest",
"params"=>
{"key"=>"your-key-from-authenticate-request",
"shipment_ids"=>["420941159205590202518101026815"],
"shipper"=>"Acme Inc",
"ship_addr1"=>"5333 Zoo Dr",
"ship_city"=>"Los Angeles",
"ship_state"=>"CA",
"ship_code"=>"90027",
"ship_phone"=>"1231231234",
"image_type"=>"PDF",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "USPS-REST",
"action": "CreateManifest",
"params": {
"key": "your-key-from-authenticate-request",
"shipment_ids": [
"420941159205590202518101026815"
],
"shipper": "Acme Inc",
"ship_addr1": "5333 Zoo Dr",
"ship_city": "Los Angeles",
"ship_state": "CA",
"ship_code": "90027",
"ship_phone": "1231231234",
"image_type": "PDF",
"test": true
}
}
)