Best Practices

Overview

To get the best results using the PB Shipping APIs, follow these recommended best practices. If you encounter a problem, please follow the suggested steps on the Troubleshooting page.

Use the C# SDK

Pitney Bowes provides a C# SDK that fully wraps the PB Shipping APIs and provides strong typing and a fluent interface. Using the SDK can help avoid coding errors.

Test on Sandbox Before Deploying to Production

To see how your application will run on production, test it first on the sandbox test environment. The sandbox environment uses the same hardware and code as the production environment and is intended specifically to show you how your application will run on production.

If you plan to run performance, penetration, or security tests, first contact Pitney Bowes at ShippingAPISupport@pb.com with the dates and times, to avoid your tests being blacklisted.

Optimize Parameters if using Multithreading

If you use multithreading in your application, optimize the following on sandbox before deploying to production:

  • Number of threads
  • Number of sockets per process
  • Memory
  • Multithread vs. multi-process

Keep the Connection Open During Periods of High Volume

If you print multiple labels in a short period of time, leave the connection to Pitney Bowes open instead of opening it separately for each label request.

Configure Your Network With Failover Options

As with any network application, prepare for network and server failures by configuring your network to automatically transfer workload to secondary components should primary components become unavailable.