pixiSetItemBuyingInfo
API call procedure which updates item buying info
Since pixi version: LOU Official (6.3.0.4452) Additional notes: This API call does not return any response.
Check also pixiSetItemBuyingInfoXML API call that allows updating of multiple items at once.
Request
Request body
Name | Type | Required | Description |
---|---|---|---|
EANUPC | string | false | Filter by internal item barcode. Type: varchar(13) Default value: NULL Example: abcdefg Available from: LOU Official (6.3.0.4452) |
ItemKey | integer | false | Reference for Items table Type: int Default value: NULL Example: 123 Available from: LOU Official (6.3.0.4452) |
Location | string | false | Filter by location. Type: varchar(3) Default value: NULL Example: abcdefg Available from: LOU Official (6.3.0.4452) |
ItemNrInt | string | false | Filter by internal item number. Type: varchar(50) Default value: NULL Example: abcdefg Available from: LOU Official (6.3.0.4452) |
MinOrderQty | string | false | Sets the minimum order quantity. Type: varchar(10) Default value: NULL Example: abcdefg Available from: LOU Official (6.3.0.4452) |
MinStockQty | string | false | Sets the minimum stock quantity. Type: varchar(10) Default value: NULL Example: abcdefg Available from: LOU Official (6.3.0.4452) |
SafetyStock | string | false | Sets the safety stock on item location. Type: varchar(10) Default value: NULL Example: abcdefg Available from: AVA Official - Update 23 (8.4.23.27873) |
TargetStock | string | false | Sets the target stock on item location. Target stock can not be negative value. Negative value of target stock will be change and set to 0. Type: varchar(10) Default value: NULL Example: abcdefg Available from: AVA Official - Update 23 (8.4.23.27873) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiSetItemBuyingInfo>
<ItemKey>0</ItemKey>
<ItemNrInt>string</ItemNrInt>
<EANUPC>string</EANUPC>
<Location>string</Location>
<MinStockQty>string</MinStockQty>
<MinOrderQty>string</MinOrderQty>
<TargetStock>string</TargetStock>
<SafetyStock>string</SafetyStock>
</pixiSetItemBuyingInfo>
</Body>
</Envelope>
Response
Name | Type | Description |
---|
Response Example
<PixiSetItemBuyingInfoPost200TextXmlResponse />
HTTP Example
POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
# echo -n '{{username}}:{{password}}' | base64 | pbcopy
Authorization: Basic {{token}}
<?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/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:pixiSetItemBuyingInfo>
<EANUPC xsi:type="xsd:string">abcdefg</EANUPC>
<ItemKey xsi:type="xsd:integer">123</ItemKey>
<Location xsi:type="xsd:string">abcdefg</Location>
<ItemNrInt xsi:type="xsd:string">abcdefg</ItemNrInt>
<MinOrderQty xsi:type="xsd:string">abcdefg</MinOrderQty>
<MinStockQty xsi:type="xsd:string">abcdefg</MinStockQty>
<SafetyStock xsi:type="xsd:string">abcdefg</SafetyStock>
<TargetStock xsi:type="xsd:string">abcdefg</TargetStock>
</ns1:pixiSetItemBuyingInfo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiSetItemBuyingInfo', [
'EANUPC' => 'abcdefg', // string
'ItemKey' => '123', // integer
'Location' => 'abcdefg', // string
'ItemNrInt' => 'abcdefg', // string
'MinOrderQty' => 'abcdefg', // string
'MinStockQty' => 'abcdefg', // string
'SafetyStock' => 'abcdefg', // string
'TargetStock' => 'abcdefg', // string
]);
function getPixiSoapClientResponse(string $method, array $arguments = [])
{
$soapArguments = [];
foreach ($arguments as $key => $value) {
$soapArguments[] = new SoapVar($value, null, '', '', $key);
}
$soapClient = new SoapClient(null, [
'login' => '...',
'password' => '...',
'uri' => 'https://apigateway.descartes.com/tms/pixi/',
'location' => 'https://apigateway.descartes.com/tms/pixi/',
]);
return $soapClient->__call($method, $soapArguments);
}