pixiGetOrderline
Recommended
Retrieve Orderlines based on several filters.
Since pixi version: LOU Official (6.3.0.4452) Additional notes:
Request
Request body
Name | Type | Required | Description |
---|---|---|---|
ShopID | string | false | Shop ID Type: varchar(3) Default value: Example: abcdefg Available from: LOU Official - Update 46 (6.9.46.27927) |
Status | string | false | Orderline Status Type: varchar(3) Default value: Example: abcdefg Available from: LOU Official - Update 46 (6.9.46.27927) |
OrderNR | integer | false | pixi* order number Type: int Default value: Example: 123 Available from: LOU Official - Update 46 (6.9.46.27927) |
RowCount | integer | false | Maximum number of rows returned Type: int Default value: 1000 Example: 123 Available from: LOU Official - Update 46 (6.9.46.27927) |
InvoiceNr | string | false | Invoice number Type: varchar(50) Default value: Example: abcdefg Available from: LOU Official - Update 46 (6.9.46.27927) |
OrderDateTo | string | false | End of order date range Type: datetime Default value: Example: YYYY-MM-DD hh:mm:ss Available from: LOU Official - Update 46 (6.9.46.27927) |
PaymentType | string | false | Payment TYPE, references table payments Type: char Default value: Example: Single character : "g" Available from: LOU Official - Update 46 (6.9.46.27927) |
OrderlineKey | integer | false | Order line ID, references table Orderlines Type: int Default value: Example: 123 Available from: LOU Official (6.3.0.4452) |
UpdateDateTo | string | false | End of the date range when order line was updated Type: datetime Default value: Example: YYYY-MM-DD hh:mm:ss Available from: LOU Official - Update 46 (6.9.46.27927) |
OrderDateFrom | string | false | Beginning of the order date range Type: datetime Default value: Example: YYYY-MM-DD hh:mm:ss Available from: LOU Official - Update 46 (6.9.46.27927) |
ShowOrderlines | boolean | false | Force to return Orderlinekey in case of bundle Type: bit Default value: 0 Example: 0 or 1 Available from: 20.04 (9.0.14.47944) |
UpdateDateFrom | string | false | Beginning of the date range when order line was updated Type: datetime Default value: Example: YYYY-MM-DD hh:mm:ss Available from: LOU Official - Update 46 (6.9.46.27927) |
OrderNRExternal | string | false | Shop order number Type: varchar(50) Default value: Example: abcdefg Available from: LOU Official - Update 46 (6.9.46.27927) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiGetOrderline>
<OrderlineKey>0</OrderlineKey>
<OrderNR>0</OrderNR>
<OrderNRExternal>string</OrderNRExternal>
<Status>string</Status>
<ShopID>string</ShopID>
<PaymentType>string</PaymentType>
<OrderDateFrom>string</OrderDateFrom>
<OrderDateTo>string</OrderDateTo>
<UpdateDateFrom>string</UpdateDateFrom>
<UpdateDateTo>string</UpdateDateTo>
<RowCount>0</RowCount>
<InvoiceNr>string</InvoiceNr>
<ShowOrderlines>true</ShowOrderlines>
</pixiGetOrderline>
</Body>
</Envelope>
Response
1. Get Orderline Overview
Name | Type | Description |
---|---|---|
Qty | integer | Qty Type: int Available from: 25.06 (25.6.0.58802) |
Price | number | Price Type: money Available from: 25.06 (25.6.0.58802) |
EANUPC | string | Item barcode Type: varchar Available from: 25.06 (25.6.0.58802) |
Status | string | Status Type: varchar Available from: 25.06 (25.6.0.58802) |
ArtName | string | Name of the item Type: varchar Available from: 25.06 (25.6.0.58802) |
ItemRef | integer | Item ID Type: int Available from: 25.06 (25.6.0.58802) |
OrderNR | integer | Order number in pixi* Type: int Available from: 25.06 (25.6.0.58802) |
VATRate | string | VAT Rate Type: varchar Available from: 25.06 (25.6.0.58802) |
ShipDate | string | Ship this order at this date only! not before Type: datetime Available from: 25.06 (25.6.0.58802) |
FullPrice | number | Full Price Type: money Available from: 25.06 (25.6.0.58802) |
ItemNrInt | string | Shop item number Type: varchar Available from: 25.06 (25.6.0.58802) |
OrderDate | string | Order Date Type: datetime Available from: 25.06 (25.6.0.58802) |
DFShipDate | string | DF Ship Date Type: datetime Available from: 25.06 (25.6.0.58802) |
PriceNoVAT | number | Price No VAT Type: money Available from: 25.06 (25.6.0.58802) |
StatusText | string | Status Text Type: varchar Available from: 25.06 (25.6.0.58802) |
UpdateDate | string | Last update date of the record Type: datetime Available from: 25.06 (25.6.0.58802) |
DiscountPerc | number | Discount Perc Type: numeric Available from: 25.06 (25.6.0.58802) |
OrderlineKey | integer | ID for the Orderline record Type: int Available from: 25.06 (25.6.0.58802) |
DiscountValue | number | Discount Value Type: money Available from: 25.06 (25.6.0.58802) |
OrderCurrency | string | Order Currency Type: varchar Available from: 25.06 (25.6.0.58802) |
ReservedCount | number | Reserved Count Type: numeric Available from: 25.06 (25.6.0.58802) |
ItemNrExternal | string | Item number external (Imported from Shop) Type: varchar Available from: 25.06 (25.6.0.58802) |
OrderNrExternal | string | External order number Type: varchar Available from: 25.06 (25.6.0.58802) |
FullPriceForItem | number | Full Price For Item Type: money Available from: 25.06 (25.6.0.58802) |
oItemSpecialNote | string | oItem Special Note Type: varchar Available from: 25.06 (25.6.0.58802) |
EstimatedDelivery | string | Estimated Delivery Type: datetime Available from: 25.06 (25.6.0.58802) |
AvailStockOrderLine | integer | Avail Stock OrderLine Type: int Available from: 25.06 (25.6.0.58802) |
DFShipmentTrackingID | string | Direct fullfilement shipment tracking ID Type: varchar Available from: 25.06 (25.6.0.58802) |
Response Example
<PixiGetOrderlinePost200TextXmlResponse>
<OrderlineKey>0</OrderlineKey>
<ArtName>string</ArtName>
<Qty>0</Qty>
<Price>0</Price>
<Status>string</Status>
<StatusText>string</StatusText>
<ItemNrExternal>string</ItemNrExternal>
<OrderNR>0</OrderNR>
<OrderNrExternal>string</OrderNrExternal>
<OrderCurrency>string</OrderCurrency>
<OrderDate>string</OrderDate>
<UpdateDate>string</UpdateDate>
<ItemRef>0</ItemRef>
<oItemSpecialNote>string</oItemSpecialNote>
<DiscountValue>0</DiscountValue>
<DiscountPerc>0</DiscountPerc>
<FullPrice>0</FullPrice>
<FullPriceForItem>0</FullPriceForItem>
<VATRate>string</VATRate>
<PriceNoVAT>0</PriceNoVAT>
<ItemNrInt>string</ItemNrInt>
<ShipDate>string</ShipDate>
<DFShipDate>string</DFShipDate>
<DFShipmentTrackingID>string</DFShipmentTrackingID>
<AvailStockOrderLine>0</AvailStockOrderLine>
<EstimatedDelivery>string</EstimatedDelivery>
<EANUPC>string</EANUPC>
<ReservedCount>0</ReservedCount>
</PixiGetOrderlinePost200TextXmlResponse>
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:pixiGetOrderline>
<ShopID xsi:type="xsd:string">abcdefg</ShopID>
<Status xsi:type="xsd:string">abcdefg</Status>
<OrderNR xsi:type="xsd:integer">123</OrderNR>
<RowCount xsi:type="xsd:integer">123</RowCount>
<InvoiceNr xsi:type="xsd:string">abcdefg</InvoiceNr>
<OrderDateTo xsi:type="xsd:string">YYYY-MM-DD hh:mm:ss</OrderDateTo>
<PaymentType xsi:type="xsd:string">Single character : "g"</PaymentType>
<OrderlineKey xsi:type="xsd:integer">123</OrderlineKey>
<UpdateDateTo xsi:type="xsd:string">YYYY-MM-DD hh:mm:ss</UpdateDateTo>
<OrderDateFrom xsi:type="xsd:string">YYYY-MM-DD hh:mm:ss</OrderDateFrom>
<ShowOrderlines xsi:type="xsd:boolean">0 or 1</ShowOrderlines>
<UpdateDateFrom xsi:type="xsd:string">YYYY-MM-DD hh:mm:ss</UpdateDateFrom>
<OrderNRExternal xsi:type="xsd:string">abcdefg</OrderNRExternal>
</ns1:pixiGetOrderline>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiGetOrderline', [
'ShopID' => 'abcdefg', // string
'Status' => 'abcdefg', // string
'OrderNR' => '123', // integer
'RowCount' => '123', // integer
'InvoiceNr' => 'abcdefg', // string
'OrderDateTo' => 'YYYY-MM-DD hh:mm:ss', // string
'PaymentType' => 'Single character : "g"', // string
'OrderlineKey' => '123', // integer
'UpdateDateTo' => 'YYYY-MM-DD hh:mm:ss', // string
'OrderDateFrom' => 'YYYY-MM-DD hh:mm:ss', // string
'ShowOrderlines' => '0 or 1', // boolean
'UpdateDateFrom' => 'YYYY-MM-DD hh:mm:ss', // string
'OrderNRExternal' => '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);
}