Account management and tag operations
ShipStation V1 API (Legacy) (1.0.0)
The ShipStation V1 API (Legacy) provides comprehensive functionality for managing orders, shipments, carriers, and more within the ShipStation platform.
New integrations should use ShipStation API V2 whenever possible. This V1 API is maintained for existing integrations.
Specific service code (optional)
Specific service code (optional)
Weight measurement
Delivery confirmation type
- Mock serverhttps://docs.shipstation.com/_mock/apis/shipstation-v1/openapi/shipments/getrates
- Production Serverhttps://ssapi.shipstation.com/shipments/getrates
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://docs.shipstation.com/_mock/apis/shipstation-v1/openapi/shipments/getrates \
-H 'Content-Type: application/json' \
-d '{
"carrierCode": "fedex",
"serviceCode": "string",
"packageCode": "string",
"fromPostalCode": "78703",
"toCountry": "US",
"toPostalCode": "20500",
"toState": "DC",
"toCity": "Washington",
"weight": {
"value": 24,
"units": "ounces"
},
"dimensions": {
"length": 7,
"width": 5,
"height": 6,
"units": "inches"
},
"confirmation": "delivery",
"residential": false
}'[ { "serviceName": "FedEx Ground®", "serviceCode": "fedex_ground", "shipmentCost": 8.25, "otherCost": 0.33 } ]
Request
Creates a shipping label. The labelData field returned in the response is a base64 encoded PDF value. You can decode and save the output as a PDF file to retrieve a printable label.
IMPORTANT: You must have at least one active Manual Store on your ShipStation account to create labels with this endpoint.
Delivery confirmation type
Weight measurement
Physical address for shipping or billing
Second line of the street address
Second line of the street address
Third line of the street address
Third line of the street address
Whether the address is residential
Whether the address is residential
Physical address for shipping or billing
Second line of the street address
Second line of the street address
Third line of the street address
Third line of the street address
Whether the address is residential
Whether the address is residential
- Mock serverhttps://docs.shipstation.com/_mock/apis/shipstation-v1/openapi/shipments/createlabel
- Production Serverhttps://ssapi.shipstation.com/shipments/createlabel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://docs.shipstation.com/_mock/apis/shipstation-v1/openapi/shipments/createlabel \
-H 'Content-Type: application/json' \
-d '{
"carrierCode": "fedex",
"serviceCode": "fedex_ground",
"packageCode": "package",
"confirmation": "delivery",
"shipDate": "2014-04-03",
"weight": {
"value": 24,
"units": "ounces"
},
"dimensions": {
"length": 7,
"width": 5,
"height": 6,
"units": "inches"
},
"shipFrom": {
"name": "John Doe",
"company": "Acme Corp",
"street1": "123 Main St",
"street2": "Apt 4B",
"street3": "Building B",
"city": "Austin",
"state": "TX",
"postalCode": "78701",
"country": "US",
"phone": "512-555-1234",
"residential": true,
"addressVerified": "Address validated successfully"
},
"shipTo": {
"name": "John Doe",
"company": "Acme Corp",
"street1": "123 Main St",
"street2": "Apt 4B",
"street3": "Building B",
"city": "Austin",
"state": "TX",
"postalCode": "78701",
"country": "US",
"phone": "512-555-1234",
"residential": true,
"addressVerified": "Address validated successfully"
},
"insuranceOptions": {
"provider": "carrier",
"insureShipment": true,
"insuredValue": 200
},
"internationalOptions": {
"contents": "merchandise",
"customsItems": [
{
"customsItemId": 11558268,
"description": "Cotton T-Shirt",
"quantity": 2,
"value": 49.99,
"harmonizedTariffCode": "6109.10.0012",
"countryOfOrigin": "US"
}
],
"nonDelivery": "return_to_sender"
},
"advancedOptions": {
"warehouseId": 98765,
"nonMachinable": false,
"saturdayDelivery": false,
"containsAlcohol": false,
"mergedOrSplit": false,
"mergedIds": [
0
],
"parentId": 93348442,
"storeId": 12345,
"customField1": "Custom data that you can add to an order",
"customField2": "Per UI settings, this can appear on some carrier labels",
"customField3": "https://help.shipstation.com/hc/en-us/articles/206639957",
"source": "Webstore",
"billToParty": "third_party",
"billToAccount": "123456789",
"billToPostalCode": "78701",
"billToCountryCode": "US"
},
"testLabel": false
}'{ "shipmentId": 123456789, "shipmentCost": 8.25, "insuranceCost": 0, "trackingNumber": "9405511899564298878910", "labelData": "JVBERi0xLjQKJeLjz9MKMiAwIG9iago...", "formData": "string" }
- Mock serverhttps://docs.shipstation.com/_mock/apis/shipstation-v1/openapi/shipments/voidlabel
- Production Serverhttps://ssapi.shipstation.com/shipments/voidlabel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://docs.shipstation.com/_mock/apis/shipstation-v1/openapi/shipments/voidlabel \
-H 'Content-Type: application/json' \
-d '{
"shipmentId": 12345
}'{ "approved": true, "message": "Label voided successfully" }
- Mock serverhttps://docs.shipstation.com/_mock/apis/shipstation-v1/openapi/shipments
- Production Serverhttps://ssapi.shipstation.com/shipments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs.shipstation.com/_mock/apis/shipstation-v1/openapi/shipments?recipientName=string&recipientCountryCode=string&orderNumber=string&orderId=0&carrierCode=string&serviceCode=string&trackingNumber=string&createDateStart=2019-08-24T14%3A15%3A22Z&createDateEnd=2019-08-24T14%3A15%3A22Z&shipDateStart=2019-08-24&shipDateEnd=2019-08-24&voidDateStart=2019-08-24T14%3A15%3A22Z&voidDateEnd=2019-08-24T14%3A15%3A22Z&storeId=0&includeShipmentItems=false&sortBy=ShipDate&sortDir=ASC&page=1&pageSize=100'{ "shipments": [ { … } ], "total": 2, "page": 1, "pages": 1 }