Volver al catálogo

AfterShip

aftership

AfterShip provides shipment tracking, courier detection and connections, and estimated delivery date prediction for ecommerce operations.

Acciones
17
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (17)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create Courier ConnectionAFTERSHIP_CREATE_COURIER_CONNECTIONAcción

Connect one courier account using the courier-specific credential fields advertised by courier metadata.

Parámetros de entrada

  • courier_slugstringObligatorio

    Courier slug to connect. Use LIST_COURIERS to resolve the slug and inspect its required credential fields.

  • carrier_account_fieldsobjectObligatorio

    Carrier-specific secret values keyed by the exact field names from the courier's credentials.fields metadata. Values are sent only to AfterShip; do not use this field for non-secret metadata, and credential values are never included in this action's output.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create TrackingAFTERSHIP_CREATE_TRACKINGAcción

Create one shipment tracking record from a tracking number and optional courier, order, route, customer, and delivery metadata.

Parámetros de entrada

  • idstring

    Optional caller-defined tracking ID; omit to let AfterShip generate one.

  • notestring

    Internal note associated with the tracking.

  • titlestring

    Human-readable tracking title.

  • languagestring

    Recipient ISO 639-1 language code.

  • order_idstring

    Globally unique order identifier.

  • customersobject[]

    Customers associated with the tracking, up to three.

  • last_mileobject

    Known last-mile courier and tracking number.

  • order_datestring

    Order date-time, preferably including its timezone.

  • location_idstring

    AfterShip fulfillment location ID; cannot be combined with explicit origin fields.

  • origin_citystring

    Origin city.

  • pickup_notestring

    Pickup instructions shown to the recipient.

  • courier_slugstring

    Courier slug; cannot be combined with courier_slug_group.

  • order_numberstring

    Human-readable order number.

  • origin_statestring

    Origin state or province.

  • tracking_keystring

    Additional carrier tracking credential required by some couriers.

  • custom_fieldsobject

    Non-personal custom string fields associated with the shipment.

  • delivery_typestringenum

    Shipment delivery method.

    pickup_at_storedoor_to_doorpickup_at_courier
  • order_id_pathstring

    URL for the order in the merchant system.

  • shipment_tagsstring[]

    Tags used to categorize the shipment.

  • shipment_typestring

    Carrier service type for the shipment.

  • pickup_locationstring

    Pickup location shown to the recipient.

  • shipping_methodstring

    Merchant-facing shipping method name.

  • tracking_numberstringObligatorio

    Carrier tracking number for the shipment.

  • destination_citystring

    Destination city.

  • destination_statestring

    Destination state or province.

  • courier_slug_groupstring

    Courier slug group for detection; cannot be combined with courier_slug.

  • origin_postal_codestring

    Origin postal code.

  • shipment_directionstringenum

    Direction in the ecommerce fulfillment lifecycle.

    forwardreturn
  • tracking_ship_datestring

    Shipment-ready date or date-time accepted by the courier.

  • origin_raw_locationstring

    Unstructured origin address.

  • courier_connection_idstring

    Courier connection to use when multiple accounts exist for the courier.

  • origin_country_regionstring

    Origin ISO 3166-1 alpha-3 country or region code.

  • destination_postal_codestring

    Destination postal code.

  • tracking_account_numberstring

    Carrier account number required by some couriers.

  • destination_raw_locationstring

    Unstructured destination address.

  • destination_country_regionstring

    Destination ISO 3166-1 alpha-3 country or region code.

  • order_promised_delivery_dateobject

    Promised delivery date or range in the recipient timezone.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Trackings BatchAFTERSHIP_CREATE_TRACKINGS_BATCHAcción

Sequentially create 1-20 tracking records through AfterShip's single-record create endpoint. This operation is non-atomic: each item consumes one request, successful earlier creates are not rolled back, and no create is retried automatically. Item-specific 400 and 409 rejections do not stop later items; authentication, permission, rate-limit, server, malformed-success, and transport failures stop processing and mark remaining items not_attempted.

Parámetros de entrada

  • trackingsobject[]Obligatorio

    Tracking records to create in order, from 1 to 20. Each item uses the full single-tracking create contract and consumes one provider request.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Courier ConnectionAFTERSHIP_DELETE_COURIER_CONNECTIONAcción

Permanently remove one courier account connection by an ID obtained from list or create. Warning: this destructive action cannot be undone.

Parámetros de entrada

  • courier_connection_idstringObligatorio

    Courier connection ID to permanently remove. Use an ID returned by LIST_COURIER_CONNECTIONS or CREATE_COURIER_CONNECTION.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete TrackingAFTERSHIP_DELETE_TRACKINGAcción

Permanently delete one tracking record by its AfterShip tracking ID. Warning: this destructive action cannot be undone.

Parámetros de entrada

  • tracking_idstringObligatorio

    AfterShip tracking ID to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Detect CourierAFTERSHIP_DETECT_COURIERAcción

Return couriers that may handle a tracking number, using optional courier and shipment hints to narrow detection.

Parámetros de entrada

  • tracking_keystring

    Additional carrier tracking credential used as a detection hint.

  • courier_slugsstring[]

    Candidate courier slugs; cannot be combined with courier_slug_group.

  • tracking_numberstringObligatorio

    Carrier tracking number to analyze.

  • destination_statestring

    Destination state or province used as a detection hint.

  • courier_slug_groupstring

    Candidate courier slug group; cannot be combined with courier_slugs.

  • tracking_ship_datestring

    Shipment date in YYYYMMDD format when required by a courier.

  • origin_country_regionstring

    Origin uppercase ISO 3166-1 alpha-3 country or region code.

  • destination_postal_codestring

    Destination postal code used as a courier-specific hint.

  • tracking_account_numberstring

    Carrier account number used as a detection hint.

  • destination_country_regionstring

    Destination uppercase ISO 3166-1 alpha-3 country or region code.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Courier ConnectionAFTERSHIP_GET_COURIER_CONNECTIONAcción

Return one courier account connection by an ID obtained from list or create.

Parámetros de entrada

  • courier_connection_idstringObligatorio

    Courier connection ID returned by list or create; do not invent a UUID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get TrackingAFTERSHIP_GET_TRACKINGAcción

Return one tracking record by its AfterShip tracking ID, with optional field selection and checkpoint translation.

Parámetros de entrada

  • fieldsstring[]

    Response fields to include; omit for the full tracking object.

  • languagestring

    Target language code for translated checkpoint messages.

  • tracking_idstringObligatorio

    AfterShip tracking ID returned by create or list, not the carrier tracking number.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Courier ConnectionsAFTERSHIP_LIST_COURIER_CONNECTIONSAcción

Return one cursor-controlled page of courier account connections, optionally filtered by courier slug.

Parámetros de entrada

  • limitinteger

    Maximum connections to return in this page (1-200).

  • cursorstring

    Opaque next cursor returned by a previous call; omit for the first page.

  • courier_slugstring

    Courier slug whose connections should be returned.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List CouriersAFTERSHIP_LIST_COURIERSAcción

Return courier metadata, optionally limited to account-activated couriers or selected courier slugs, including required tracking and credential field definitions.

Parámetros de entrada

  • activeboolean

    Set true to return couriers activated for the connected AfterShip account; omit to use provider default behavior.

  • courier_slugsstring[]

    Courier slugs to return.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List TrackingsAFTERSHIP_LIST_TRACKINGSAcción

Return one cursor-controlled page of shipment trackings, optionally filtered by identifiers, courier, status, dates, route, or shipment metadata.

Parámetros de entrada

  • tagstringenum

    Tracking status to match.

    PendingInfoReceivedInTransitOutForDeliveryAttemptFailDeliveredAvailableForPickupExceptionExpired
  • limitinteger

    Maximum trackings to return in this page (1-200).

  • cursorstring

    Opaque next cursor returned by a previous call; omit for the first page.

  • fieldsstring[]

    Optional response fields to include.

  • keywordstring

    Search text for matching trackings.

  • order_idsstring[]

    Order IDs to match.

  • transit_timeinteger

    Match shipments with this transit time in days.

  • courier_slugsstring[]

    Courier slugs to match.

  • shipment_tagsstring[]

    Shipment tags to match.

  • created_at_maxstring

    Inclusive upper bound for creation time.

  • created_at_minstring

    Inclusive lower bound for creation time.

  • updated_at_maxstring

    Inclusive upper bound for update time.

  • updated_at_minstring

    Inclusive lower bound for update time.

  • return_to_senderboolean[]

    Filter by return-to-sender state.

  • tracking_numbersstring[]

    Tracking numbers to match, up to 50.

  • origin_country_regionsstring[]

    Origin ISO alpha-3 country or region codes.

  • destination_country_regionsstring[]

    Destination ISO alpha-3 country or region codes.

  • courier_destination_country_regionstring

    Courier-resolved destination country or region code.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Mark Tracking CompletedAFTERSHIP_MARK_TRACKING_COMPLETEDAcción

Mark a tracking as delivered, lost, or returned to sender. Warning: a successful call stops automatic tracking updates until the tracking is retracked.

Parámetros de entrada

  • reasonstringObligatorioenum

    Completion outcome to record: delivered, lost, or returned to sender.

    DELIVEREDLOSTRETURNED_TO_SENDER
  • tracking_idstringObligatorio

    AfterShip tracking ID to mark completed, not the carrier tracking number.

  • event_datetimestring

    When the completion event occurred, as YYYY-MM-DD, YYYY-MM-DDTHH:mm:ss, or YYYY-MM-DDTHH:mm:ssZ.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Predict Estimated Delivery DateAFTERSHIP_PREDICT_ESTIMATED_DELIVERY_DATEAcción

Predict an estimated delivery date before a tracking number exists. This paid endpoint requires Predict trial access or an AfterShip advanced plan.

Parámetros de entrada

  • weightobject

    Total package weight.

  • pickup_timestring

    Known local pickup date-time in the origin time zone; do not combine with estimated_pickup.

  • courier_slugstringObligatorio

    AfterShip courier slug for the planned shipment.

  • package_countinteger

    Number of packages in the shipment.

  • origin_addressobjectObligatorio

    Origin address with a country code and either a state or postal code.

  • estimated_pickupobject

    Order schedule from which AfterShip should estimate pickup; do not combine with pickup_time.

  • service_type_namestring

    Courier service type used for the shipment.

  • destination_addressobjectObligatorio

    Destination address with a country code and either a state or postal code.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Predict Estimated Delivery Dates BatchAFTERSHIP_PREDICT_ESTIMATED_DELIVERY_DATES_BATCHAcción

Predict estimated delivery dates atomically for one to five planned shipments. One invalid item fails the whole batch. The connected AfterShip organization must have a Predict trial or advanced-plan entitlement.

Parámetros de entrada

  • estimated_delivery_datesobject[]Obligatorio

    One to five prediction requests. Every item requires a courier, both addresses, and exactly one pickup-time form. One invalid item fails the entire batch.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Retrack TrackingAFTERSHIP_RETRACK_TRACKINGAcción

Restart automatic updates for an expired tracking. Only expired trackings are eligible, and each successful call irreversibly consumes one of at most three retrack attempts for that tracking.

Parámetros de entrada

  • tracking_idstringObligatorio

    AfterShip ID of an expired tracking to retrack. This action only accepts expired trackings, and each successful call consumes one of the tracking's maximum three retrack attempts.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Courier ConnectionAFTERSHIP_UPDATE_COURIER_CONNECTIONAcción

Replace carrier-specific credentials on an existing courier account connection. Warning: this consequential credential rotation replaces the complete credential set; incorrect values can stop future tracking updates.

Parámetros de entrada

  • courier_connection_idstringObligatorio

    Courier connection ID returned by list or create.

  • carrier_account_fieldsobjectObligatorio

    Complete carrier-specific secret values keyed by the exact field names advertised for this connection's courier. Values are sent only to AfterShip and are never included in this action's output.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update TrackingAFTERSHIP_UPDATE_TRACKINGAcción

Update editable order, courier, route, customer, and delivery metadata on an existing tracking record.

Parámetros de entrada

  • notestring

    Replacement internal note.

  • titlestring

    Replacement human-readable tracking title.

  • languagestring

    Replacement recipient ISO 639-1 language code.

  • order_idstring

    Replacement globally unique order identifier.

  • customersobject[]

    Replacement customer list, up to three.

  • last_mileobject

    Replacement last-mile courier and tracking number. Send null explicitly to clear the existing last-mile value.

  • order_datestring

    Replacement order date-time.

  • location_idstring

    Replacement AfterShip fulfillment location ID; do not combine with explicit origin fields.

  • origin_citystring

    Replacement origin city.

  • pickup_notestring

    Replacement pickup instructions.

  • tracking_idstringObligatorio

    AfterShip tracking ID to update.

  • courier_slugstring

    Replacement courier slug.

  • order_numberstring

    Replacement human-readable order number.

  • origin_statestring

    Replacement origin state or province.

  • tracking_keystring

    Replacement additional carrier tracking credential.

  • custom_fieldsobject

    Replacement non-personal custom string fields.

  • delivery_typestringenum

    Replacement delivery method.

    pickup_at_storedoor_to_doorpickup_at_courier
  • order_id_pathstring

    Replacement URL for the order in the merchant system.

  • shipment_typestring

    Replacement carrier service type.

  • pickup_locationstring

    Replacement pickup location.

  • shipping_methodstring

    Replacement merchant-facing shipping method.

  • destination_citystring

    Replacement destination city.

  • destination_statestring

    Replacement destination state or province.

  • origin_postal_codestring

    Replacement origin postal code.

  • shipment_directionstringenum

    Replacement ecommerce fulfillment direction.

    forwardreturn
  • tracking_ship_datestring

    Replacement shipment-ready date or date-time.

  • origin_raw_locationstring

    Replacement unstructured origin address.

  • origin_country_regionstring

    Replacement origin ISO 3166-1 alpha-3 country code.

  • destination_postal_codestring

    Replacement destination postal code.

  • tracking_account_numberstring

    Replacement carrier account number.

  • destination_raw_locationstring

    Replacement unstructured destination address.

  • destination_country_regionstring

    Replacement destination ISO 3166-1 alpha-3 country code.

  • order_promised_delivery_dateobject

    Replacement promised delivery date or date range.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not