pixiAddressesFindDuplicates
API call that compares 100 addresses in one go (even this can take more than 1 hour on big DB). If there is more candidates to check, then automatically countinues with batch of next 100 addresses in on minute, so that it runs whole night till 7 AM if needed. API can run from 20pm-7am then it stopps.
Since pixi version: LOU Official - Update 46 (6.9.46.27927) Additional notes: Checed records are saved to special table, so we know which were addresses were already checked.
Request
POST
https://apigateway.descartes.com/tms/pixi/pixiAddressesFindDuplicates
Request body
Name | Type | Required | Description |
---|---|---|---|
ReCreateAll | boolean | true | If value 1 is sent, then we delete all exisitng matches and start checking from scratch. Type: bit Default value: 0 Example: 123 Available from: LOU Official - Update 46 (6.9.46.27927) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiAddressesFindDuplicates>
<ReCreateAll>true</ReCreateAll>
</pixiAddressesFindDuplicates>
</Body>
</Envelope>
Response
Name | Type | Description |
---|
Response Example
<PixiAddressesFindDuplicatesPost200TextXmlResponse />
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:pixiAddressesFindDuplicates>
<ReCreateAll xsi:type="xsd:boolean">123</ReCreateAll> <!-- required -->
</ns1:pixiAddressesFindDuplicates>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiAddressesFindDuplicates', [
'ReCreateAll' => '123', // boolean (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);
}