Deliveries
Models
Delivery Model
The delivery represents a single tracking number with one or more parcels that needs to be delivered. Delivery will always be inbound
object "delivery"
The description of the model.
amount integer
The amount collected for this delivery from the customer.
billed_amount integer
The amount billed to you for this delivery. If not specified, defaults to the amount field.
coordinates [Number, Number]
The latitude and longitude of the current location.
created_at DateTime
Time in epoch seconds when this delivery was created.
updated_at DateTime
Time in epoch seconds when this delivery was last updated.
estimated_delivery_at DateTime
The estimated delivery time for this delivery in epoch seconds.
pickup_at DateTime
The time in epoch seconds when this delivery 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 delivery, prefixed with ship_
status string
Current status for this delivery. See Statuses.
metadata object
Key-value pairs of custom data that you can set for this delivery.
paid boolean
Indicates if this delivery was paid for successfully.
parcels Parcel[]
A list of parcels associated with this delivery. Empty array if no parcels are present.
payment_reference string
A reference for the payment of this delivery. This will be visible on the invoice.
rma_number string
Unique identifier for return deliveries, used for processing returns.
invoice_number string
Unique identifier for the delivery's invoice.
reference_number string
User-defined identifier for the delivery.
purchase_order string
Purchase order number for the delivery, either user-defined or scanned from the shipping label.
notes string
Additional comments or information about the delivery. 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 delivery.
Show Details
designated_recipient object
Details about the alternate contact designated to receive this delivery.
Show Details
sender object
Details about the contact sending this delivery.
Show Details
tracker_id string
This is the ID of the first tracker in the delivery's trackers array.
tracking_number string
Provider-specific string used to track this delivery.
tracking_updates TrackingUpdate[]
A list of waypoints this delivery 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 delivery. The URL is in the format https://{domain}/external/shipments/{tracking_number}
.
type string
It will always be inbound
in case of delivery.
organization_id string
Unique identifier for the organization that owns this delivery.
fulfillment_id string
The ID of the fulfillment associated with this delivery.
manifest_id string
The ID of the manifest associated with this delivery.
order_number string
Order number associated with this delivery. If the delivery was created from a fulfillment, this will be the fulfillment's order number.
container_id string
The ID of the container that this delivery is grouped into.
invoice_id string
Unique identifier for the invoice of this delivery.
location object
Details about the location where this delivery is currently located. See Location Model for more details.
location_id string
ID of the location where this delivery is currently located. This can be either directly set on the delivery or derived from the latest tracking update.
layout_id string
ID of the layout where this delivery is currently located. This can be either derived from the latest tracking update or directly set on the delivery.
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 delivery.
shipping_label_inference object
Details about the shipping label scan that created this delivery.
Show Details
tracker object
Details about the primary tracker for this delivery. This is the first tracker in the delivery's trackers array.
Show Details
label_url string
URL for the shipping label in the size and format specified in the dashboard.
_search object
A special property that will be included if searching through deliveries. 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 delivery behavior.
Show Details
checksum string
A hash value computed from the current delivery configuration. This value gets updated whenever the delivery updates.
updated_by string
The ID of the user or key who last updated the delivery.
user_id string
Unique identifier for the user associated with this delivery. This field is derived from the user's profile and can be null if no user is associated with the delivery.
barcode_values string[]
Array of barcode values associated with this delivery. These values can be scanned from shipping labels or manually added.
tags string[]
An array of tags associated with this delivery. These tags are derived from the predefined delivery tags defined in the SHIPMENT_TAGS enum.
customs object
An object containing customs information for the delivery. This field will be null if there are no custom items associated with this delivery.