USPS-REST - Create Manifest

Carrier: USPS-REST
Action: Create Manifest
Description: Example implementation for USPS-REST Create Manifest
{
  "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
  }
}
)
← Back to All Examples

Other USPS-REST Examples

Address Validation
Example implementation for USPS-REST Address Validation
Address Validation City/State from Zip
Example implementation for USPS-REST Address Validation City/State from Zip
Authenticate
Example implementation for USPS-REST Authenticate
Authenticate using apis endpoint
Example implementation for USPS-REST Authenticate using apis endpoint
Get Purchase Token
Example implementation for USPS-REST Get Purchase Token
Label
Example implementation for USPS-REST Label
Label Return
Example implementation for USPS-REST Label Return
Rate Single with rate indicator
Example implementation for USPS-REST Rate Single with rate indicator
Rates
Example implementation for USPS-REST Rates
Tracking
Example implementation for USPS-REST Tracking
Void Shipment
Example implementation for USPS-REST Void Shipment