Order Objects: Fields and Relationships

The Order objects in Pipe17 represent a sales order containing line items and customer details about a purchase. Orders are one of the core entities in the Pipe17 system and play a central role in the order fulfillment process. It maintains relationships with other key entities in the system and tracks the order's progress through its entire lifecycle from creation to fulfillment.


Identification Fields

  • orderId – Unique identifier generated by Pipe17 (read-only).
  • extOrderId – Order ID from the source system.
  • extOrderApiId – Order API ID from the source system. When present, it must be unique per organization and integration.
  • extOrderUrl – Link to the order in the source system.

Status Fields

Order Status (Lifecycle)

draft, new, onHold, toBeValidated, reviewRequired, readyForFulfillment, sentToFulfillment, partialFulfillment, fulfilled, inTransit, partialReceived, received, canceled, returned, refunded, archived, closed

Routing Status

disabled, pending, ready, acknowledged, failed, excluded, pendingInventory

When the order status becomes readyForFulfillment and routingStatus is pending, routingStatus changes to ready. It also goes back to ready when important order details change after routing was acknowledged or failed.

Parallel Workflow Statuses

  • paymentStatus – Payment status as reported by the sales channel.
  • fulfillmentStatus – Fulfillment status as reported by the sales channel.
  • paymentSummary – Payment state calculated by Pipe17 from the order's payments (authorized, captured, refunded, and outstanding amounts, plus a status).
  • shipByStatus – Ship-by-date tracking for orders with a shipByDate: onTrack, atRisk, critical, breached, complied.

Disposition

The order-level disposition is an array of values (separate from line-item dispositions):

  • partiallyRouted, routed
  • partiallySent, sent
  • partiallyFulfilled, fulfilled
  • partiallyCanceled, canceled
  • partiallyFailed, failed
  • partiallyRejected, rejected
  • partiallyUnrouted, unrouted
  • partiallyUnsent, unsent
  • partiallyUnfulfilled, unfulfilled

Timestamps

  • createdAt, updatedAt – Pipe17 timestamps.
  • extOrderCreatedAt, extOrderUpdatedAt – Source system timestamps.
  • lastRoutedAt – When the Order Routing Engine last routed the order.
  • holdOptions.holdUntil – When a hold ends. The top-level holdUntil is deprecated and kept in sync with it.
  • fulfilledAt – Set when the order is fulfilled.

Customer Information

  • customer object:
    • type: individual or company
    • customerId (internal), extCustomerId, extCompanyCustomerId, extLocationCustomerId
    • firstName, lastName, company
  • shippingAddress – Recipient address, including email and phone (see Address Structure).
  • billingAddress – Purchaser address (see Address Structure).

Address Structure

Used by order shipping and billing addresses and by shipping destinations.

  • firstName, lastName, company
  • address1, address2, city, stateOrProvince, zipCodeOrPostalCode, country (ISO-2)
  • email, phone
  • addressType: residential, commercial, institutional, military, pobox, other

Order Details

  • currency
  • orderSource – The originating platform.
  • orderSourceType: online, pos, wholesale, edi, other, b2b, aggregation, bopis, curbside, ship_from_store
  • subTotalPrice, orderTax, orderDiscount, shippingPrice, totalPrice
  • customerPONumber – Customer purchase order number.
  • giftNote, orderNote, shippingNote
  • incoterms – International Commercial Terms.
  • privacyPolicy – Array of privacy policies to apply (for example, ["amazon"]).
  • paymentTerms – term (net, fixed, fulfillment, receipt, unknown, other), dueInDays, dueDate, depositPercentage, note.
  • originalOrderId, replacementReason – See Order Replacement.

Line Items

Array of items on the order.

  • uniqueId, sku, name
  • quantity – Current quantity
  • ordered – Original quantity as reported by the source
  • fulfillable – Quantity the source marks as fulfillable
  • fulfilled, canceled, returned, refunded – Result quantities as reported by the source
  • reported – Reported quantity
  • itemPrice, itemDiscount, itemTax
  • requiresShipping, requiresShippingSource
  • quantityUnit (for example, each, can, bottle)
  • locationId – Preferred origin
  • preferredLocationGroupId – Array of preferred location-group IDs
  • trackedAtSourceChannel – Boolean
  • upc – Item UPC
  • shippingOptions – Array of packaging and handling flags: SIOC, polyBagging, bubbleWrapping, taping, singleLocationShipping, allOrNoneShipping

Line-item dispositions

Dispositions are tracked as quantities by type:

dispositions: [
  {
    uniqueId: "line-item-id",
    values: [
      { type: "routed",     quantity: 5 },
      { type: "fulfilled",  quantity: 3 },
      { type: "unrouted",   quantity: 2 }
    ]
  }
]

Types: routed, sent, failed, rejected, fulfilled, canceled, unrouted, unsent, unfulfilled


Shipping Information

  • shippingCode – Highest priority for service selection; overrides carrier and class.
  • shippingCarrier + shippingClass – Used together for service selection.
  • requireShippingLabels – Whether shipping labels need to be fetched.
  • expectedDeliveryDate, shipAfterDate, shipByDate, shipCancelByDate – Key dates. shipByDate and shipCancelByDate don't block or cancel the order when they pass.
  • shippingDestinations – Used for multi-destination orders (see Multi-Destination Orders).

Financial Information

Payments

  • payments[].method: cash, giftCard, creditCard, storeCredit, paypal, other, custom
  • payments[].customMethod – Name when method is custom
  • payments[].kind – Card network where applicable: visa, mastercard, amex, discover
  • amount, currency, status (succeeded or failed), processedAt, reference

Discounts

  • discounts[].type (coupon, manual, other), value, label, reference
  • discounts[].lineItemId, discounts[].createdAt – Line-level targeting and audit

Additional Charges

  • additionalCharges[].type (handling, wrapping, shipping, other), value, label, reference
  • additionalCharges[].lineItemId, additionalCharges[].createdAt

Refunds

  • refunds[].type: lineItem, lineItemTax, lineItemDiscount, shipping, shippingTax, shippingDiscount, other, otherTax, otherDiscount
  • refunds[].value, processedAt, reference, label
  • refunds[].lineItemId, lineItemQuantity, lineItemRestock

Automation and Routing

  • autoEngUpdateStatus, autoEngUpdateStatusUpdatedAt – Automation Engine processing state.
  • holdOptions – Hold details: holdUntil, holdNextStatus (reviewRequired, readyForFulfillment, or canceled), and holdType (TIMED or CONDITIONAL).
  • lastRerunRoutingTrigger: manual or auto – How routing was last rerun.
  • preferredLocationGroupId (order level) – Steers routing to eligible location groups.

Privacy and Compliance

  • privacyPolicy – Array of policy sets to enforce (for example, marketplace-specific privacy rules such as Amazon's).

Order Replacement

  • originalOrderId – Pipe17 orderId of the original order this order replaces. Set it on the replacement order. One original can have several replacements.
  • replacementReason – damaged, lostInTransit, wrongItem, other

Multi-Destination Orders

  • shippingDestinations[] – Each destination has extDestinationId, shippingAddress, lineItems (uniqueId, sku, quantity), and customFields.
  • isMultiDestination – Read-only. Pipe17 sets it to true when the order has shipping destinations.
  • isMultiAddress – Optional flag you can set to mark a multi-address order (default false).

Make sure routing rules consider destination-level inventory and carrier availability.


Audit and History

  • timeline[] – Change log entries: who, when, what changed, previous and new values.
  • lineItemsEdits[] – Pending line-item edits. An entry is cleared once the order's line items match it.
  • exceptions[], exceptionCategories[] – Exception types and categories on the order.
  • internal – Reserved for system use.

Key Relationships

  • Organization – Every order belongs to an organization through orgKey.
  • Integration – Set automatically to the integration bound to the API key used to create the order.
  • Products – Each line item's sku links to a catalog product.
  • Locations – locationId indicates the preferred origin and constrains routing.
  • Shipments (Shipping Requests) – Created by routing; linked by orderId.
  • Fulfillments – Created for shipments when items ship.
  • Exceptions – exceptions holds exception type strings (for example, eOutOfStock, eInvalidAddress); exceptionCategories holds category IDs.

Field Requirements

Purpose Required fields Conditional requirements Read-only / computed
Create standard order extOrderId. Each line item needs uniqueId, sku, quantity, requiresShipping. If specifying service: shippingCode, or shippingCarrier + shippingClass orderId, integration, dispositions, disposition, isMultiDestination, timeline, autoEngUpdateStatusUpdatedAt, fulfilledAt, shipByStatus, paymentSummary, exceptions, exceptionCategories
Create multi-destination order Above + shippingDestinations[] — Same as above
Replacement order Above + originalOrderId, replacementReason — Same as above

Validation rules

  • Up to 10 orders per batch create request.
  • extOrderId + orderSource must be unique per organization.
  • If provided, extOrderApiId must be unique per organization and integration.
  • lineItems.uniqueId values must be unique within an order.

Common Use Cases

  • Standard order creation – Single destination, standard routing.
  • Multi-destination – Use shippingDestinations with destination-level line items.
  • Replacement order – Reference the original with originalOrderId and set replacementReason.
  • Hold and release – Set holdOptions with holdUntil, holdNextStatus, and holdType. When the hold ends, the order moves to holdNextStatus.
  • Pre-order / future inventory – Combine the pendingInventory routing status with future inventory features.

Order Lifecycle Flow (Reference)

  1. The order is created (often as new).
  2. Automation can place the order onHold until holdOptions.holdUntil.
  3. When ready, the status becomes readyForFulfillment and routingStatus changes to ready.
  4. The Order Routing Engine creates shipments (shipping requests).
  5. Logistics connectors sync shipments to fulfillment providers. When a shipment is sent to fulfillment, the order becomes sentToFulfillment.
  6. Providers send fulfillments to Pipe17.
  7. As fulfillments arrive, the order becomes partialFulfillment or fulfilled; fulfilledAt is set when it's fully fulfilled.

Order Routing Process (Reference)

Routing evaluates orders with routingStatus = ready, applies rules, creates shipments, and sets routingStatus = acknowledged on success. Factors include inventory, proximity, custom rules, and future inventory.


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.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.

Have more questions?
Submit a request
Share it, if you like it.