curl --request POST \
--url https://api.rootfi.dev/v4/ecommerce/fulfillments \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 1089,
"data": [
{
"order_id": "ord_123456",
"status": "pending",
"tracking_info": {
"tracking_number": "1234567890",
"carrier_name": "USPS"
}
}
]
}
'{
"data": [
{
"rootfi_id": 157,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "ful_123456",
"order_id": "ord_123456",
"status": "pending"
}
],
"sync_id": "sync_123456"
}Create a new fulfillment (shipment) for an order.
curl --request POST \
--url https://api.rootfi.dev/v4/ecommerce/fulfillments \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 1089,
"data": [
{
"order_id": "ord_123456",
"status": "pending",
"tracking_info": {
"tracking_number": "1234567890",
"carrier_name": "USPS"
}
}
]
}
'{
"data": [
{
"rootfi_id": 157,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "ful_123456",
"order_id": "ord_123456",
"status": "pending"
}
],
"sync_id": "sync_123456"
}| Field | Type | Required | Description |
|---|---|---|---|
| company_id | integer | Yes | The rootfi_company_id to associate this fulfillment with |
| data | array | Yes | Array of fulfillment objects to create |
| data[].order_id | string | Yes | Reference to the parent Order |
| data[].name | string | No | Fulfillment reference name (e.g., “#1001.1” for first shipment of order 1001) |
| data[].status | string | No | Fulfillment status (pending, in_transit, delivered, canceled, failed, returned). Defaults to pending |
| data[].shipment_status | string | No | Current shipping/delivery state |
| data[].estimated_delivery_date | string | No | Expected delivery date (ISO 8601) |
| data[].weight | number | No | Total package weight |
| data[].weight_unit | string | No | Unit of measurement for weight (e.g., “lb”, “kg”, “oz”) |
| data[].line_items | array | Yes | Items and quantities included in this shipment |
| data[].tracking_info | object | No | Carrier tracking details including tracking number and carrier name |
The body is of type any.
Fulfillment created successfully