- Complete shipment tracking: Monitor fulfillments from label creation through delivery with detailed status updates.
- Embedded tracking info: Carrier details and tracking URLs included directly in the fulfillment response.
- Multi-address support: Both origin (warehouse) and destination (shipping) addresses included.
- Line item tracking: Know exactly which items are included in each shipment.
Attributes
| Field | Type | Description | Required | Expandable |
|---|---|---|---|---|
rootfi_id | integer | Unique identifier for this fulfillment | Yes | No |
rootfi_created_at | datetime | When this fulfillment was created in Commenda’s system | Yes | No |
rootfi_updated_at | datetime | When this fulfillment was last updated | Yes | No |
rootfi_company_id | integer | Company identifier this fulfillment belongs to | Yes | No |
platform_id | string | Platform-specific fulfillment identifier | Yes | No |
order_id | string | Reference to the parent Order | Yes | Yes |
name | string | Fulfillment reference name (e.g., “#1001.1” for first shipment of order 1001) | No | No |
status | enum | Overall fulfillment lifecycle status | Yes | No |
shipment_status | enum | Current shipping/delivery state | Yes | No |
estimated_delivery_date | datetime | Expected delivery date provided by carrier | No | No |
actual_delivery_date | datetime | Actual delivery date (null if not yet delivered) | No | No |
weight | decimal | Total package weight | No | No |
weight_unit | string | Unit of measurement for weight (e.g., “lb”, “kg”, “oz”) | No | No |
addresses | array | Origin (warehouse) and destination (shipping) addresses | Yes | Yes |
line_items | array | Items and quantities included in this shipment | Yes | Yes |
tracking_info | object | Carrier tracking details | No | No |
created_at | datetime | Original creation timestamp from platform | Yes | No |
updated_at | datetime | Last update timestamp from platform | Yes | No |
Status Enum Values
| Value | Description |
|---|---|
pending | Fulfillment has been created but not yet shipped |
in_transit | Package is currently being shipped |
delivered | Package has been successfully delivered |
cancelled | Fulfillment has been cancelled |
failed | Delivery attempt failed |
returned | Package has been returned to sender |
unknown | Status cannot be determined |
Shipment Status Enum Values
| Value | Description |
|---|---|
label_printed | Shipping label has been generated |
picked_up | Carrier has picked up the package |
in_transit | Package is en route to destination |
out_for_delivery | Package is on the delivery vehicle |
delivered | Package has been delivered |
exception | Delivery exception occurred (e.g., address issue) |
returned | Package is being returned |
unknown | Shipment status cannot be determined |
Expandable Attributes
expand=order- Includes full Order objectexpand=addresses- Includes complete Address objectsexpand=line_items- Includes detailed FulfillmentLineItem objects
TrackingInfo Object
The embedded tracking information:| Field | Type | Description | Required |
|---|---|---|---|
number | string | Tracking number assigned by the carrier | Yes |
company | string | Name of the shipping carrier (e.g., “UPS”, “FedEx”, “USPS”) | Yes |
url | string | Direct URL to track the shipment on the carrier’s website | No |
status | string | Current tracking status from the carrier | No |
FulfillmentLineItem Object
Each line item in a fulfillment:| Field | Type | Description | Required |
|---|---|---|---|
rootfi_id | integer | Unique identifier for this fulfillment line item | Yes |
line_item_id | string | Reference to the original order line item | Yes |
quantity | integer | Quantity of this item included in the shipment | Yes |
Filtering Fulfillments
Delivered Fulfillment Example
Delivered Fulfillment