Shipping requests and fulfillments are the two records Pipe17 uses to get an order shipped. A shipping request asks a fulfillment provider (a 3PL, WMS or store) to ship some or all of an order's items. A fulfillment is the provider's answer: what shipped, with tracking, or what it couldn't ship. This article describes the fields, statuses and API operations of both records and how they work together.
Shipping Request Data Model
A shipping request (called a shipment in the API) is a request to a fulfillment provider to ship items to a customer. The Order Routing Engine creates shipping requests when it routes an order. You can also create them from an order in the app with New shipping request, or through the API.
Shipping Request Key Fields
Required Fields for Creation
Only two fields are required to create a shipping request:
-
extOrderId: customer-friendly ID of the order. -
shippingAddress: destination address object (see Shipping Information). The API doesn't require any particular address sub-field, but your fulfillment provider usually needs a complete address.
If you send lineItems, each line needs uniqueId, sku and quantity.
Identification Fields
-
shipmentId: Pipe17 ID of the shipping request (system-generated). -
extShipmentId: customer-friendly reference on the originating system. Generated if you don't provide one. -
extReferenceId: reference to this shipping request on the fulfillment provider. -
extReferenceUrl: direct link to this shipping request on the fulfillment provider. -
extOrderId: customer-friendly order ID (required). -
extOrderApiId: order ID in the external system's API. -
orderId: Pipe17 ID of the order this shipping request belongs to. -
version: sequence number of this shipping request among the order's shipping requests. It goes up by one for each new shipping request on the same order.
Status Fields
-
status: current status. See Shipping Request Status Values for all values. -
extStatus: status of the shipping request on the external system. -
cancellationStatus: cancellation request status:pending,acceptedorrejected. -
canceledAt,canceledBy,canceledByType: when the shipping request was canceled, by whom, and the requester type (user,integrationorapikey). -
sentToFulfillmentAt: when the request was sent to the fulfillment provider. -
fulfilledAt: when the shipping request was fulfilled (system-generated). -
holdOptions: hold settings while the shipping request isonHold. It holdsholdUntil(when the hold releases),holdNextStatus(reviewRequiredorreadyForFulfillment, the status it moves to on release) andholdType(alwaysTIMEDfor shipping requests). SetholdOptionstonullto clear a hold. -
holdUntil: deprecated. UseholdOptions.holdUntilinstead.
Store Fulfillment Pick Status
These fields are used for store fulfillment: in-store pickup (BOPIS), curbside pickup and ship-from-store orders. They don't track picking at a 3PL or WMS.
-
pickStatus: where the order is in the store's pick workflow. See Pick Status Values. -
pickedAt,packedAt,shippedAt: set whenpickStatusmoves topicked,packedandshipped. -
waveStatus: pickup notification status for store pickup waves (readyToPickup,notified). -
storeId: store that fulfills the request. Set by the Order Routing Engine and read-only for API clients. -
pickupPerson,alternatePickupPersons,pickupVerification: who may collect a pickup order and what verification is needed (ID, signature, photo, pickup code).
Automation and Routing
-
autoEngUpdateStatus: set internally. It shows whether the automation engine may still update this record:initialPending,pending,updated,none,disabledorfailed. -
autoEngUpdateStatusUpdatedAt: whenautoEngUpdateStatuslast changed. -
reused: the shipping request'sextShipmentIdis being reused by another one. -
skipLocation: skip this shipping request's location when routing is rerun. -
skipLocationUntil: optional end time forskipLocation. -
excludeFromReuse: this shipping request's ID can't be reused. -
priority:high,regularorlow.
Shipping Information
-
shippingAddress: destination address.billingAddressholds the purchaser's address in the same format.-
firstName,lastName,company -
address1,address2 -
city,stateOrProvince(2-letter state code in the US),zipCodeOrPostalCode -
country(ISO 2-letter code) -
phone,email -
addressType(optional):residential,commercial,institutional,military,poboxorother.
-
Shipping Method Priority
The shipping method is taken from these fields, in this order:
-
shippingCode: if set, it takes priority over carrier and class. -
shippingCarrier+shippingClass: carrier and service level, used together.
Other shipping fields:
-
shippingPrice: shipping price. -
shippingNote: shipping note (for curbside pickup, the customer's arrival details). -
shippingLabels: references to this shipping request's labels (label IDs or label download URLs). -
shippingMethodMapping: turn shipping method mapping on or off for this request. Defaults to the organization setting. -
deliveryProfiles: delivery profiles that apply to this request.
Timing Fields
-
expectedDeliveryDate: expected delivery date (takes first priority). -
expectedShipDate: expected ship date. -
shipAfterDate: don't ship before this date. -
shipByDate: ship by this date. -
shipCancelByDate: cancel if not shipped by this date. -
orderCreateTime: when the linked order was created.
Line Items
lineItems is the array of items in the shipping request:
-
uniqueId: line ID within the shipping request (required). -
sku: item SKU (required). -
quantity: quantity to ship (required). -
shippedQuantity: quantity shipped so far. -
rejectedQuantity: quantity the fulfillment provider rejected (read-only). -
name: item name. -
itemPrice,itemDiscount: item price and discount. -
quantityUnit:each,can,bottle,basket,kgorlitre. -
upc: item UPC. -
bundleSKU,bundleQuantity,bundleUPC: the parent bundle, for bundle components. -
trackedAtSourceChannel: tracking is issued by the source channel. -
customFields: name-value pairs.
Order Information
-
orderType: type of order behind this shipping request:sales,transferorpurchase. -
orderSource: the actual order source, for example Walmart or Etsy. -
orderSourceType:online,pos,wholesale,edi,other,b2b,aggregation,bopis,curbsideorship_from_store. -
currency: currency code, copied from the order. -
customerPONumber: customer purchase order number, copied from the order.
Fulfillment Configuration
-
fulfillmentIntegrationId: integration that will fulfill this shipping request. -
locationId: location that fulfills it. -
overfulfillPolicy: how Pipe17 handles shipping requests whose quantities exceed the order. See Overfulfill Policy Values.
Miscellaneous
-
giftNote: gift note. -
incoterms: International Commercial Terms. -
privacyPolicy: privacy policy entries. -
tags: tags on the shipping request. -
customFields: name-value pairs. -
sourceDoc: source document from the vendor. -
timeline: history of changes to the shipping request. -
exceptions: types of exceptions on this shipping request. -
exceptionCategories: categories of those exceptions.
System Fields
-
createdAt,updatedAt: when the record was created and last updated in Pipe17. -
orgKey: organization the record belongs to. -
integration: integration that created the shipping request. -
orderIntegration: integration that created the order.
Shipping Request Uniqueness
Within an organization, these must be unique:
-
extShipmentId(when set) -
extReferenceId+fulfillmentIntegrationId(whenextReferenceIdis set)
Fulfillment Data Model
A fulfillment records what a fulfillment provider did with a shipping request. Usually that's the items it shipped, with tracking. It can also be the quantities it couldn't ship. Fulfillments are created by the fulfillment integration, through the API, or in the app with New Fulfillment on a shipping request.
Fulfillment Key Fields
Required Fields for Creation
-
shipmentId: Pipe17 ID of the shipping request. -
lineItems: items fulfilled. Each line needsskuandquantity. -
trackingNumber: array of tracking numbers. Required foracceptedfulfillments, not forrejectedorvoided.
Identification Fields
-
fulfillmentId: Pipe17 ID of the fulfillment (system-generated). -
shipmentId: shipping request this fulfillment is for. -
extFulfillmentId: reference to the fulfillment on the external system. -
extOrderId: customer-friendly order ID. -
orderId: Pipe17 ID of the order.
Status and Type
-
fulfillmentType:accepted(default),rejectedorvoided. See Fulfillment Type Values. -
status:submittedordeleted. -
autoEngUpdateStatus: set internally; same values as on shipping requests.
Fulfillment Grouping
Use these fields when one shipment goes out as several fulfillments (for example, several packages) that belong together:
-
groupId: shared ID for the group. -
groupLength: number of fulfillments in the group. -
groupItem: position of this fulfillment in the group. -
groupComplete: the group is complete.
Shipping Information
-
actualShipDate: actual ship date. -
expectedArrivalDate: expected arrival date. -
trackingNumber: tracking numbers. -
trackingURLs: tracking URLs. -
shippingCarrier,shippingClass: carrier and service level used. -
shippingCharge: shipping charge. -
billOfLading,ucc128,ssccCode,sacCode: freight and labeling references. -
pickupDetails: who collected a store pickup order, when, and how they were verified.
Physical Attributes
-
weightandweightUnit(lb,oz,kg,g). -
length,width,heightanddimensionsUnit(cm,in,ft).
Line Items
lineItems is the array of items in the fulfillment:
-
sku: item SKU (required). -
quantity: quantity (required). -
uniqueId: matches the shipping request line. -
quantityUnit: unit of measure. -
upc: item UPC. -
lotNumber,expirationDate: lot and expiration date from the fulfillment provider. -
serialNumbers: serial numbers from the fulfillment provider. Each entry is one serial or an inclusive range writtenFROM..TO(for exampleSN-00100..SN-00199). -
bundleSKU,bundleQuantity,bundleUPC: matching bundle, when available. -
trackedAtSourceChannel: tracking is issued by the source channel. -
customFields: name-value pairs.
Acknowledgements
-
acknowledgement: list of integrations that acknowledged the fulfillment, each withintegrationandacknowledgedAt. See Acknowledgement Workflow.
Miscellaneous
-
tags: tags on the fulfillment. -
customFields: name-value pairs. -
sourceDoc: source document from the vendor. -
timeline: history of changes to the fulfillment. -
exceptions,exceptionCategories: exception types and categories on this fulfillment. -
trackedAtSourceChannel: tracking numbers were issued by the source channel, so fulfillment reporting isn't needed. -
priority: copied from the shipping request or order.
System Fields
-
createdAt,updatedAt,orgKey. -
integration: integration that created the fulfillment. -
orderIntegration: integration that created the order. -
shipmentIntegration: integration that created the shipping request. -
orderType:sales,transferorpurchase. -
orderSource: order platform, for example Walmart or Etsy. -
locationId: location of the fulfillment.
Relationship Between Shipping Requests and Fulfillments
Creation Flow
- Order routing: the Order Routing Engine routes the order and creates one or more shipping requests.
-
Sending: the shipping request is sent to the integration in
fulfillmentIntegrationId, and its status becomes Sent To Fulfillment. - Fulfillment: the fulfillment provider reports back, and a fulfillment is created in Pipe17.
- Status update: the shipping request becomes Fulfilled or Partial Fulfillment, based on shipped and rejected quantities.
- Acknowledgement (optional): the order's integration acknowledges that it received the fulfillment.
Key Relationships
- Order to shipping requests: one order can have several shipping requests, for example when it ships from more than one location.
- Shipping request to fulfillments: a shipping request usually has one fulfillment. It can have several, for example when items ship in separate packages or on different days.
-
Direct reference: a fulfillment points to its shipping request through
shipmentId. -
Order reference: both records carry the order's
orderId. -
Location: both carry
locationId. -
Products: line items on both reference products by
sku. -
Integrations:
-
orderIntegration: integration that created the order (for example, your store). -
integrationon a shipping request: integration that created it. -
fulfillmentIntegrationId: integration that will fulfill it (for example, your 3PL). -
integrationon a fulfillment: integration that created the fulfillment (usually the 3PL or WMS).
-
Status Transitions
Shipping Request Status Flow
- Created: a new shipping request starts as New, Pending Inventory, Pending Shipping Label, Review Required or Ready For Fulfillment.
-
Held: a shipping request on hold is On Hold until
holdOptions.holdUntil. It then moves to Review Required or Ready For Fulfillment. - Sent: once sent to the fulfillment provider, it becomes Sent To Fulfillment.
- Fulfilled: when every line's shipped plus rejected quantity covers its quantity, it becomes Fulfilled. If some items shipped and others are still open, it becomes Partial Fulfillment.
- Canceled: canceling sets Canceled, or Canceled - Restock if items are returned to available inventory.
- Failed: if sending fails, the status becomes Failed.
Practical Applications
Shipping Request Management
Each shipping request appears as a card on its order. The card's menu offers actions that depend on the status:
- New Fulfillment: record a fulfillment manually.
- Mark Review Required: for On Hold, Pending Inventory, Pending Shipping Label, Ready For Fulfillment or Failed requests.
- Approve: moves a Review Required request to Ready For Fulfillment.
- Resend Shipping Request: for Failed requests.
- Push Shipping Request: sends the request again (not offered for Failed requests).
- Cancel and Cancel & Recreate.
- Edit Shipping Request and View JSON.
Fulfillment Tracking
- Tracking information: fulfillments carry tracking numbers and URLs.
- Shipping confirmation: an accepted fulfillment confirms that items shipped.
-
Delivery estimate:
expectedArrivalDatehelps set customer expectations. - Rejected quantities: a rejected fulfillment tells you what the provider couldn't ship, so you can decide what to do next (see Rejected Fulfillment Workflow).
Inventory Management
- Commitment: when a shipping request is created, inventory is committed for its items.
- Restocking: when you cancel a shipping request with Restock Items checked, its items go back to available inventory.
- Fulfillment: when a fulfillment is created, the shipped quantities are deducted from inventory.
Acknowledgement Workflow
Acknowledgements let a downstream system, usually the order's integration such as an ERP, confirm that it picked up a fulfillment.
- Find fulfillments the order's integration hasn't acknowledged yet:
GET /fulfillments?orderIntegrationAcknowledged=false. You can also filter withacknowledgedBy=-<integrationId>. - Process them in your system.
- Acknowledge them:
POST /fulfillments/{FulfillmentId}/acknowledge. You can pass one ID or several comma-separated IDs. If your API key isn't tied to an integration, send the integration in the body:
{ "integration": "<integrationId>" }Pipe17 adds an entry to the fulfillment's acknowledgement list with the integration and acknowledgedAt. Fulfillments that stay unacknowledged can point to an integration problem.
Fulfillment Grouping
Use groupId to tie related fulfillments together, for example an order of 20 items shipped in three packages:
- Fulfillment 1:
groupId: "order-123-group",groupItem: 1,groupLength: 3, 8 items - Fulfillment 2:
groupId: "order-123-group",groupItem: 2,groupLength: 3, 7 items - Fulfillment 3:
groupId: "order-123-group",groupItem: 3,groupLength: 3, 5 items
List a group with GET /fulfillments?groupId=order-123-group.
Exception Handling
-
Failed shipping requests: when a shipping request can't be sent, an exception is raised on it (for example
eGeneric, shown as a failure to send the shipping request). -
Fulfillment mismatches: an accepted fulfillment that doesn't match its shipping request raises
eMismatch. -
Rejected quantities: a rejected fulfillment raises
eUnfulfillable. -
Overfulfillment: with the
strictoverfulfill policy, a shipping request whose quantities exceed the order raisesePotentialOverfulfill. - Resolution: fix the cause, then resend, recreate or cancel the shipping request as needed.
Key Workflows
Order Routing to Fulfillment
- Pipe17 receives the order.
- The Order Routing Engine creates one or more shipping requests based on your routing rules.
- Each shipping request is sent to its fulfillment provider.
- The provider ships the items and reports a fulfillment.
- The fulfillment's tracking information flows back to the order's channel.
Partial Fulfillment Workflow
- A shipping request for 10 items is sent to the warehouse (Sent To Fulfillment).
- The warehouse ships 6 items first. Fulfillment 1 has 6 items and its tracking number. The shipping request becomes Partial Fulfillment.
- The warehouse ships the other 4 items later. Fulfillment 2 has 4 items. The shipping request becomes Fulfilled.
Rejected Fulfillment Workflow
When a warehouse can't ship some or all of a shipping request:
- The provider (or you) creates a fulfillment with
fulfillmentType: "rejected"and the rejected lines. No tracking number is needed. - Pipe17 adds the quantities to
rejectedQuantityon the shipping request lines and raises aneUnfulfillableexception. - If every line is fully rejected, the shipping request status isn't changed. If the rest of the items already shipped, it becomes Fulfilled.
- Decide what to do next: reroute the order, recreate the shipping request elsewhere, or cancel.
{
"shipmentId": "ship-123",
"fulfillmentType": "rejected",
"lineItems": [ { "uniqueId": "1", "sku": "SKU-1", "quantity": 2 } ],
"customFields": [ { "name": "rejectionReason", "value": "Out of stock" } ]
}To reject a whole shipping request in one call, use POST /shipping_requests/{ShipmentId}/reject. It creates the rejected fulfillment for all open quantities and sets the shipping request's status to canceled (default), canceledRestock, failed or reviewRequired, as given in the body. In the app, a fulfillment's menu has Mark as rejected.
Voided Fulfillments
A fulfillment with fulfillmentType: "voided" marks an earlier fulfillment as void. Tracking numbers aren't required. Pipe17 records it but doesn't start a return, refund or restock from it, so handle those steps separately.
Cancellation and Restocking
- On the shipping request card, open the menu and select Cancel.
- Check Restock Items to return the items to available inventory.
- Click Proceed. The status becomes Canceled, or Canceled - Restock.
- If the request was already sent to the fulfillment provider, cancel it there too, so the items aren't shipped twice.
To cancel and immediately create a replacement, use Cancel & Recreate.
Manual Shipping Request Creation
- On the order, click New shipping request.
- Select the location, shipping method and items. The status defaults to Ready For Fulfillment.
- Save. The request is sent to the fulfillment integration of the selected location.
Troubleshooting Failed Shipping Requests
- A shipping request shows the status Failed.
It couldn't be sent to the fulfillment provider. Check the exception on the shipping request and the related events in Events > Logs. Fix the cause, then use Resend Shipping Request from the card's menu, or cancel it and create a new one. - A fulfillment didn't update the shipping request.
Check for aneMismatchexception on the fulfillment. The fulfillment's lines must match the shipping request's lines byuniqueIdorsku. - A shipping request is stuck in Review Required.
It needs a manual check, for example because its quantities exceed the order under thestrictoverfulfill policy. Review it, then click Approve to move it to Ready For Fulfillment.
API Operations Reference
Shipping Request REST API
| Operation | Method | Endpoint | Notes |
|---|---|---|---|
| Create | POST | /shipping_requests |
Up to 10 shipping requests per call |
| List | GET | /shipping_requests |
Filter with the query parameters below |
| Fetch | GET | /shipping_requests/{ShipmentId} |
One shipping request |
| Update | PUT | /shipping_requests/{ShipmentId} |
Update fields, including status |
| Delete | DELETE | /shipping_requests/{ShipmentId} |
One shipping request |
| Delete many | DELETE | /shipping_requests |
Delete by filter |
| Sync | POST | /shipping_requests/{ShipmentId}/sync |
Push the shipping request again |
| Reject | POST | /shipping_requests/{ShipmentId}/reject |
Creates a rejected fulfillment and sets the status |
| Update pick status | PUT | /shipping_requests/{ShipmentId}/update-pick-status |
Store fulfillment only |
Common query parameters for listing:
-
shipmentId,extShipmentId,extReferenceId,orderId,extOrderId,orderType -
status,cancellationStatus,priority,tags -
locationId,fulfillmentIntegrationId,integration -
exceptionType,exceptionCategoryId -
since,until,updatedSince,updatedUntil,shipByDateSince,shipByDateUntil
Fulfillment REST API
| Operation | Method | Endpoint | Notes |
|---|---|---|---|
| Create | POST | /fulfillments |
Up to 10 fulfillments per call |
| List | GET | /fulfillments |
Filter with the query parameters below |
| Fetch | GET | /fulfillments/{FulfillmentId} |
One fulfillment |
| Delete | DELETE | /fulfillments/{FulfillmentId} |
One fulfillment |
| Delete many | DELETE | /fulfillments |
Delete by filter |
| Acknowledge | POST | /fulfillments/{FulfillmentId}/acknowledge |
One ID or comma-separated IDs |
| Sync | POST | /fulfillments/{FulfillmentId}/sync |
Push the fulfillment again |
Common query parameters for listing:
-
fulfillmentId,shipmentId,extShipmentId,extFulfillmentId,orderId,extOrderId -
fulfillmentType,groupId,tags,priority -
locationId,integration,orderIntegration,orderSource -
acknowledgedBy,orderIntegrationAcknowledged -
exceptionType,exceptionCategoryId -
since,until,updatedSince,updatedUntil
Quick Reference Tables
Shipping Request Status Values
| Status | Shown in the app as | Meaning |
|---|---|---|
new |
New | Just created, not yet processed |
pendingInventory |
Pending Inventory | Waiting for inventory |
pendingShippingLabel |
Pending Shipping Label | Waiting for shipping labels |
reviewRequired |
Review Required | Needs a manual check before it can be sent |
onHold |
On Hold | Held until holdOptions.holdUntil
|
readyForFulfillment |
Ready For Fulfillment | Ready to be sent to the fulfillment provider |
sentToFulfillment |
Sent To Fulfillment | Sent to the fulfillment provider |
partialFulfillment |
Partial Fulfillment | Some items shipped |
fulfilled |
Fulfilled | All items shipped or rejected |
canceled |
Canceled | Canceled |
canceledRestock |
Canceled - Restock | Canceled and items returned to available inventory |
failed |
Failed | Couldn't be sent |
Pick Status Values
Store fulfillment only (in-store pickup, curbside and ship-from-store).
| pickStatus | Meaning | Timestamp |
|---|---|---|
onHold |
Held; must be released before picking | - |
readyToPick |
Ready to pick | - |
picking |
Picking in progress | - |
picked |
Items picked | pickedAt |
packing |
Packing in progress (ship-from-store) | - |
packed |
Items packed (ship-from-store) | packedAt |
readyToLoad |
Ready for customer pickup or carrier handoff | - |
partiallyShipped |
Some items handed over | - |
shipped |
Picked up or handed to the carrier | shippedAt |
canceled |
Canceled | - |
Fulfillment Type Values
| Type | Tracking required? | Meaning | What Pipe17 does |
|---|---|---|---|
accepted |
Yes | Items shipped | Updates shipped quantities and the shipping request status; raises eMismatch if lines don't match |
rejected |
No | Provider couldn't ship these quantities | Updates rejected quantities; raises eUnfulfillable
|
voided |
No | Voids an earlier fulfillment | Records it; no other automatic action |
Shipping Method Priority
| Priority | Field(s) | Example |
|---|---|---|
| 1 (highest) | shippingCode |
"PRIORITY_OVERNIGHT" |
| 2 |
shippingCarrier + shippingClass
|
"UPS" + "Ground"
|
Required Fields by Entity
| Record | Required for creation | Recommended |
|---|---|---|
| Shipping request |
extOrderId, shippingAddress; each line item needs uniqueId, sku, quantity
|
orderId, locationId, fulfillmentIntegrationId, lineItems, shippingCode or shippingCarrier + shippingClass
|
| Fulfillment (accepted) |
shipmentId, trackingNumber, lineItems (each with sku, quantity) |
uniqueId on each line, shippingCarrier, actualShipDate, expectedArrivalDate
|
| Fulfillment (rejected or voided) |
shipmentId, lineItems, fulfillmentType
|
customFields with the reason |
Overfulfill Policy Values
The overfulfill policy compares the quantities on an order's shipping requests with the quantities on the order.
| Policy | When shipping requests exceed the order |
|---|---|
strict |
The shipping request is set to Review Required and an ePotentialOverfulfill exception is raised |
report |
Allowed; no exception is raised. This is the default when no policy is set. |
approved |
Allowed without any check |
Need Help?
If you need additional assistance:
- Use Ask Pippen, our AI agent, located at the top of the platform page.
- Submit a support request with as much relevant detail as possible. Learn how to submit a request.
We're here to help you succeed with your operations.
Comments
0 comments