Pitney Bowes Shipping API

Pitney Bowes Shipping API, developers can integrate features such as comparing shipping rates from multiple carriers, creating and purchasing shipping labels, tracking packages, scheduling pickups, managing returns, and accessing other shipping features. These APIs also offers a variety of shipping services, including international shipping and multi-carrier rate shopping, which allows developers to choose the best carrier and rate for each shipment.

Developers can also benefit from discounted shipping rates offered, as well as access to features such as address validation and customs documentation.

PREREQUISITE

In order to use the Pitney Bowes Shipping APIs, you need a Developer Account with the Pitney Bowes Shipping API platform. You can generate API keys through this Developer Account. Once you have the API key, you can use it to authenticate your requests and access the full range of shipping functionality offered.

Getting Started

Follow this tutorial for Authentication and to make your first API call. In this guide, you will learn how to verify an address using the API.

1. Sign up or Log In

Sign Up for a Developer Account:

  1. Go to the Pitney Bowes Developer Portal Signup Page.
  2. Enter your email address and click Continue button.
Developer Portal

Note: Use a regularly monitored email address. This email cannot be changed later.

  1. Complete the registration form by entering all required details, including Email address, First name, Last name, Company name, Address, city, ZIP code and Phone number.
Registration Form
  1. Click Continue button to submit the form.
Registration Success

Complete Registration and Set Up Your Password

  1. After successful registration, merchant will receive an email prompting them to complete the registration process.
Registration Completion Email
  1. In the email, click Complete Registration Now button.
  2. The link opens the Pitney Bowes portal. On the Reset Your Password dialog box:
  • Enter and confirm new password.
  • Click Complete My Registration button.
Complete My Registration
  1. After setting your password, you will be redirected to the Pitney Bowes Developer Portal.
  2. Sign in using your new credentials.
Logo In to Developer Portal

Already have an account?

Sign in at the Developer Hub login page.

Generate Your API Keys and Secure Token

  1. After logging into the developer portal, go to the Shipping API tab and select API Keys.
Developer Portal
  1. You will see two sections:
  • Sandbox Keys
  • Production Keys
API Keys
  1. Under API Keys:
  • Use Sandbox Key for development and testing.
  • Use Production Key production ready use of the API (available only after account upgrade).
  1. Click Generate Key under the Sandbox section.
Generate Sandbox Keys
  • This action generates a Client ID and Secret.
  • Use these credentials to generate a Bearer Token.

Note: You can generate up to 5 sets of keys per account.

ParameterDescription
Client IDThe unique identifier assigned to the client application
SecretA confidential string used to authenticate the client
Developer Partner IDA unique identifier for associated developer partner.

Please note the Developer Partner ID parameter is not required for token generation. In cases where the developer is the only partner, it becomes optional and can be used at the developer's discretion. This is mandatory when the developer has multiple partners. This is being used in `X-PB-Developer-Partner-ID` header in some of APIs. Please refer to detailed documentation for more information.

Log In Your Sandbox Account

To access your Sandbox merchant and carrier settings:

  1. Go to the Sandbox Login Page.
Sandbox Login Screen
  1. Enter your registered email address (the one used for your Production account) and click Send Reset Link.
  2. You will receive a password reset email specifically for the Sandbox environment.
  3. In the email, click Reset button.
Reset Password Email
  1. The link opens the Pitney Bowes portal. On the Reset Your Password dialog box:
  • Enter and confirm your new password and click Submit.
Reset Password
  1. Sign in to the Sandbox portal using your new credentials.

Note: API keys cannot be regenerated in the Sandbox if they were already created in Production.

Test APIs in the Sandbox Environment

  • Use the following base URL to test the 360 APIs in Sandbox.
"https://api-sandbox.sendpro360.pitneybowes.com/shipping

Transition to Production

After successful testing in Sandbox:

  1. Sign in to the Production Developer Hub.
  2. To upgrade your account to Production, contact: ClientSupportTechServices@pb.com
Upgrade to Production
  1. Upon approval, you will receive access to your Production API Keys and Credentials.
  2. Start making API requests in the Production environment.

Before printing your first production label, make sure your postage account has sufficient funds. Insufficient funds may result in errors during label generation.

2. Generate your API Token

Try out the Authentication API to generate your API Token.

4. Make your first API call

To make sure everything is working, make a simple call to verify an address in your account using the Bearer Token generated in the above step.
Sample Request
Copy
Copied
curl --location 'https://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/address/verify' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{bearerToken}}' \
--data '{
    "addressLine1": "1001 Bridgeport AA ",
    "cityTown": "Shelton",
    "countryCode": "US",
    "name": "John Smith",
    "postalCode": "06484"
}'

If your request to verify an address was a success, the response should look like the following.

Sample Response
Copy
Copied
{
    "addressLine1": "1001 Bridgeport Ave",
    "cityTown": "Shelton",
    "countryCode": "US",
    "name": "John Smith",
    "postalCode": "06484-4675",
    "residential": false,
    "stateProvince": "CT",
    "status": "VALIDATED_CHANGED"
}

NOTE

Clients are advised to avoid strict validation on the response body to ensure that any new fields or objects added in the future do not cause issues or break existing integrations.

5. Next steps

You now know how to use the API. Navigate to the catalog and try out the APIs. Refer to our API Catalog.