Shippy provides the following feature support for USPS.

  • Rates
  • Tracking
  • Labels

API Credentials#

To use USPS, you'll need to connect to their API.

  1. Go to USPS and login to your account.
  2. From the Apps section, follow the prompts to create a new app.
  3. Copy the Consumer Key from USPS as the clientId with the Shippy carrier.
  4. Copy the Consumer Secret from USPS as the clientSecret with the Shippy carrier.

To create labels, you'll be required to supply a few more details.

use verbb\shippy\carriers\USPS;

new USPS([
    'isProduction' => false,
    'clientId' => '••••••••••••••••',
    'clientSecret' => '••••••••••••••••',
    'accountNumber' => '••••••••••••••••',

    // Required for labels
    'customerRegistrationId' => '••••••••••••••••',
    'mailerId' => '••••••••••••••••',