pixiGetOrderNrByOrderNrExternal
Deprecated
This function is used to obtain the pixi* OrderNr value by the OrderNrExternal (i.e. number of order, provided by shop). If supplied OrderNrExternal does not correspond to any of the orders that are registered within pixi*, a 0 is returned
Use pixiGetOrderline oder pixiGetOrder instead, they can work directly with OrderNrExternal.
Since pixi version: LOU Official (6.3.0.4452) Additional notes:
Request
POST
https://apigateway.descartes.com/tms/pixi/pixiGetOrderNrByOrderNrExternal
Request body
Name | Type | Required | Description |
---|---|---|---|
OrderNrExternal | string | true | [mandatory] The order number, registered in pixi* as provided by the shop. Type: varchar (50) Default value: Example: Available from: LOU Official (6.3.0.4452) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiGetOrderNrByOrderNrExternal>
<OrderNrExternal>string</OrderNrExternal>
</pixiGetOrderNrByOrderNrExternal>
</Body>
</Envelope>
Response
Name | Type | Description |
---|---|---|
return | integer | If the order is found in pixi*, its OrderNr is returned. Otherwise, 0 is returned. Type: int Available from: LOU Official (6.3.0.4452) |
Response Example
<PixiGetOrderNrByOrderNrExternalPost200TextXmlResponse>
<return>0</return>
</PixiGetOrderNrByOrderNrExternalPost200TextXmlResponse>
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:pixiGetOrderNrByOrderNrExternal>
<OrderNrExternal xsi:type="xsd:string"></OrderNrExternal> <!-- required -->
</ns1:pixiGetOrderNrByOrderNrExternal>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiGetOrderNrByOrderNrExternal', [
'OrderNrExternal' => '', // string (required)
]);
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);
}