Tips for connecting the ShipStation API service

Uk En
Tips for connecting to the ShipStation API service - image #2

ShipStation is a convenient service for shipment management. You can pass shipment parameters through the API and get shipping costs for FedEx, USPS, DHL, APC, or other carriers. If you are satisfied with the cost of one of them, you can request label creation and obtain a tracking number. Using this approach, you can process dozens or hundreds of shipments and immediately hand them over to the carrier. If you want all services to be consolidated in one place, ShipStation is what you need.

Stages of work with ShipStation API

To start connecting to ShipStation API, follow these steps:

  • Before starting work with the API, you need to create an account;
  • In your account dashboard, add the shipping services you plan to work with;
  • For API access, API keys are required, which are provided by the service;
  • Review the ShipStation API documentation, where you will find complete information about available endpoints, request parameters, and response formats;
  • Determine which endpoints you need for your business logic, such as creating orders, tracking shipments, etc.;
  • Use your API keys to connect to ShipStation API using HTTP requests (e.g., GET, POST, PUT) to the corresponding endpoints;
  • Verify the connection to the API is working correctly by sending test requests and checking the received responses;
  • Process the received data from the API to perform the necessary actions in your system.

General Information on API Integration

ShipStation, like Payoneer, utilizes JSON API with the popular method of signing requests using the "Authorization" header with the value 'Basic'. In this process, the identifier ($id) and key ($key) are provided to the developer by ShipStation.

The service works with two dimensions of size - centimeters and inches, as well as three dimensions of weight - grams, ounces, and pounds. You can pass shipment parameters and receive shipping costs for various delivery methods from all available carriers, allowing you to choose the most suitable option. This helps save money on shipments. Additionally, different packaging methods are taken into account, making the selection of carriers and delivery methods more flexible.

All API entities, such as users, orders, and shipments, are separated, allowing you to compose requests conveniently, which not all APIs can boast of. Each delivery service has its peculiarities, which are somewhat reflected in the ShipStation API. This can be observed, for example, in working with packaging types when selecting FedEx, but these specific features are revealed only during the API integration process. Therefore, additional configuration may be required to handle data for some delivery services. However, on the other hand, ShipStation is a high-quality universal service, whose integration often relieves you from the need to connect and integrate APIs from different carriers, saving development time.

A convenient error handling system, which takes into account HTTP status codes, helps developers properly handle unexpected errors. The ShipStation API has a limitation of 40 requests per minute for one API account. More frequent usage may require individual arrangements with ShipStation, and this particular aspect can be a hindrance for your future high-traffic service that relies on ShipStation.

What data can be passed in the request to create a label

As we mentioned at the beginning of the article, a significant advantage is the ability to receive online PDF labels for printing and attaching to postal shipments. This saves you from unnecessary waiting at shipping points and significantly saves time. Various data necessary for order processing can be passed to the label created through the ShipStation API. Here are some of them:

  • Sender and recipient's name and address;
  • Shipping date;
  • Weight and dimensions of the package;
  • Name, quantity, and cost of items in the package;
  • Insurance information;
  • Special instructions for processing or delivering the package (saturday delivery, presence of alcohol, or other).

It is important to note that the exact set of data may depend on specific carrier requirements and shipment parameters.


Overall, ShipStation is a convenient tool for remote shipment creation and other functions. It is essential to ensure if the permissible request limit and label generation speed suit your needs. In another article, which you can find via the link, our specialists explained how to connect the API of another service - Easypost, which competes with ShipStation. The Asabix team has experience connecting both aggregators, so we can provide consultations and assistance in connecting either of them. We look forward to collaborating with you.


Articles You May Also Be Interested In

How to speed up website performance?
Optimizing a website using Google PageSpeed involves implementing recommendations to enhance loading speed and web page performance, aiming to achieve a high score in the PageSpeed Insights tool provided by Google.
What is a framework?
What is a framework?
In web development, a framework is a collection of tools, libraries, and standards designed to facilitate the process of programming web applications.
Outsourcing and outstaff: difference and features
Outsourcing and outstaff: difference and features
Modern companies often have a need for fast and efficient development of software and other IT projects.
What is Laravel?
Laravel is one of the most popular modern technologies for developing web applications, which occupies a leading position among frameworks in the PHP language.
Contact us

Ready to start? Let us know!


Ukraine, Zhytomyr
Vitruka Street, 9V

M-F, 9am — 7pm


Poland, Warsaw, 00-842
Łucka street 15/204

M - F, 9am - 7pm

Contact us

Have a question?

Please fill out the form below, and our specialists will contact you as soon as possible!
Required field
Required field
Required field
Required field