Operations 4
Documentation
Documentation
https://docs.shipstation.com/apis/shipengine/docs/getting-started/get-started
APIReference
https://docs.shipstation.com/apis/shipengine/openapi
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/shipengine:shipengine-package-pickups-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Shipengine Package Pickups API
version: 1.1.202604070904
contact:
name: ShipEngine Sales & Support
email: sales@shipengine.com
url: https://www.shipengine.com/contact/
x-phone: 1-512-856-5379
license:
name: Proprietary
url: https://www.shipengine.com/terms-of-service/
termsOfService: https://www.shipengine.com/terms-of-service/
x-logo:
url: https://shipengine.github.io/img/shipengine-logo-square.png
backgroundColor: '#FFFFFF'
altText: ShipEngine logo
description: 'Operations tagged package_pickups across 2 of this provider''s published API definitions: shipengine-openapi-docs-bundle.yaml, shipengine-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.shipengine.com
security:
- api_key: []
tags:
- name: package_pickups
description: Scheduled package pickups
x-displayName: Package Pickups
paths:
/v1/pickups:
summary: Scheduled pickups
description: 'Scheduled package pickups
'
get:
summary: List scheduled pickups
description: List all pickups that have been scheduled for this carrier
tags:
- package_pickups
operationId: list_scheduled_pickups
parameters:
- name: carrier_id
in: query
required: false
schema:
$ref: '#/components/schemas/se_id'
description: Carrier ID
- name: warehouse_id
in: query
required: false
schema:
$ref: '#/components/schemas/se_id'
description: Warehouse ID
- description: Only return scheduled pickups that were created on or after a specific date/time
name: created_at_start
in: query
required: false
schema:
type: string
format: date-time
example: '2019-03-12T19:24:13.657Z'
- description: Only return scheduled pickups that were created on or before a specific date/time
name: created_at_end
in: query
required: false
schema:
type: string
format: date-time
example: '2019-03-12T19:24:13.657Z'
- name: page
in: query
required: false
schema:
type: integer
format: int32
minimum: 1
default: 1
example: 2
description: '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.
'
- name: page_size
in: query
required: false
schema:
type: integer
format: int32
minimum: 1
default: 25
example: 50
description: The number of results to return per response.
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/get_pickups_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
post:
summary: Schedule a pickup
description: Schedule a package pickup with a carrier
tags:
- package_pickups
operationId: schedule_pickup
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/schedule_pickup_request_body'
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/schedule_pickup_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
servers:
- url: https://api.shipengine.com
/v1/pickups/{pickup_id}:
summary: Scheduled pickup
description: 'A package pickup that has been scheduled with a carrier
'
parameters:
- name: pickup_id
in: path
required: true
schema:
$ref: '#/components/schemas/pickup_resource_id'
get:
summary: Get pickup by ID
description: Get Pickup By ID
tags:
- package_pickups
operationId: get_pickup_by_id
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/get_pickup_by_id_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
delete:
summary: Delete a scheduled pickup
description: Delete a previously-scheduled pickup by ID
tags:
- package_pickups
operationId: delete_scheduled_pickup
responses:
'200':
description: 'Return the `pickup_id` of the scheduled pickup that was successfully deleted
'
content:
application/json:
schema:
$ref: '#/components/schemas/delete_pickup_by_id_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
servers:
- url: https://api.shipengine.com
components:
schemas:
pickup_window:
title: pickup_window
writeOnly: true
type: object
description: The desired time range for the package pickup.
required:
- start_at
- end_at
properties:
start_at:
$ref: '#/components/schemas/date_time'
end_at:
$ref: '#/components/schemas/date_time'
error_response_body:
title: error_response_body
type: object
description: An error response body
required:
- request_id
- errors
additionalProperties: false
properties:
request_id:
allOf:
- $ref: '#/components/schemas/uuid'
description: '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
'
errors:
type: array
readOnly: true
items:
$ref: '#/components/schemas/error'
description: The errors associated with the failed API call
get_pickup_by_id_response_body:
title: get_pickup_by_id_response_body
allOf:
- $ref: '#/components/schemas/pickup_response_body'
- $ref: '#/components/schemas/error_response_body'
se_id:
title: se_id
type: string
minLength: 1
maxLength: 25
pattern: ^se(-[a-z0-9]+)+$
example: se-28529731
description: A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
address_residential_indicator:
title: address_residential_indicator
type: string
enum:
- unknown
- 'yes'
- 'no'
example: 'no'
description: Indicates whether an address is residential.
error_source:
title: error_source
type: string
example: shipengine
enum:
- carrier
- order_source
- shipengine
description: '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 ShipEngine API itself.
'
schedule_pickup_response_body:
title: schedule_pickup_response_body
allOf:
- $ref: '#/components/schemas/pickup'
- $ref: '#/components/schemas/error_response_body'
pickup_windows:
title: pickup_windows
type: object
properties:
start_at:
$ref: '#/components/schemas/date_time'
end_at:
$ref: '#/components/schemas/date_time'
pickup_response_body:
title: pickup_response_body
description: A pickup response body
required:
- pickup_id
- label_ids
- created_at
- carrier_id
- warehouse_id
- pickup_address
- contact_details
- pickup_notes
- pickup_window
- confirmation_number
additionalProperties: false
allOf:
- $ref: '#/components/schemas/pickup'
error_code:
title: error_code
type: string
example: invalid_field_value
enum:
- auto_fund_not_supported
- batch_cannot_be_modified
- bring_your_own_label_not_supported
- carrier_conflict
- carrier_disconnected
- carrier_not_connected
- carrier_not_supported
- confirmation_not_supported
- default_warehouse_cannot_be_deleted
- field_conflict
- field_value_required
- forbidden
- identifier_conflict
- identifiers_must_match
- insufficient_funds
- invalid_address
- invalid_billing_plan
- invalid_field_value
- invalid_identifier
- invalid_status
- invalid_string_length
- label_images_not_supported
- meter_failure
- multiple_sales_orders
- order_source_not_active
- rate_limit_exceeded
- refresh_not_supported
- request_body_required
- return_label_not_supported
- sales_order_link_required
- settings_not_supported
- subscription_inactive
- terms_not_accepted
- tracking_not_supported
- trial_expired
- unauthorized
- unknown
- unspecified
- verification_failure
- warehouse_conflict
- webhook_event_type_conflict
- customs_items_required
- incompatible_paired_labels
- invalid_charge_event
- invalid_object
- no_rates_returned
- file_not_found
- shipping_rule_not_found
- service_not_determined
- funding_source_registration_in_progress
- insurance_failure
- funding_source_missing_configuration
- funding_source_error
- freight_connection_inactive
- freight_provider_id_required
- freight_provider_already_connected
- freight_shipment_not_found
- freight_tracking_not_available
- freight_tracking_not_found
- freight_shipment_not_batchable
description: The error code specified for the failed API Call
carrier_code:
title: carrier_code
type: string
pattern: ^[a-z0-9]+(_[a-z0-9]+)*$
example: dhl_express
description: 'A shipping carrier, such as `fedex`, `dhl_express`, `stamps_com`, etc.
'
pickup:
title: pickup
type: object
description: 'The information necessary to schedule a package pickup
'
additionalProperties: false
properties:
pickup_id:
readOnly: true
allOf:
- $ref: '#/components/schemas/pickup_resource_id'
label_ids:
type: array
items:
allOf:
- $ref: '#/components/schemas/se_id'
description: Label ID that will be included in the pickup request
description: Label IDs that will be included in the pickup request
created_at:
readOnly: true
allOf:
- $ref: '#/components/schemas/date_time'
description: The date and time that the pickup was created in ShipEngine.
cancelled_at:
readOnly: true
allOf:
- $ref: '#/components/schemas/date_time'
description: The date and time that the pickup was cancelled in ShipEngine.
carrier_id:
readOnly: true
allOf:
- $ref: '#/components/schemas/se_id'
description: The carrier_id associated with the pickup
confirmation_number:
readOnly: true
type:
- string
- 'null'
description: The carrier confirmation number for the scheduled pickup.
example: 292513CL4A3
warehouse_id:
readOnly: true
allOf:
- $ref: '#/components/schemas/se_id'
description: The warehouse_id associated with the pickup
pickup_address:
readOnly: true
allOf:
- $ref: '#/components/schemas/address'
contact_details:
$ref: '#/components/schemas/contact_details'
pickup_notes:
type: string
minLength: 0
description: Used by some carriers to give special instructions for a package pickup
pickup_window:
$ref: '#/components/schemas/pickup_window'
pickup_windows:
readOnly: true
type: array
description: 'An array of available pickup windows. Carriers can return multiple times that they will pickup packages.
'
items:
$ref: '#/components/schemas/pickup_windows'
uuid:
title: uuid
type: string
format: uuid
minLength: 36
maxLength: 36
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
example: aa3d8e8e-462b-4476-9618-72db7f7b7009
description: A UUID (a.k.a. GUID) that uniquely identifies a resource
error:
title: error
type: object
description: 'The error structure that gets returned with almost all failed API calls
'
required:
- error_source
- error_type
- error_code
- message
additionalProperties: false
properties:
error_source:
$ref: '#/components/schemas/error_source'
error_type:
$ref: '#/components/schemas/error_type'
error_code:
$ref: '#/components/schemas/error_code'
message:
type: string
readOnly: true
example: Body of request cannot be null.
minLength: 1
description: An error message associated with the failed API call
carrier_id:
readOnly: true
allOf:
- $ref: '#/components/schemas/se_id'
description: A string that uniquely identifies the carrier that generated the error.
carrier_code:
readOnly: true
allOf:
- $ref: '#/components/schemas/carrier_code'
description: 'The name of the shipping carrier that generated the error, such as `fedex`, `dhl_express`, `stamps_com`, etc.
'
field_name:
type: string
readOnly: true
example: shipment.ship_to.phone_number
description: The name of the field that caused the error
delete_scheduled_pickup_response_body:
title: delete_scheduled_pickup_response_body
type: object
description: A delete scheduled pickup response body
additionalProperties: false
required:
- pickup_id
properties:
pickup_id:
$ref: '#/components/schemas/pickup_resource_id'
country_code:
title: country_code
type: string
minLength: 2
maxLength: 2
example: CA
description: 'A two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
'
url:
title: url
type: string
format: url
minLength: 1
example: https://example.com/resource
description: A URL
pickup_resource_id:
title: pickup_resource_id
type: string
minLength: 4
example: pik_3YcKU5zdtJuCqoeNwyqqbW
description: Pickup Resource ID
address:
title: address
description: 'Any residential or business mailing address, anywhere in the world.
> **Note:** Either `name` or `company_name` must be set. Both may be specified, if relevant.
'
required:
- name
- address_line1
- city_locality
- state_province
- postal_code
allOf:
- $ref: '#/components/schemas/partial_address'
contact_details:
title: contact_details
type: object
required:
- name
- email
- phone
properties:
name:
type: string
minLength: 1
email:
$ref: '#/components/schemas/email'
phone:
type: string
minLength: 7
description: Phone number associated
date_time:
title: date_time
type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]\d{2}:\d{2})$
example: '2018-09-23T15:00:00.000Z'
description: 'An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time.
'
pagination_link:
title: pagination_link
type: object
description: Helpful links to other pages of results
required:
- first
- last
- prev
- next
additionalProperties: false
properties:
first:
allOf:
- $ref: '#/components/schemas/link'
description: '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.
'
last:
allOf:
- $ref: '#/components/schemas/link'
description: '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.
'
prev:
allOf:
- $ref: '#/components/schemas/optional_link'
description: 'The link to the previous page of results. The `href` field will only be set when the `page` is 2 or greater.
'
next:
allOf:
- $ref: '#/components/schemas/optional_link'
description: 'The link to the next page of results. The `href` field will only be set when the `page` is less than `pages`.
'
postal_code:
title: postal_code
minLength: 1
type: string
example: 78756-3717
description: postal code
get_pickups_response_body:
title: get_pickups_response_body
allOf:
- $ref: '#/components/schemas/list_pickup_response_body'
- $ref: '#/components/schemas/error_response_body'
optional_link:
title: optional_link
description: A link to a related resource, or an empty object if there is no resource to link to
properties:
href:
allOf:
- $ref: '#/components/schemas/url'
description: The URL of the linked resource, if any
type:
type: string
minLength: 1
description: The type of resource, or the type of relationship to the parent resource
list_pickup_response_body:
title: list_pickup_response_body
type: object
description: A list pickup response body
required:
- pickups
- total
- page
- pages
- links
additionalProperties: false
properties:
pickups:
type: array
description: An array of pickups associated with the user's account.
items:
$ref: '#/components/schemas/pickup'
total:
type: integer
format: int64
readOnly: true
minimum: 0
example: 3
description: The total number of pickups returned
page:
type: integer
format: int32
readOnly: true
minimum: 1
example: 3
description: Current page of the list pickups results
pages:
type: integer
format: int32
readOnly: true
minimum: 1
example: 4
description: Total number of pages for list pickups results
links:
readOnly: true
allOf:
- $ref: '#/components/schemas/pagination_link'
description: Helpful links to other pages of results
partial_address:
title: partial_address
type: object
description: A complete or partial mailing address.
properties:
name:
type: string
minLength: 1
example: John Doe
description: 'The name of a contact person at this address. This field may be set instead of - or in addition to - the `company_name` field.
'
phone:
type: string
minLength: 1
example: +1 204-253-9411 ext. 123
description: 'The phone number of a contact person at this address. The format of this phone number varies depending on the country.
'
email:
type:
- string
- 'null'
example: example@example.com
description: 'Email for the address owner.
'
company_name:
type:
- string
- 'null'
minLength: 1
example: The Home Depot
description: 'If this is a business address, then the company name should be specified here.
'
address_line1:
type: string
minLength: 1
example: 1999 Bishop Grandin Blvd.
description: 'The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.
'
address_line2:
type:
- string
- 'null'
minLength: 1
example: Unit 408
description: 'The second line of the street address. For some addresses, this line may not be needed.
'
address_line3:
type:
- string
- 'null'
minLength: 1
example: 'Building #7'
description: 'The third line of the street address. For some addresses, this line may not be needed.
'
city_locality:
type: string
minLength: 1
example: Winnipeg
description: The name of the city or locality
state_province:
type: string
minLength: 1
example: Manitoba
description: 'The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.
'
postal_code:
$ref: '#/components/schemas/postal_code'
country_code:
allOf:
- $ref: '#/components/schemas/country_code'
description: 'The two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
'
address_residential_indicator:
default: unknown
example: 'no'
description: Indicates whether this is a residential address.
allOf:
- $ref: '#/components/schemas/address_residential_indicator'
schedule_pickup_request_body:
title: schedule_pickup_request_body
description: A schedule pickup request body
required:
- contact_details
- label_ids
- pickup_window
additionalProperties: false
allOf:
- $ref: '#/components/schemas/pickup'
delete_pickup_by_id_response_body:
title: delete_pickup_by_id_response_body
allOf:
- $ref: '#/components/schemas/error_response_body'
- $ref: '#/components/schemas/delete_scheduled_pickup_response_body'
email:
title: email
type: string
format: email
minLength: 1
example: john.doe@example.com
description: An email address.
error_type:
title: error_type
type: string
example: validation
enum:
- account_status
- business_rules
- validation
- security
- system
- integrations
- funding_sources
description: 'The type of error
'
link:
title: link
description: A link to a related resource
required:
- href
allOf:
- $ref: '#/components/schemas/optional_link'
responses:
404_error_response:
description: The specified resource does not exist.
content:
application/json:
schema:
$ref: '#/components/schemas/error_response_body'
400_error_response:
description: The request contained errors.
content:
application/json:
schema:
$ref: '#/components/schemas/error_response_body'
500_error_response:
description: 'An error occurred on ShipStation API''s side.
> This error will automatically be reported to our engineers.
'
content:
application/json:
schema:
$ref: '#/components/schemas/error_response_body'
securitySchemes:
api_key:
type: apiKey
name: API-Key
in: header
description: 'To authenticate yourself to ShipEngine, you need to include an `API-Key` header in each API call. If you don''t include a key when making an API request, or if you use an incorrect or expired key, then ShipEngine will respond with a `401 Unauthorized` error.
Learn more about API keys in our [authentication guide](https://docs.shipstation.com/apis/shipengine/docs/guides/auth).
'
x-refined-from:
- shipengine-openapi-docs-bundle.yaml
- shipengine-openapi.yml
x-provenance:
method: harvested
publisher: ShipEngine
source: https://raw.githubusercontent.com/ShipEngine/shipengine-openapi/master/openapi.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)