pixiDFSetSupplierNotifiedFlag
Sets or clears the notified flag (`ClientNotified`) on the latest `FUT` history entry of the order lines of a direct-fulfillment order or of a single order line.
Marks order lines as notified (or not notified) to the supplier in a direct-fulfillment (drop-shipping) process.
- Candidate order lines are selected from
OrderlineswhereOrderlineKey = @OrderlineKeyorOrderNr = @OrderNr. Lines with statusHALare excluded. - Each candidate is checked for editability: a line is editable only if it has no entry in
OrderHistorywhose status is outsideHAL,ANG,BES,FUT,NEW. Lines that already have any other history status are skipped. - For every editable line, the
OrderHistoryentry with the highestOrderHistKeyamong its entries with statusFUTis updated:ClientNotifiedis set toYif@IsNotified = 1, otherwise toN.
Lines without a FUT history entry are not changed. The call returns no result set and no status row.
Notes
- The two filter parameters are combined with
OR: if both are passed, lines matching either the order line key or the order number are processed. If neither is passed, nothing is updated. - The check
IF @IsNotified = NULLnever evaluates to true under standardANSI_NULLSsettings. PassingIsNotifiedexplicitly as NULL therefore does not fall back to 1; the flag is set toN. Omit the parameter to get the default 1. - Despite the call name, the column written is
OrderHistory.ClientNotified. - No feedback is given about how many rows were updated (
SET NOCOUNT ON, no result set); the caller cannot tell whether a line was skipped as not editable. - Candidate selection reads with
NOLOCK; the update usesROWLOCK. No explicit transaction.
Tables used
| Parameter | Type | Default | Description |
|---|---|---|---|
OrderlineKey
|
int | NULL |
Key of a single order line to process. Combined with Example: |
OrderNr
|
int | NULL |
Order number; all order lines of this order (except status Example: |
IsNotified
|
bit boolean |
1 |
Value of the notified flag to set. Allowed values
Example: |
This call returns no result set.
POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
Authorization: Basic BASE64(USERNAME:PASSWORD)
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://apigateway.descartes.com/tms/pixi/">
<SOAP-ENV:Body>
<ns1:pixiDFSetSupplierNotifiedFlag>
<!-- <OrderlineKey>123456</OrderlineKey> -->
<!-- <OrderNr>98765</OrderNr> -->
<!-- <IsNotified>1</IsNotified> -->
</ns1:pixiDFSetSupplierNotifiedFlag>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
curl -X POST 'https://apigateway.descartes.com/tms/pixi/' \
--user 'USERNAME:PASSWORD' \
--header 'Content-Type: text/xml; charset=utf-8' \
--data-binary @- <<'XML'
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://apigateway.descartes.com/tms/pixi/">
<SOAP-ENV:Body>
<ns1:pixiDFSetSupplierNotifiedFlag>
<!-- <OrderlineKey>123456</OrderlineKey> -->
<!-- <OrderNr>98765</OrderNr> -->
<!-- <IsNotified>1</IsNotified> -->
</ns1:pixiDFSetSupplierNotifiedFlag>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML
<?php
$soapClient = new SoapClient(null, [
'login' => 'USERNAME',
'password' => 'PASSWORD',
'location' => 'https://apigateway.descartes.com/tms/pixi/',
'uri' => 'https://apigateway.descartes.com/tms/pixi/',
]);
$arguments = [
// 'OrderlineKey' => '123456',
// 'OrderNr' => '98765',
// 'IsNotified' => '1',
];
$soapArguments = [];
foreach ($arguments as $name => $value) {
$soapArguments[] = new SoapVar($value, XSD_STRING, '', '', $name);
}
$response = $soapClient->__soapCall('pixiDFSetSupplierNotifiedFlag', $soapArguments);
- SQL object:
- dbo.pipiDFSetSupplierNotifiedFlag