Postman collection
Direct-Fulfillment Read

pixiDFGetOrderlines

Returns the open direct fulfillment order lines (status FUT) of one order for a direct fulfillment supplier, authenticated by supplier number and secret.

Used by direct fulfillment (drop shipping) suppliers to fetch the order lines of one order they have to ship.

Authentication

  • Empty strings in SupplNr and Secret are treated as NULL.
  • The call looks for a supplier in Suppliers whose SupplNr equals SupplNr and whose CustNr equals Secret. The supplier must not be disabled and must have CanDoDirectFulfillment = 1.
  • If no such supplier exists and the setting DFAPIAllowFullAccessWithoutSecret is 0 (or missing), a single row with Error = '403' is returned and nothing else.
  • If the setting is not 0, the check is skipped and the call works without a valid secret.

Order lines returned

Only lines that meet all of these conditions:

  • The line belongs to the order OrderNR.
  • The line has status FUT, and its latest OrderHistory entry with status FUT is used (OrderHistKey, StatusChangeDate, ClientNotified).
  • The status FUT is marked as a fulfilment status in OrderStates (FulfilmentStatus = 'Y').
  • Unless AllOrderlines = 1, only lines that have not yet been confirmed (ClientNotified = 'N') are returned.
  • If SupplNr is given, only lines with SupplInfo = SupplNr are returned, and that supplier must be able to do direct fulfillment. If SupplNr is empty (only possible when the secret check is disabled), lines of all suppliers are returned.
  • The shipping address must not be locked (ASlocked) and the customer must not be locked (SLocked).
  • Order header, invoice address, customer and currency must exist (inner joins).

Item data

EANUPC, ItemNrSuppl and ItemNrInt are taken from the supplier-specific AddItems record (supplier = SupplInfo of the line, the most recently updated one); if no such value exists, the values from Items are used.

Duplicate rows are removed (DISTINCT). No sort order is defined.

Notes

  • The error is returned as a normal result row (Error, ErrorMsg), not as a SQL error. Check for the column Error in the response.
  • Secret is compared with the field CustNr of the supplier (the customer number under which the shop is known at the supplier).
  • If DFAPIAllowFullAccessWithoutSecret is enabled and SupplNr is left empty, the order lines of all suppliers of the order are returned. Keep this setting at 0 in production.
  • The call is read-only; it does not mark lines as confirmed. OrderlineConfirmed reflects ClientNotified of the latest FUT history entry.
  • All tables are read with NOLOCK, so uncommitted data can be returned.

Tables used

Suppliers · Read Settings · Read Orderlines · Read OrderHistory · Read Addresses · Read Items · Read AddItems · Read OrderHeader · Read OrderStates · Read Customers · Read Currency · Read
SQL object:
dbo.pipiDFGetOrderlines
Updated at 2026-10-30