Skip to content

Get a shipment

Open .md

GET/v2/api/store/{team_slug}/v2/shipment/{unique_key}

v2Operation ID v2_public_shipment_show

A shipment sends some or all of a sales order's (or quote's) lines to one address, by one shipping type. One order can have many shipments. Each shipment line points at an order line with a quantity, or is a shipping cost line; packages hold the labels and tracking numbers.

Returns the shipment with its lines (items), packages (shipment_packages) and shipping estimates (shipment_estimates): order and customer, shipping type, Ship To as shipping_address_id plus the full address in shipping_address (null when none), the receiver contact as receiver_contact_id only (read it with Get a contact by id), ready_to_ship (every job of its lines is Completed), status_id plus the full status object, external_mutation_source (which side may change a Shopify shipment), notes, cost_total and billable_fee_total as { value, dp } pairs, and pdf links (packing slip and shipment labels; they carry their own access token).

scoped_id reads back as SHIP-<number>.

Permission

Any member of the team.

Path parameters

  • team_slugstringrequired

    Your team slug, shown as Team ID next to your API key in Profile.

    • Example your-team
  • unique_keystringrequired

    The shipment's id (a hash id), as its answers show it. Its unique key (shp_...) also works, but API answers don't include it.

    • Example MQyJUnd3oty75h

Request body

This operation takes no request body.

Response

200Successful response.

Errors

  • 401The API key is missing or wrong (unauthenticated).

  • 403You are not allowed to do this. api_access_not_in_plan: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only {"message": "Insufficient Permission"}. Other refusals use the error envelope, with unauthorized or user_is_not_authorized.

  • 404Not found. page_not_found: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's. code: null, with a message that starts "No query results for": there is no record with that id.

    When
    The shipment isn't your team's.
    Fix
    Use an id from the order's shipment list or Filter shipments.

Notes

  • Very old shipments (version 1) come back in the old shipment shape, without the v2 includes.