Postman collection
Direct-Fulfillment Write

pixiDFGetChangesConfirmation

Confirms a processed order history change for a direct fulfillment supplier by setting its ClientNotified flag and, optionally, the tracking sent date of an invoice.

Acknowledges an order history entry from the Direct Fulfillment API. A supplier calls this after it has processed a change, so that the change is marked as delivered.

  1. Authentication: The supplier is looked up in Suppliers by SupplNr, with CustNr = Secret, not disabled (Disabled <> 1) and enabled for direct fulfillment (CanDoDirectFulfillment = 1).
    • If no supplier matches and the setting DFAPIAllowFullAccessWithoutSecret is 0, the call returns status 403. The setting is also treated as 0 if it does not exist.
    • If the setting has any other value, the secret check is skipped.
  2. Lookup: If the OrderHistKey does not exist in OrderHistory, the call returns status 404.
  3. Update: Otherwise the internal procedure GOSUpdateOHClientNotifiedXML is executed:
    • The order history entry gets ClientNotified = Y (only if OrderHistKey <> 0).
    • If InvoiceKey <> 0, Invoices.TrackingIDSent of that Rechnung is set to the current date and time.
    • On success the status is 200. If an error occurs, the status is 500 with the SQL error message.

The call always returns exactly one row with Status and ErrorMsg.

Notes

  • The code does not check that the OrderHistKey or the InvoiceKey belongs to the authenticated supplier. Any existing order history entry can be confirmed.
  • InvoiceKey is not validated. If the Rechnung does not exist, no row is updated, but the status is still 200.
  • The two updates are not wrapped in an explicit transaction. If the invoice update fails, the ClientNotified flag may already be set while the call returns 500.
  • The supplier lookup and the existence check use NOLOCK.
  • If OrderHistKey is NULL, the 404 message becomes NULL because of the string concatenation.

Tables used

Suppliers · Read Settings · Read OrderHistory · Write Invoices · Write
SQL object:
dbo.pipiDFGetChangesConfirmation
Updated at 2026-10-30