Process labels in bulk and receive a large number of labels and customs forms in bulk responses. Batching is ideal for workflows that need to process hundreds or thousands of labels quickly.
- List scheduled pickups
ShipStation API v2 (2.0.0)
Carrier ID
Warehouse ID
Only return scheduled pickups that were created on or after a specific date/time
Only return scheduled pickups that were created on or before a specific date/time
Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned.
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/pickups
- Productionhttps://api.shipstation.com/v2/pickups
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.shipstation.com/_mock/openapi/v2/pickups?carrier_id=se-28529731&warehouse_id=se-28529731&created_at_start=2019-03-12T19%3A24%3A13.657Z&created_at_end=2019-03-12T19%3A24%3A13.657Z&page=2&page_size=50' \
-H 'api-key: YOUR_API_KEY_HERE'The request was a success.
An array of pickups associated with the user's account.
Pickup Resource ID
An ISO 8601 string that represents a date and time.
An ISO 8601 string that represents a date and time.
The carrier_id associated with the pickup
The carrier confirmation number for the scheduled pickup.
The warehouse_id associated with the pickup
Any residential or business mailing address, anywhere in the world.
Note: Either
nameorcompany_namemust be set. Both may be specified, if relevant.
Used by some carriers to give special instructions for a package pickup
Helpful links to other pages of results
The link to the first page of results. This object will always have an href field. If there are no results, then the first page will contain an empty array of items.
The link to the final page of results. This object will always have an href field. If there are no results, then the final page will contain an empty array of items.
The link to the previous page of results. The href field will only be set when the page is 2 or greater.
The link to the next page of results. The href field will only be set when the page is less than pages.
A UUID that uniquely identifies the request id. This can be given to the support team to help debug non-trivial issues that may occur
The errors associated with the failed API call
The source of the error, as indicated by the name this informs us if the API call failed because of the carrier, the order source, or the ShipStation API itself.
The type of error
The error code specified for the failed API Call
An error message associated with the failed API call
The name of the field that caused the error (only present for validation errors)
{ "pickups": [ { … } ], "total": 3, "page": 3, "pages": 4, "links": { "first": { … }, "last": { … }, "prev": { … }, "next": { … } }, "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009", "errors": [ { … } ] }
Used by some carriers to give special instructions for a package pickup
The desired time range for the package pickup.
An ISO 8601 string that represents a date and time.
An ISO 8601 string that represents a date and time.
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/pickups
- Productionhttps://api.shipstation.com/v2/pickups
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.shipstation.com/_mock/openapi/v2/pickups \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"label_ids": [
"se-28529731"
],
"contact_details": {
"name": "Jonh",
"email": "email@email.com",
"phone": "89876752562"
},
"pickup_notes": "call before 15:00",
"pickup_window": {
"start_at": "2018-09-23T15:00:00.000Z",
"end_at": "2018-09-23T15:00:00.000Z"
}
}'The request was a success.
Pickup Resource ID
An ISO 8601 string that represents a date and time.
An ISO 8601 string that represents a date and time.
The carrier_id associated with the pickup
The carrier confirmation number for the scheduled pickup.
The warehouse_id associated with the pickup
Any residential or business mailing address, anywhere in the world.
Note: Either
nameorcompany_namemust be set. Both may be specified, if relevant.
The name of a contact person at this address. This field may be set instead of - or in addition to - the company_name field.
The phone number of a contact person at this address. The format of this phone number varies depending on the country.
If this is a business address, then the company name should be specified here.
The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.
The second line of the street address. For some addresses, this line may not be needed.
The third line of the street address. For some addresses, this line may not be needed.
The name of the city or locality
The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.
A two-letter ISO 3166-1 country code
Used by some carriers to give special instructions for a package pickup
An array of available pickup windows. Carriers can return multiple times that they will pickup packages.
A UUID that uniquely identifies the request id. This can be given to the support team to help debug non-trivial issues that may occur
The errors associated with the failed API call
The source of the error, as indicated by the name this informs us if the API call failed because of the carrier, the order source, or the ShipStation API itself.
The type of error
The error code specified for the failed API Call
An error message associated with the failed API call
The name of the field that caused the error (only present for validation errors)
{ "pickup_id": "pik_3YcKU5zdtJuCqoeNwyqqbW", "label_ids": [ "se-28529731" ], "created_at": "2018-09-23T15:00:00.000Z", "cancelled_at": "2018-09-23T15:00:00.000Z", "carrier_id": "se-1234567", "confirmation_number": "292513CL4A3", "warehouse_id": "se-28529731", "pickup_address": { "name": "John Doe", "phone": "+1 204-253-9411 ext. 123", "email": "example@example.com", "company_name": "The Home Depot", "address_line1": "1999 Bishop Grandin Blvd.", "address_line2": "Unit 408", "address_line3": "Building #7", "city_locality": "Winnipeg", "state_province": "Manitoba", "postal_code": "78756-3717", "country_code": "CA", "address_residential_indicator": "yes" }, "contact_details": { "name": "Jonh", "email": "email@email.com", "phone": "89876752562" }, "pickup_notes": "call before 15:00", "pickup_windows": [ { … } ], "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009", "errors": [ { … } ] }
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/pickups/{pickup_id}
- Productionhttps://api.shipstation.com/v2/pickups/{pickup_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.shipstation.com/_mock/openapi/v2/pickups/pik_3YcKU5zdtJuCqoeNwyqqbW \
-H 'api-key: YOUR_API_KEY_HERE'The request was a success.
Pickup Resource ID
An ISO 8601 string that represents a date and time.
An ISO 8601 string that represents a date and time.
The carrier_id associated with the pickup
The carrier confirmation number for the scheduled pickup.
The warehouse_id associated with the pickup
Any residential or business mailing address, anywhere in the world.
Note: Either
nameorcompany_namemust be set. Both may be specified, if relevant.
The name of a contact person at this address. This field may be set instead of - or in addition to - the company_name field.
The phone number of a contact person at this address. The format of this phone number varies depending on the country.
If this is a business address, then the company name should be specified here.
The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.
The second line of the street address. For some addresses, this line may not be needed.
The third line of the street address. For some addresses, this line may not be needed.
The name of the city or locality
The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.
A two-letter ISO 3166-1 country code
Used by some carriers to give special instructions for a package pickup
An array of available pickup windows. Carriers can return multiple times that they will pickup packages.
A UUID that uniquely identifies the request id. This can be given to the support team to help debug non-trivial issues that may occur
The errors associated with the failed API call
The source of the error, as indicated by the name this informs us if the API call failed because of the carrier, the order source, or the ShipStation API itself.
The type of error
The error code specified for the failed API Call
An error message associated with the failed API call
The name of the field that caused the error (only present for validation errors)
{ "pickup_id": "pik_3YcKU5zdtJuCqoeNwyqqbW", "label_ids": [ "se-28529731" ], "created_at": "2018-09-23T15:00:00.000Z", "cancelled_at": "2018-09-23T15:00:00.000Z", "carrier_id": "se-1234567", "confirmation_number": "292513CL4A3", "warehouse_id": "se-28529731", "pickup_address": { "name": "John Doe", "phone": "+1 204-253-9411 ext. 123", "email": "example@example.com", "company_name": "The Home Depot", "address_line1": "1999 Bishop Grandin Blvd.", "address_line2": "Unit 408", "address_line3": "Building #7", "city_locality": "Winnipeg", "state_province": "Manitoba", "postal_code": "78756-3717", "country_code": "CA", "address_residential_indicator": "yes" }, "contact_details": { "name": "Jonh", "email": "email@email.com", "phone": "89876752562" }, "pickup_notes": "call before 15:00", "pickup_windows": [ { … } ], "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009", "errors": [ { … } ] }
- Mock serverhttps://docs.shipstation.com/_mock/openapi/v2/pickups/{pickup_id}
- Productionhttps://api.shipstation.com/v2/pickups/{pickup_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.shipstation.com/_mock/openapi/v2/pickups/pik_3YcKU5zdtJuCqoeNwyqqbW \
-H 'api-key: YOUR_API_KEY_HERE'Return the pickup_id of the scheduled pickup that was successfully deleted
A UUID that uniquely identifies the request id. This can be given to the support team to help debug non-trivial issues that may occur
The errors associated with the failed API call
The source of the error, as indicated by the name this informs us if the API call failed because of the carrier, the order source, or the ShipStation API itself.
The type of error
The error code specified for the failed API Call
An error message associated with the failed API call
The name of the field that caused the error (only present for validation errors)
{ "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009", "errors": [ { … } ], "pickup_id": "pik_3YcKU5zdtJuCqoeNwyqqbW" }
Webhooks
Webhooks are a powerful feature that can save you from sending repeated polling requests to check on the state of something. With webhooks, ShipStation will automatically contact your servers when the stage changes. This can include parcel tracking events, notification when a batch operation completes, and more.