Shipments
Models
Shipment Model
Whether you are fetching shipping rates, purchasing a label, or tracking a shipment, we provide a standardized model across all carriers to ensure consistent and predictable responses.
object "shipment"
The description of the model.
amount integer
The amount collected for this shipment from the customer.
billed_amount integer
The amount billed to you for this shipment. If not specified, defaults to the amount field.
coordinates Array<Number, Number>
The latitude and longitude of the current location.
created_at DateTime
Time in epoch seconds when this shipment was created.
updated_at DateTime
Time in epoch seconds when this shipment was last updated.
rates_generated_at DateTime
Time in epoch seconds when rates were last generated for this shipment.
estimated_delivery_at DateTime
The estimated delivery time for this shipment in epoch seconds.
pickup_at DateTime
The time in epoch seconds when this shipment will be picked up.
currency string
The lowercase three-character code for the currency used for this transaction. Defaults to "usd".
id string
Unique identifier for the shipment, prefixed with ship_
status string
Current status for this shipment. Follows the standardized status configuration. See Statuses.
metadata object
Key-value pairs of custom data that you can set for this shipment.
paid boolean
Indicates if this shipment was paid for successfully.
parcels Parcel[]
A list of parcels associated with this shipment. Empty array if no parcels are present.
payment_reference string
A reference for the payment of this shipment. This will be visible on the invoice.
purchased_rate Rate
The selected rate used for this shipment. See Rate model for details.
recommended_rate Rate
The recommended rate is the lowest billed_amount rate. See Rate model for details.
rates Rate[]
All rates returned for this shipment. See Rate model for details.
rma_number string
Unique identifier for return shipments, used for processing returns.
invoice_number string
Unique identifier for the shipment's invoice.
reference_number string
User-defined identifier for the shipment.
purchase_order string
Purchase order number for the shipment, either user-defined or scanned from the shipping label.
account_id string
Carrier-specific account identifier used for billing and rate calculations. Can be either manually specified or automatically extracted from scanned shipping labels.
notes string
Additional comments or information about the shipment. Limited to 255 characters.
provider_id string
Unique identifier for the shipping provider (e.g., usps, fedex, dhl). Can also be self for your own private rates. See Providers for details.
recipient object
Details about the contact receiving this shipment.
Show Details
designated_recipient object
Details about the alternate contact designated to receive this shipment.
Show Details
sender object
Details about the contact sending this shipment.
Show Details
tracker_id string
This is the ID of the first tracker in the shipment's trackers array.
tracking_number string
Provider-specific string used to track this shipment.
tracking_updates TrackingUpdate[]
A list of waypoints this shipment has passed through, ordered from oldest to newest. See Tracking Update Model for object attributes.
tracking_url string
A publicly accessible URL where anyone can view the tracking information for this shipment. The URL is in the format https://{domain}/external/shipments/{tracking_number}
.
type string
Indicates whether the shipment is an inbound
or outbound
shipment. Defaults to outbound
organization_id string
Unique identifier for the organization that owns this shipment.
fulfillment_id string
The ID of the fulfillment associated with this shipment.
manifest_id string
The ID of the manifest associated with this shipment.
order_number string
Order number associated with this shipment. If the shipment was created from a fulfillment, this will be the fulfillment's order number.
container_id string
The ID of the container that this shipment is grouped into.
invoice_id string
Unique identifier for the invoice of this shipment.
location object
Details about the location where this shipment is currently located. See Location Model for more details.
location_id string
ID of the location where this shipment is currently located. This can be either directly set on the shipment or derived from the latest tracking update.
layout_id string
ID of the layout where this shipment is currently located. This can be either derived from the latest tracking update or directly set on the shipment.
layout object
The layout object of the location of this update. See Layout Model for more details.
inference_id string
ID of the shipping label scan that created this shipment.
shipping_label_inference object
Details about the shipping label scan that created this shipment.
Show Details
tracker object
Details about the primary tracker for this shipment. This is the first tracker in the shipment's trackers array.
Show Details
label_url string
URL for the shipping label in the size and format specified in the dashboard.
refund_status string
The refund status indicates the current stage of a refund request for a shipment. It can be null as well if no refund request has been requested. See Statuses
_search object
A special property that will be included if searching through shipments. This is a flat object that contains various properties related to the search results. Each property may include <mark>
tags around characters that have matched the search query, allowing for easy highlighting in the user interface. The properties within this object provide relevant information about the search results, such as order number, barcode values, tracking number, sender name, sender email, recipient name, recipient email, provider name, relevance score and the original query used for the search.
Show Details
_searchV2 object
A special property that will be included if searching through shipments. This is the result of the new advanced search.
Show Details
options object
Options that control rate generation and shipment behavior.
Show Details
checksum string
A hash value computed from the current shipment configuration. This value gets updated whenever the shipment updates.
updated_by string
The ID of the user or key who last updated the shipment.
user_id string
Unique identifier for the user associated with this shipment. This field is derived from the user's profile and can be null if no user is associated with the shipment.
barcode_values string[]
Array of barcode values associated with this shipment. These values can be scanned from shipping labels or manually added.
tags string[]
An array of tags associated with this shipment. These tags are derived from the predefined shipment tags defined in the SHIPMENT_TAGS enum.
customs object
An object containing customs information for the shipment. This field will be null if there are no custom items associated with this shipment.