Postman collection
Direct-Fulfillment Read

pixiDFGetOrders

Returns the order headers with shipping address data of orders that have open direct fulfillment order lines (status FUT) for a supplier.

Part of the Direct Fulfillment (DF) API: a supplier retrieves the orders it has to ship directly to the customer.

Authentication

  • The setting DFAPIAllowFullAccessWithoutSecret is read. If it is not 1, the supplier is identified by SupplNr together with Secret, which must match the supplier's CustNr (the customer number at the supplier).
  • The supplier must exist, must not be disabled and must have CanDoDirectFulfillment = 1.
  • If the supplier cannot be identified and the setting is not 1, a single error row with Error = 403 is returned.
  • If the setting is 1, the secret is not checked. A given SupplNr must still match an active DF supplier, otherwise an error row is returned. If SupplNr is left out (or 0), orders of all suppliers are returned.

Order selection

An order is returned if it has at least one order line that

  • has the status FUT,
  • is assigned to the supplier (SupplInfo), unless no supplier is set (full access), and
  • has ClientNotified = 'N' (not yet transferred), unless AllOrders = 1.

Orders whose shipping address or customer is locked are excluded. Only orders with an existing customer, billing address, shipping address, country and currency are returned (inner joins).

The result contains one row per order, sorted by OrderNr. AddrShopID and APayment come from the billing address, all other address fields from the shipping address.

Notes

  • All reads use NOLOCK, so uncommitted data may be returned.
  • The call does not mark the orders as transferred; ClientNotified is not changed here. Without AllOrders = 1 the same orders are returned again until another process updates the order lines.
  • On an authentication error the procedure returns only the error row (return code 1) and no order data.
  • If DFAPIAllowFullAccessWithoutSecret = 1 and no SupplNr is given, the orders of all suppliers are exposed; this setting should be used with care.
  • The order history is joined in the line check, but the history filter is commented out and has no effect on the result.
  • A temporary table is created and dropped via util.TempTableDrop (definition not attached).

Tables used

Settings · Read Suppliers · Read OrderHeader · Read Customers · Read Addresses · Read Countries · Read Currency · Read Orderlines · Read OrderHistory · Read
SQL object:
dbo.pipiDFGetOrders
Updated at 2026-10-30