Shipments

Retrieve Shipment

Retrieves a shipment by its id, or by the payment id it fulfills.

get/shipments/{id}

Response

shipment retrieved

account_idstring required

The account that owns this shipment, prefixed biz_.

carrierstring nullable required

The shipping carrier detected for this shipment. Null until a tracking update identifies it.

created_atstring required

The datetime the shipment was created (ISO 8601).

idstring required

Shipment ID, prefixed ship_.

payment_idstring required

The payment this shipment fulfills, prefixed pay_.

status'unknown' | 'pre_transit' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'available_for_pickup' | 'return_to_sender' | 'failure' | 'cancelled' | 'error' required

The current delivery status of this shipment.

tracking_numberstring required

The carrier-assigned tracking number used to look up shipment progress.

tracking_urlstring required

A customer-facing URL to track this shipment's progress.

updated_atstring required

The datetime the shipment was last updated (ISO 8601).

Example response

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "carrier": "ups",
  "checkpoints": [
    {
      "location": "PHILADELPHIA, PA",
      "message": "Picked up",
      "status": "in_transit",
      "timestamp": "2026-01-01T12:00:00.000Z"
    }
  ],
  "created_at": "2026-01-01T12:00:00.000Z",
  "id": "ship_xxxxxxxxxxxxxx",
  "payment_id": "pay_xxxxxxxxxxxxxx",
  "status": "in_transit",
  "tracking_number": "1Z999AA10123456784",
  "tracking_url": "https://track.aftership.com/xxxxxxxxxxxxxxxxxx",
  "updated_at": "2026-01-01T12:00:00.000Z"
}

Changes

Changed in 65 of the 74 revisions of this API.8778

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope shipment:basic:read was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

Of the 74 revisions, 1 has no diff computed.