pixiCreateDeliveryItem
Create Delivery Items for Deliveries
Since pixi version: LOU Official (6.3.0.4452) Additional notes:
Request
Request body
Name | Type | Required | Description |
---|---|---|---|
LocID | string | false | Locaction Id Type: varchar(255) Default value: NULL Example: 001 Available from: LOU Official - Update 46 (6.9.46.27927) |
EANUPC | string | false | Barcode Type: varchar(13) Default value: NULL Example: abcdefg Available from: LOU Official (6.3.0.4452) |
SDelHNr | integer | false | Delivery number Type: int Default value: NULL Example: 123 Available from: LOU Official (6.3.0.4452) |
SDelHKey | integer | false | Primary key of the delivery Type: int Default value: NULL Example: 123 Available from: LOU Official (6.3.0.4452) |
UserName | string | false | User name which you want to set Type: varchar(50) Default value: Api Example: abcdefg Available from: LOU Official (6.3.0.4452) |
OrderdQty | number | false | Ordered Quantity Type: money Default value: 0 Example: 9.99 Available from: LOU Official - Update 46 (6.9.46.27927) |
PiccoUser | string | false | Used picco user Type: varchar(59) Default value: NULL Example: abcdefg Available from: LOU Official - Update 46 (6.9.46.27927) |
SupplPrice | number | false | Supplier price Type: money Default value: NULL Example: 9.99 Available from: LOU Official (6.3.0.4452) |
DeliverdQty | number | false | Delivered Quantity Type: money Default value: 0 Example: 9.99 Available from: LOU Official - Update 46 (6.9.46.27927) |
SDelHSupplNr | string | false | Supplier Id Type: varchar(4) Default value: NULL Example: MGS Available from: LOU Official - Update 46 (6.9.46.27927) |
ItemNrInternal | string | false | SUPPLIER_AID or ItemNrInt Type: varchar(50) Default value: NULL Example: abcdefg Available from: LOU Official (6.3.0.4452) |
SupplFinalPrice | number | false | Final supplier price Type: money Default value: NULL Example: 9.99 Available from: LOU Official - Update 46 (6.9.46.27927) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiCreateDeliveryItem>
<SDelHKey>0</SDelHKey>
<SDelHNr>0</SDelHNr>
<UserName>string</UserName>
<ItemNrInternal>string</ItemNrInternal>
<EANUPC>string</EANUPC>
<SupplPrice>0</SupplPrice>
<SupplFinalPrice>0</SupplFinalPrice>
<SDelHSupplNr>string</SDelHSupplNr>
<OrderdQty>0</OrderdQty>
<DeliverdQty>0</DeliverdQty>
<LocID>string</LocID>
<PiccoUser>string</PiccoUser>
</pixiCreateDeliveryItem>
</Body>
</Envelope>
Response
Name | Type | Description |
---|
Response Example
<PixiCreateDeliveryItemPost200TextXmlResponse />
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:pixiCreateDeliveryItem>
<LocID xsi:type="xsd:string">001</LocID>
<EANUPC xsi:type="xsd:string">abcdefg</EANUPC>
<SDelHNr xsi:type="xsd:integer">123</SDelHNr>
<SDelHKey xsi:type="xsd:integer">123</SDelHKey>
<UserName xsi:type="xsd:string">abcdefg</UserName>
<OrderdQty xsi:type="xsd:number">9.99</OrderdQty>
<PiccoUser xsi:type="xsd:string">abcdefg</PiccoUser>
<SupplPrice xsi:type="xsd:number">9.99</SupplPrice>
<DeliverdQty xsi:type="xsd:number">9.99</DeliverdQty>
<SDelHSupplNr xsi:type="xsd:string">MGS</SDelHSupplNr>
<ItemNrInternal xsi:type="xsd:string">abcdefg</ItemNrInternal>
<SupplFinalPrice xsi:type="xsd:number">9.99</SupplFinalPrice>
</ns1:pixiCreateDeliveryItem>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiCreateDeliveryItem', [
'LocID' => '001', // string
'EANUPC' => 'abcdefg', // string
'SDelHNr' => '123', // integer
'SDelHKey' => '123', // integer
'UserName' => 'abcdefg', // string
'OrderdQty' => '9.99', // number
'PiccoUser' => 'abcdefg', // string
'SupplPrice' => '9.99', // number
'DeliverdQty' => '9.99', // number
'SDelHSupplNr' => 'MGS', // string
'ItemNrInternal' => 'abcdefg', // string
'SupplFinalPrice' => '9.99', // number
]);
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);
}