← Tools Reference

AfterShip

AfterShip integration (Productivity, Location). Imported from open-connector.

API key9 toolshttps://api.aftership.com/tracking/2026-01
POST
aftership_create_tracking
Create an AfterShip tracking record for a shipment.

/trackings

36 parameters
ParamTypeRequiredDescription
idstringoptionalA custom tracking ID. AfterShip generates one if omitted.
tracking_numberstringrequiredThe carrier tracking number of the shipment.
slugstringoptionalThe AfterShip courier slug, such as dhl, ups, or usps.
slug_groupstringoptionalA courier slug group such as fedex-group.
shipment_tagsarrayoptionalShipment tag strings attached to the tracking.
courier_connection_idstringoptionalThe AfterShip courier connection ID.
last_milestringoptionalThe AfterShip courier slug, such as dhl, ups, or usps.
titlestringoptionalA user-facing tracking title, such as an order number.
order_idstringoptionalA globally unique identifier for the order.
custom_fieldsobjectoptionalCustom tracking fields sent to AfterShip as string key-value pairs.
order_id_pathstringoptionalThe URL for the order in your system or store.
languagestringoptionalThe recipient's ISO 639-1 language code for notifications.
order_promised_delivery_dateobjectoptionalThe promised delivery date range in the shipment recipient's timezone.
pickup_locationstringoptionalThe shipment pickup location for the receiver.
delivery_typestringoptionalThe shipment delivery type.
pickup_notestringoptionalThe shipment pickup note for the receiver.
tracking_account_numberstringoptionalThe shipper's carrier account number.
tracking_keystringoptionalA carrier-specific tracking credential.
tracking_ship_datestringoptionalThe shipment ship date.
origin_country_regionstringoptionalThe origin country or region as an ISO Alpha-3 code.
origin_statestringoptionalThe origin state or province.
origin_citystringoptionalThe origin city.
origin_postal_codestringoptionalThe origin postal code.
origin_raw_locationstringoptionalThe origin address or raw location text.
destination_country_regionstringoptionalThe destination country or region as an ISO Alpha-3 code.
destination_statestringoptionalThe destination state or province.
destination_citystringoptionalThe destination city.
destination_postal_codestringoptionalThe destination postal code.
destination_raw_locationstringoptionalThe destination address or raw location text.
notestringoptionalA note attached to the tracking.
order_datestringoptionalThe order date.
order_numberstringoptionalThe order number.
shipment_typestringoptionalThe shipment type.
location_idstringoptionalThe AfterShip location ID.
shipping_methodstringoptionalThe shipping method name.
customersarrayoptionalCustomer contacts attached to the tracking.
GET
aftership_get_tracking
Retrieve one AfterShip tracking record by tracking ID.

/trackings/{id}

3 parameters
ParamTypeRequiredDescription
idstringrequiredThe AfterShip tracking ID.
fieldsstringoptionalA comma-separated list of response fields to include.
langstringoptionalThe language code used to translate checkpoint messages.
PUT
aftership_update_tracking
Update editable fields on an AfterShip tracking record.

/trackings/{id}

31 parameters
ParamTypeRequiredDescription
idstringrequiredThe AfterShip tracking ID.
slugstringoptionalThe AfterShip courier slug, such as dhl, ups, or usps.
titlestringoptionalA user-facing tracking title, such as an order number.
order_idstringoptionalA globally unique identifier for the order.
custom_fieldsobjectoptionalCustom tracking fields sent to AfterShip as string key-value pairs.
order_id_pathstringoptionalThe URL for the order in your system or store.
languagestringoptionalThe recipient's ISO 639-1 language code for notifications.
order_promised_delivery_dateobjectoptionalThe promised delivery date range in the shipment recipient's timezone.
pickup_locationstringoptionalThe shipment pickup location for the receiver.
delivery_typestringoptionalThe shipment delivery type.
pickup_notestringoptionalThe shipment pickup note for the receiver.
tracking_account_numberstringoptionalThe shipper's carrier account number.
tracking_keystringoptionalA carrier-specific tracking credential.
tracking_ship_datestringoptionalThe shipment ship date.
origin_country_regionstringoptionalThe origin country or region as an ISO Alpha-3 code.
origin_statestringoptionalThe origin state or province.
origin_citystringoptionalThe origin city.
origin_postal_codestringoptionalThe origin postal code.
origin_raw_locationstringoptionalThe origin address or raw location text.
destination_country_regionstringoptionalThe destination country or region as an ISO Alpha-3 code.
destination_statestringoptionalThe destination state or province.
destination_citystringoptionalThe destination city.
destination_postal_codestringoptionalThe destination postal code.
destination_raw_locationstringoptionalThe destination address or raw location text.
notestringoptionalA note attached to the tracking.
order_datestringoptionalThe order date.
order_numberstringoptionalThe order number.
shipment_typestringoptionalThe shipment type.
location_idstringoptionalThe AfterShip location ID.
shipping_methodstringoptionalThe shipping method name.
customersarrayoptionalCustomer contacts attached to the tracking.
DELETE
aftership_delete_tracking
Delete an AfterShip tracking record by tracking ID.

/trackings/{id}

1 parameter
ParamTypeRequiredDescription
idstringrequiredThe AfterShip tracking ID.
GET
aftership_list_trackings
List AfterShip trackings with cursor pagination and shipment filters.

/trackings

18 parameters
ParamTypeRequiredDescription
cursorstringoptionalThe cursor value for the current page of results.
limitintegeroptionalThe number of trackings to return on each page.
keywordstringoptionalSearch tracking numbers, titles, order IDs, customers, and custom fields.
tracking_numbersarrayoptionalTracking numbers to filter by. AfterShip supports up to 50 values.
slugarrayoptionalCourier slugs to filter by.
transit_timeintegeroptionalTotal delivery time in days.
originarrayoptionalOrigin ISO Alpha-3 country or region codes.
destinationarrayoptionalDestination ISO Alpha-3 country or region codes.
tagstringoptionalThe current shipment delivery status.
created_at_minstringoptionalOnly include trackings created at or after this timestamp.
created_at_maxstringoptionalOnly include trackings created at or before this timestamp.
updated_at_minstringoptionalOnly include trackings updated at or after this timestamp.
updated_at_maxstringoptionalOnly include trackings updated at or before this timestamp.
fieldsstringoptionalA comma-separated list of response fields to include.
return_to_senderbooleanoptionalWhether to filter return-to-sender shipments.
courier_destination_country_regionstringoptionalThe courier destination country or region to filter by.
shipment_tagsarrayoptionalShipment tags to filter by.
order_idstringoptionalThe order ID to filter by.
POST
aftership_retrack_tracking
Ask AfterShip to retrack an expired tracking record by ID.

/trackings/{id}/retrack

1 parameter
ParamTypeRequiredDescription
idstringrequiredThe AfterShip tracking ID.
POST
aftership_mark_tracking_completed
Mark an AfterShip tracking record as completed by ID.

/trackings/{id}/mark-as-completed

3 parameters
ParamTypeRequiredDescription
idstringrequiredThe AfterShip tracking ID.
reasonstringrequiredThe reason for marking the tracking as completed.
event_datetimestringoptionalThe completion event timestamp.
GET
aftership_list_couriers
List AfterShip couriers, optionally limited to active couriers or slugs.

/couriers

2 parameters
ParamTypeRequiredDescription
activebooleanoptionalWhether to return only couriers activated for the account.
slugarrayoptionalCourier slugs to filter by.
POST
aftership_detect_couriers
Detect possible AfterShip couriers for a tracking number.

/couriers/detect

10 parameters
ParamTypeRequiredDescription
tracking_numberstringrequiredThe carrier tracking number to inspect.
slugarrayoptionalCourier slugs to limit auto-detection to.
destination_postal_codestringoptionalThe destination postal code.
tracking_ship_datestringoptionalThe shipping date in YYYYMMDD format.
tracking_account_numberstringoptionalThe shipper's carrier account number.
tracking_keystringoptionalA carrier-specific tracking credential.
destination_statestringoptionalThe destination state or province.
slug_groupstringoptionalA courier slug group such as fedex-group.
origin_country_regionstringoptionalThe origin country or region as an ISO Alpha-3 code.
destination_country_regionstringoptionalThe destination country or region as an ISO Alpha-3 code.